Skip to content

Commit

Permalink
checking new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
scap3yvt authored Nov 27, 2023
1 parent 99e8eee commit fe6e1ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions GANDLF/compute/forward_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ def validate_network(
for key in params["channel_keys"]:
subject_dict[key] = torchio.ScalarImage(
path=subject[key]["path"],
type=subject[key]["type"],
tensor=subject[key]["data"].squeeze(0),
affine=subject[key]["affine"].squeeze(0),
)
Expand Down Expand Up @@ -320,7 +319,6 @@ def validate_network(
output_prediction = output_prediction.unsqueeze(0)
if params["save_output"]:
img_for_metadata = torchio.ScalarImage(
type=subject["1"]["type"],
tensor=subject["1"]["data"].squeeze(0),
affine=subject["1"]["affine"].squeeze(0),
).as_sitk()
Expand Down

0 comments on commit fe6e1ba

Please sign in to comment.