-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Description
First of all, thanks for this great piece of software!
Problem
Without internet connection, calling detect.py fails. It seems that even when a local copy of weights is available, the code still tries to load a set of weights from an online resource.
Commenting this line prevents the error and the code runs as expected:
Line 117 in e5d7122
attempt_download(w) |
However, as I am using the yolov5 version from PyPI, which is dynamically installed into a virtual environment, commenting is not a long-term option.
Request
@glenn-jocher Would it be possible to include a switch, where the code only tries to load weights from an online resource if the weights are not found locally? This would also be in line with the comment at:
Line 20 in e5d7122
# Attempt file download if does not exist |
Thanks in advance!