Skip to content

Commit

Permalink
Remove old API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenvivek committed Mar 11, 2024
1 parent b3fc4d2 commit 42658bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion experiments/ljubljana/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from torchvision.transforms.functional import resize
from tqdm import tqdm

from diffpose.calibration import RigidTransform, convert
from diffpose.ljubljana import Evaluator, LjubljanaDataset, Transforms
from diffpose.metrics import DoubleGeodesic, GeodesicSE3
from diffpose.registration import PoseRegressor, SparseRegistration
Expand Down
4 changes: 2 additions & 2 deletions experiments/ljubljana/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ def train(
try:
offset = get_random_offset(view, batch_size, device)
pose = isocenter_pose.compose(offset)
img = drr(None, None, None, pose=pose)
img = drr(pose)
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 42658bf

Please sign in to comment.