We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1739378 commit 077eaa6Copy full SHA for 077eaa6
5 files changed
animals/scripts/main_animal3d.py
@@ -75,7 +75,7 @@ def step(split, args, actions, dataLoader, model, optimizer=None, epoch=None, st
75
# gt_3D shape: torch.Size([B, J, 4]) (x,y,z + homogeneous coordinate)
76
gt_3D = gt_3D[:,:,:3] # only use x,y,z for 3D ground truth
77
78
- # [input_2D, gt_3D, batch_cam, vis_3D] = get_varialbe(split, [input_2D, gt_3D, batch_cam, vis_3D])
+ # [input_2D, gt_3D, batch_cam, vis_3D] = get_variable(split, [input_2D, gt_3D, batch_cam, vis_3D])
79
80
# unsqueeze frame dimension
81
input_2D = input_2D.unsqueeze(1) # (B,F,J,C)
fmpose3d/animals/common/utils.py
@@ -219,7 +219,7 @@ def update(self, val, n=1):
219
self.avg = self.sum / self.count
220
221
222
-def get_varialbe(split, target):
+def get_variable(split, target):
223
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
224
num = len(target)
225
var = []
fmpose3d/common/__init__.py
@@ -22,7 +22,7 @@
22
save_top_N_models,
23
test_calculation,
24
print_error,
25
- get_varialbe,
+ get_variable,
26
)
27
28
__all__ = [
@@ -36,6 +36,6 @@
36
"save_top_N_models",
37
"test_calculation",
38
"print_error",
39
- "get_varialbe",
+ "get_variable",
40
]
41
fmpose3d/common/utils.py
@@ -185,7 +185,7 @@ def update(self, val, n=1):
185
186
187
188
189
190
191
scripts/FMPose3D_main.py
@@ -78,7 +78,7 @@ def test_multi_hypothesis(
for i, data in enumerate(tqdm(dataLoader, 0)):
batch_cam, gt_3D, input_2D, action, subject, scale, bb_box, cam_ind = data
- [input_2D, gt_3D, batch_cam, scale, bb_box] = get_varialbe(
+ [input_2D, gt_3D, batch_cam, scale, bb_box] = get_variable(
82
split, [input_2D, gt_3D, batch_cam, scale, bb_box]
83
84
@@ -165,7 +165,7 @@ def train(opt, train_loader, model, optimizer):
165
166
for i, data in enumerate(tqdm(train_loader, 0)):
167
168
169
170
171
0 commit comments