Skip to content

Commit

Permalink
Simplified PyTorch hub for custom models (ultralytics#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Dec 12, 2020
1 parent f7a923b commit e92245a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def custom(path_or_model='path/to/model.pt'):

if __name__ == '__main__':
model = create(name='yolov5s', pretrained=True, channels=3, classes=80) # pretrained example
# model = custom(model='path/to/model.pt') # custom example
# model = custom(path_or_model='path/to/model.pt') # custom example
model = model.autoshape() # for PIL/cv2/np inputs and NMS

# Verify inference
Expand Down

0 comments on commit e92245a

Please sign in to comment.