stefanwolf commited on
Commit
9634dc5
1 Parent(s): d9938f4

Fix docker execution

Browse files
.dockerignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ data
2
+ work_dirs
predict.py CHANGED
@@ -6,8 +6,8 @@ from pathlib import Path
6
 
7
 
8
  # custom script arguments
9
- CONFIG_PATH = 'work_dirs/swin_base_b32x4-fp16_fungi+val_res_384_cb_epochs_6/swin_base_b32x4-fp16_fungi+val-test_res_384_cb_epochs_6.py'
10
- CHECKPOINT_PATH = "work_dirs/swin_base_b32x4-fp16_fungi+val_res_384_cb_epochs_6/epoch_6.pth"
11
  SCORE_THRESHOLD = 0.2
12
 
13
 
 
6
 
7
 
8
  # custom script arguments
9
+ CONFIG_PATH = 'models/swin_base_b32x4-fp16_fungi+val_res_384_cb_epochs_6.py'
10
+ CHECKPOINT_PATH = "models/swin_base_b32x4-fp16_fungi+val_res_384_cb_epochs_6_20230524-5197a7e6.pth"
11
  SCORE_THRESHOLD = 0.2
12
 
13
 
tools/test_generate_result_pre-consensus.py CHANGED
@@ -129,7 +129,7 @@ def setup_multi_processes(cfg):
129
 
130
  # setup OMP threads
131
  # This code is referred from https://github.com/pytorch/pytorch/blob/master/torch/distributed/run.py # noqa
132
- if 'OMP_NUM_THREADS' not in os.environ and cfg.data.workers_per_gpu > 1:
133
  omp_num_threads = 1
134
  warnings.warn(
135
  f'Setting OMP_NUM_THREADS environment variable for each process '
@@ -139,7 +139,7 @@ def setup_multi_processes(cfg):
139
  os.environ['OMP_NUM_THREADS'] = str(omp_num_threads)
140
 
141
  # setup MKL threads
142
- if 'MKL_NUM_THREADS' not in os.environ and cfg.data.workers_per_gpu > 1:
143
  mkl_num_threads = 1
144
  warnings.warn(
145
  f'Setting MKL_NUM_THREADS environment variable for each process '
 
129
 
130
  # setup OMP threads
131
  # This code is referred from https://github.com/pytorch/pytorch/blob/master/torch/distributed/run.py # noqa
132
+ if 'OMP_NUM_THREADS' not in os.environ and cfg.test_dataloader.num_workers > 1:
133
  omp_num_threads = 1
134
  warnings.warn(
135
  f'Setting OMP_NUM_THREADS environment variable for each process '
 
139
  os.environ['OMP_NUM_THREADS'] = str(omp_num_threads)
140
 
141
  # setup MKL threads
142
+ if 'MKL_NUM_THREADS' not in os.environ and cfg.test_dataloader.num_workers > 1:
143
  mkl_num_threads = 1
144
  warnings.warn(
145
  f'Setting MKL_NUM_THREADS environment variable for each process '