-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathstartup.m
More file actions
39 lines (30 loc) · 1.01 KB
/
startup.m
File metadata and controls
39 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%% Initialize the StoryGraphs project
% This file will be called automatically on starting Matlab in this directory.
clear all;
clc;
close all;
% Make some directories
if ~exist('tmp/', 'dir'), mkdir('tmp/'); end
if ~exist('sg/fig', 'dir'), mkdir('sg/fig'); end
if ~exist('sg/mat', 'dir'), mkdir('sg/mat'); end
global SGparams
%% Working directory
SGparams.base_dir = [fileparts(mfilename('fullpath')) '/'];
if ispc
SGparams.base_dir = strrep(base_dir, '\', '/');
end
% Check first initialization
first_init;
%% Repository folders
addpath(genpath('utilities/'));
addpath('losses/');
addpath('story/');
addpath('initializers/');
%% Go go go :)
fprintf('=======================================================\n');
fprintf(['Initialized StoryGraphs repository. Supported videos:', ...
'\n\t%20s : The Big Bang Theory', ...
'\n\t%20s : Buffy the Vampire Slayer', ...
'\n\t%20s : Game of Thrones', ...
'\n'], ...
'BBT(se, ep)', 'BUFFY(se, ep)', 'GOT(se, ep)');