Skip to content

Commit

Permalink
fixed the problem of downloading models (WongKinYiu#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewalk01 authored Aug 8, 2022
1 parent 8758cdd commit c14ba0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/google_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def attempt_download(file, repo='WongKinYiu/yolov7'):
assets = [x['name'] for x in response['assets']] # release assets
tag = response['tag_name'] # i.e. 'v1.0'
except: # fallback plan
assets = ['yolov7.pt']
assets = ['yolov7.pt', 'yolov7-tiny.pt', 'yolov7x.pt', 'yolov7-d6.pt', 'yolov7-e6.pt',
'yolov7-e6e.pt', 'yolov7-w6.pt']
tag = subprocess.check_output('git tag', shell=True).decode().split()[-1]

name = file.name
Expand Down

0 comments on commit c14ba0c

Please sign in to comment.