Skip to content

Commit 077eaa6

Browse files
committed
rename get_varialbe -> get_variable everywhere
1 parent 1739378 commit 077eaa6

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

animals/scripts/main_animal3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def step(split, args, actions, dataLoader, model, optimizer=None, epoch=None, st
7575
# gt_3D shape: torch.Size([B, J, 4]) (x,y,z + homogeneous coordinate)
7676
gt_3D = gt_3D[:,:,:3] # only use x,y,z for 3D ground truth
7777

78-
# [input_2D, gt_3D, batch_cam, vis_3D] = get_varialbe(split, [input_2D, gt_3D, batch_cam, vis_3D])
78+
# [input_2D, gt_3D, batch_cam, vis_3D] = get_variable(split, [input_2D, gt_3D, batch_cam, vis_3D])
7979

8080
# unsqueeze frame dimension
8181
input_2D = input_2D.unsqueeze(1) # (B,F,J,C)

fmpose3d/animals/common/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def update(self, val, n=1):
219219
self.avg = self.sum / self.count
220220

221221

222-
def get_varialbe(split, target):
222+
def get_variable(split, target):
223223
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
224224
num = len(target)
225225
var = []

fmpose3d/common/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
save_top_N_models,
2323
test_calculation,
2424
print_error,
25-
get_varialbe,
25+
get_variable,
2626
)
2727

2828
__all__ = [
@@ -36,6 +36,6 @@
3636
"save_top_N_models",
3737
"test_calculation",
3838
"print_error",
39-
"get_varialbe",
39+
"get_variable",
4040
]
4141

fmpose3d/common/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def update(self, val, n=1):
185185
self.avg = self.sum / self.count
186186

187187

188-
def get_varialbe(split, target):
188+
def get_variable(split, target):
189189
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
190190
num = len(target)
191191
var = []

scripts/FMPose3D_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_multi_hypothesis(
7878

7979
for i, data in enumerate(tqdm(dataLoader, 0)):
8080
batch_cam, gt_3D, input_2D, action, subject, scale, bb_box, cam_ind = data
81-
[input_2D, gt_3D, batch_cam, scale, bb_box] = get_varialbe(
81+
[input_2D, gt_3D, batch_cam, scale, bb_box] = get_variable(
8282
split, [input_2D, gt_3D, batch_cam, scale, bb_box]
8383
)
8484

@@ -165,7 +165,7 @@ def train(opt, train_loader, model, optimizer):
165165

166166
for i, data in enumerate(tqdm(train_loader, 0)):
167167
batch_cam, gt_3D, input_2D, action, subject, scale, bb_box, cam_ind = data
168-
[input_2D, gt_3D, batch_cam, scale, bb_box] = get_varialbe(
168+
[input_2D, gt_3D, batch_cam, scale, bb_box] = get_variable(
169169
split, [input_2D, gt_3D, batch_cam, scale, bb_box]
170170
)
171171

0 commit comments

Comments
 (0)