function opt = dss_initPath()
            addpath('./utils');
            addpath('./sizedistrubution/');
            addpath(genpath('./external/'))
            addpath('./compute_feature/')
            addpath('./marvin_helper/')
            addpath('./vis/')
            addpath('./slidingAnchor/');
            addpath('./eval/'); 
            
            opt.SUNrgbd_toolbox     = './external/SUNRGBDtoolbox/';
            opt.cudnn_libpath       = '/usr/local/cudnn/v3/lib64/'; %/usr/local/cuda/lib64
            
            %% locations to save: data,feature, trained model and snapshot, training log
            localdata_root          = '/home/shurans/deepDetectLocal/';
            opt.trainedcn_dir       = fullfile(localdata_root,'trainedcnn/');
            opt.data_root           = fullfile(localdata_root,'sunrgbd_dss_data/');
            opt.imgfea_dir          = fullfile(localdata_root,'image_fea/'); 
            opt.feature_tensor_dir  = fullfile(localdata_root,'feature/');
            opt.log_dir             = fullfile(localdata_root,'marvinlog/');   
            
            
            %rootpath = '/n/fs/modelnet/deepDetect/Release/';
            rootpath = '/n/fs/modelnet/deepDetect/Release/';
            opt.feature_mat_dir            = fullfile(rootpath,'../featuremat/');
            opt.proposal_root              = fullfile(rootpath,'result/proposal/');
            opt.marvin_dir                 = fullfile(rootpath,'code/marvin/');
            opt.path2trained_color_model   = fullfile(rootpath,'pretrainedModels/color_vgg/vgg_hha_half.marvin');
            opt.extract_imgfeafile_po      = fullfile(rootpath,'pretrainedModels/color_vgg/vgg_hha_extract_po.json');
            
            %opt.sysn_dataroot       = '/home/shurans/deepDetectLocal/results_nyu/';
            opt.RPNdata_dir     = fullfile(rootpath,'../RPNdata_mulit/');
            opt.RPNdatamat_dir  = fullfile(rootpath,'../RPNdata_mulitmat/');
            opt.seg_dir         = fullfile(rootpath,'../seg/');
            opt.basepath        = pwd;
            
            
end