Skip to content

Commit

Permalink
🔧 fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylode committed May 4, 2023
1 parent d994ce0 commit 86c4af3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion theseus/cv/classification/metrics/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def update(self, outputs: Dict[str, Any], batch: Dict[str, Any]):
torch.argmax(outputs["outputs"].detach().cpu(), dim=1).numpy().tolist()
)
inputs = batch["inputs"]
targets = batch["targets"].numpy().tolist()
if self.has_labels:
targets = batch["targets"].numpy().tolist()
img_names = batch["img_names"]

for i, _ in enumerate(features):
Expand Down

0 comments on commit 86c4af3

Please sign in to comment.