Skip to content
Snippets Groups Projects
Commit f07ce78b authored by Kajsa Tunedal's avatar Kajsa Tunedal
Browse files

generalized the initialization file for the GUI

parent dfdf9016
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment