Skip to content

Commit

Permalink
Merge branch 'generalize_symmetry' of github.com:radionets-project/ra…
Browse files Browse the repository at this point in the history
…dionets into generalize_symmetry
  • Loading branch information
FeGeyer committed Jan 18, 2024
2 parents 50aa647 + aa83722 commit 8b822cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion radionets/evaluation/train_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_prediction(conf, mode="test"):
images["pred"] = pred
images["indices"] = indices

if images["pred"].shape[-1] == 128:
if images["pred"].shape[-2] < images["pred"].shape[-1]:
images = apply_symmetry(images)

return images
Expand Down
2 changes: 0 additions & 2 deletions radionets/evaluation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,6 @@ def get_images(test_ds, num_images, rand=False, indices=None):

img_test = test_ds[indices][0]
img_true = test_ds[indices][1]
img_test = img_test[:, :, :65, :]
img_true = img_true[:, :, :65, :]
return img_test, img_true, indices
else:
mean = test_ds[indices][0]
Expand Down

0 comments on commit 8b822cf

Please sign in to comment.