From f07ce78b72c804f3d5da06ebb219062a342aebdb Mon Sep 17 00:00:00 2001 From: Kajsa Tunedal <kajtu36@liu.se> Date: Tue, 5 Sep 2023 15:54:35 +0200 Subject: [PATCH] generalized the initialization file for the GUI --- initialize.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/initialize.m b/initialize.m index ad33a6d..a79727a 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 -- GitLab