Skip to content

Commit

Permalink
Update DiffDRR API
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenvivek committed Mar 11, 2024
1 parent fb75e13 commit b9298fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/deepfluoro/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ def train(
contrast = contrast_distribution.sample().item()
offset = get_random_offset(batch_size, device)
pose = isocenter_pose.compose(offset)
img = drr(None, None, None, pose=pose, bone_attenuation_multiplier=contrast)
img = drr(pose, bone_attenuation_multiplier=contrast)
img = transforms(img)

pred_offset = model(img)
pred_pose = isocenter_pose.compose(pred_offset)
pred_img = drr(None, None, None, pose=pred_pose)
pred_img = drr(pred_pose)
pred_img = transforms(pred_img)

ncc = metric(pred_img, img)
Expand Down

0 comments on commit b9298fe

Please sign in to comment.