Skip to content

Commit

Permalink
adapat to mmcls >= 0.16.0 (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
GT9505 authored Oct 1, 2021
1 parent b66ef6f commit ae53c70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mmtrack/models/reid/base_reid.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def forward_train(self, img, gt_label, **kwargs):
# change the shape of label tensor from NxS to NS
gt_label = gt_label.view(-1)
x = self.extract_feat(img)
head_outputs = self.head.forward_train(x)
head_outputs = self.head.forward_train(x[0])

losses = dict()
reid_loss = self.head.loss(gt_label, *head_outputs)
Expand All @@ -30,7 +30,7 @@ def simple_test(self, img, **kwargs):
"""Test without augmentation."""
if img.nelement() > 0:
x = self.extract_feat(img)
head_outputs = self.head.forward_train(x)
head_outputs = self.head.forward_train(x[0])
feats = head_outputs[0]
return feats
else:
Expand Down
2 changes: 1 addition & 1 deletion requirements/runtime.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dotty_dict
matplotlib
mmcls>=0.14.0
mmcls>=0.16.0
motmetrics
packaging
pycocotools
Expand Down

0 comments on commit ae53c70

Please sign in to comment.