diff --git a/initialize.m b/initialize.m index ad33a6d23af5b945322fc2f1771f2acae68e9002..a79727abd2b12848ad41393b9aac80de51d63399 100644 --- a/initialize.m +++ b/initialize.m @@ -9,13 +9,13 @@ addpath(genpath(start_path)); % Example for Linux/Mac: '/home/username/Documents/DLsegm_log.txt'; % Example for Windows: 'C:\Users\username\Documents/DLsegm_log.txt'; global LOG_FILE ; -LOG_FILE = 'C:\Users\username\Documents\DLsegm_log.txt'; +LOG_FILE = [start_path '\DLsegm_log.txt']; %% Path to the input files for the network (data_dir) % % This is where the GUI stores the created nifti magnitude files to be used by the % model global INPUT_DATA_DIR -INPUT_DATA_DIR = 'C:\Users\username\Documents\DLsegm_inputdata'; +INPUT_DATA_DIR = [start_path '\DLsegm_inputdata']; %% Choose your results path for the network (inference_dir) % Directory and path to save DL segmentations. @@ -40,11 +40,12 @@ CHECKPOINT_DIR = fullfile(pwd, 'python_scripts', 'checkpoints'); %% Set the path to the python environment % for running the DL network global SET_ENV; -SET_ENV = '/home/username/miniconda3/envs/DL_test/bin'; %example for miniconda +% SET_ENV = '/home/username/miniconda3/envs/DL_test/bin'; %example for miniconda % SET_ENV = 'C:/Users/username/Documents/pythonenv';%example for windows virtual environment +SET_ENV = [start_path '/pythonenv'];%example for windows virtual environment %% Option to activate a python virtual environment in windows global ACTIVATE_VENV -ACTIVATE_VENV = ''; %leave this empty if you do not use a windows virtual environment that needs to be activated -% ACTIVATE_VENV = fullfile(SET_ENV, 'Scripts\Activate.ps1'); % add the path to your activiation file to be run using powershell +% ACTIVATE_VENV = ''; %leave this empty if you do NOT use a windows virtual environment that needs to be activated +ACTIVATE_VENV = fullfile(SET_ENV, 'Scripts\Activate.ps1'); % add the path to your activiation file to be run using powershell