Skip to content

Commit 48501d3

Browse files
author
sfwang
committed
Update .yaml configs and update link for pretrained detection model.
1 parent 4218b01 commit 48501d3

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ See [`requirements.txt`](requirements.txt) for other dependencies.
2222
```
2323
pip install -r requirements.txt
2424
```
25-
4. Download pretrained ResNet-18 [model](https://download.pytorch.org/models/resnet18-5c106cde.pth)
26-
and put it under `${ROOT}/models/pytorch/imagenet/`
25+
4. Download pretrained neuron-detection model [model](https://drive.google.com/file/d/1iX1oE3bhKzuAHLi0MsPXeNzoqRm4nfZe/view?usp=sharing), and put it under `${ROOT}/models/neuron/`
2726

28-
### Training with simulated data
29-
To train with simulated data, run:
27+
### Training with simulated data (optional)
28+
1. Download ResNet-18 model pretrained on ImageNet [model](https://download.pytorch.org/models/resnet18-5c106cde.pth)
29+
and put it under `${ROOT}/models/pytorch/imagenet/`
30+
2. To train with simulated data, run:
3031
```
3132
CUDA_VISIBLE_DEVICES=$GPU_ID python source_detection/train.py --cfg experiments/simulated/128x128_d256x3_adam_lr1e-3.yaml
3233
```
@@ -40,7 +41,7 @@ CUDA_VISIBLE_DEVICES=$GPU_ID python source_detection/validate.py --cfg experimen
4041
Tensorboard logs will be saved into `log` folder.
4142

4243
### Testing with real data
43-
Your need to put the real data (e.g. srep31332-s1.mat) into ./data/real_dataset/ folder first. To test with real data after training, run:
44+
You need to put the real data (e.g. srep31332-s1.mat) into ./data/real_dataset/ folder first. To test with real data after training, run:
4445
```
4546
CUDA_VISIBLE_DEVICES=$GPU_ID python source_detection/test.py --cfg experiments/real_data/128x128_d256x3_adam_lr1e-3.yaml
4647
```

experiments/real_data/128x128_d256x3_adam_lr1e-3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ TRAIN:
6868
TEST:
6969
BATCH_SIZE: 1
7070
FLIP_TEST: false
71-
MODEL_FILE: 'output/simulation/neuron_resnet_18/128x128_d256x3_adam_lr1e-3/model_best.pth.tar'
71+
MODEL_FILE: 'models/pytorch/neuron/resnet18-neuror.pth'
7272
DEBUG:
7373
DEBUG: false
7474
SAVE_BATCH_IMAGES_GT: true

experiments/simulated/128x128_d256x3_adam_lr1e-3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ TRAIN:
6464
TEST:
6565
BATCH_SIZE: 32
6666
FLIP_TEST: false
67-
MODEL_FILE: 'output/simulation/neuron_resnet_18/128x128_d256x3_adam_lr1e-3/model_best.pth.tar'
67+
MODEL_FILE: 'models/pytorch/neuron/resnet18-neuror.pth'
6868
DEBUG:
6969
DEBUG: false
7070
SAVE_BATCH_IMAGES_GT: true

0 commit comments

Comments
 (0)