Skip to content

Commit 830432b

Browse files
committed
Remove factor_diffeo from SyNBase
1 parent f143f4d commit 830432b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

torchreg/syn.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99

1010

1111
class SyNBase:
12-
def __init__(self, time_steps=7, factor_diffeo=.1):
12+
def __init__(self, time_steps=7):
1313
self.time_steps = time_steps
14-
self.factor_diffeo = factor_diffeo
1514
self._grid = None
1615

1716
def apply_flows(self, x, y, v_xy, v_yx):
@@ -27,7 +26,7 @@ def apply_flows(self, x, y, v_xy, v_yx):
2726
return images, flows
2827

2928
def diffeomorphic_transform(self, v):
30-
v = self.factor_diffeo * v / (2 ** self.time_steps)
29+
v = v / (2 ** self.time_steps)
3130
for i in range(self.time_steps):
3231
v = v + self.spatial_transform(v, v)
3332
return v

0 commit comments

Comments
 (0)