Skip to content

Commit

Permalink
fixed bug: the imagenet index has to start from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
eljanmahammadli committed Nov 20, 2023
1 parent 286daca commit 7334559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/imagenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,4 +1000,4 @@
"ear",
"toilet tissue",
]
IMAGENET_CATEGORIES = {i + 1: v for i, v in enumerate(IMAGENET_CATEGORIES)}
IMAGENET_CATEGORIES = {i: v for i, v in enumerate(IMAGENET_CATEGORIES)}

0 comments on commit 7334559

Please sign in to comment.