Skip to content

Commit

Permalink
Merge pull request #305 from kepler62f/master
Browse files Browse the repository at this point in the history
data type for sys.argv
  • Loading branch information
Tianxiaomo authored Dec 12, 2021
2 parents bc05533 + 533cb3c commit 267a040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,9 @@ def forward(self, input):
n_classes = int(sys.argv[1])
weightfile = sys.argv[2]
imgfile = sys.argv[3]
height = sys.argv[4]
height = int(sys.argv[4])
width = int(sys.argv[5])
namesfile = int(sys.argv[6])
namesfile = sys.argv[6]
else:
print('Usage: ')
print(' python models.py num_classes weightfile imgfile namefile')
Expand Down

0 comments on commit 267a040

Please sign in to comment.