Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add model name to saving path for sampling #144

Merged
merged 2 commits into from
Feb 7, 2023
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
1 change: 1 addition & 0 deletions docs/changes/144.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add naming to save path, so that the files do not get overwritten as easily
3 changes: 2 additions & 1 deletion radionets/evaluation/train_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@ def save_sampled(conf):
for key in results.keys():
results[key] = results[key].reshape(num_img, img_size, img_size)

save_pred(str(out_path) + "/sampled_imgs.h5", results)
name_model = Path(model_path).stem
save_pred(str(out_path) + f"/sampled_imgs_{name_model}.h5", results)


def evaluate_area_sampled(conf):
Expand Down