Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demos/paired_mrus_prostate/demo_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
shutil.rmtree(MODEL_PATH)
os.mkdir(MODEL_PATH)

ZIP_PATH = "paired_mrus_prostate-ckpt"
ORIGIN = "https://github.com/DeepRegNet/deepreg-model-zoo/raw/master/paired_mrus_prostate-ckpt.zip"
ZIP_PATH = "paired_mrus_prostate_1"
Comment thread
mathpluscode marked this conversation as resolved.
ORIGIN = "https://github.com/DeepRegNet/deepreg-model-zoo/raw/master/paired_mrus_prostate_1.zip"

zip_file = os.path.join(MODEL_PATH, ZIP_PATH + ".zip")
get_file(os.path.abspath(zip_file), ORIGIN)
Expand Down
4 changes: 2 additions & 2 deletions demos/paired_mrus_prostate/demo_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"The prediction can also be launched using the following command.\n"
"deepreg_predict --gpu '' "
f"--config_path demos/{name}/{name}.yaml "
f"--ckpt_path demos/{name}/dataset/pretrained/weights-epoch500.ckpt "
f"--ckpt_path demos/{name}/dataset/pretrained/ckpt-5000 "
f"--log_root demos/{name} "
"--log_dir logs_predict "
"--save_png --mode test\n"
Expand All @@ -41,7 +41,7 @@

log_root = f"demos/{name}"
log_dir = "logs_predict/" + datetime.now().strftime("%Y%m%d-%H%M%S")
ckpt_path = f"{log_root}/dataset/pretrained/weights-epoch500.ckpt"
ckpt_path = f"{log_root}/dataset/pretrained/ckpt-5000"
config_path = [f"{log_root}/{name}.yaml"]
if args.test:
config_path.append("config/test/demo_paired.yaml")
Expand Down
4 changes: 2 additions & 2 deletions demos/paired_mrus_prostate/paired_mrus_prostate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ train:
shuffle_buffer_num_batch: 1 # shuffle_buffer_size = batch_size * shuffle_buffer_num_batch

# other training hyper-parameters
epochs: 500 # number of training epochs
save_period: 50 # the model will be saved every `save_period` epochs.
epochs: 5000 # number of training epochs
save_period: 1000 # the model will be saved every `save_period` epochs.