Skip to content

Commit 113ac17

Browse files
authored
Update detect_and_track.py
Bug doesn't allow to check if weights other than yolov7.pt exist, the path is always incorrect.
1 parent 936097e commit 113ac17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detect_and_track.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def detect(save_img=False):
304304
opt = parser.parse_args()
305305
print(opt)
306306
#check_requirements(exclude=('pycocotools', 'thop'))
307-
if opt.download and not os.path.exists(str(opt.weights)):
307+
if opt.download and not os.path.exists(''.join(opt.weights)):
308308
print('Model weights not found. Attempting to download now...')
309309
download('./')
310310

0 commit comments

Comments
 (0)