Open PoissonChasseur opened 2 years ago
I made a temporary correction by simply changing line 30 of the "utils.google_utils.py" file by defining:
tag = 'v0.1'
instead of
tag = subprocess.check_output('git tag', shell=True).decode().split()[-1]
Since the pre-trained model files are currently placed in: https://github.com/WongKinYiu/yolov7/releases/tag/v0.1
However, a better solution (which would also be able to handle future tags) would be much better.
Also, at line 28 of the "utils.google_utils.py" file with the following code:
assets = ['yolov7.pt', 'yolov7-tiny.pt', 'yolov7x.pt', 'yolov7-d6.pt', 'yolov7-e6.pt',
'yolov7-e6e.pt', 'yolov7-w6.pt']
It's missing all cases with "_training" (which seem to be the ones to use for "transfer learning", based on the README), so it looks like this line should be changed to something like this:
assets = ['yolov7.pt', 'yolov7-tiny.pt', 'yolov7x.pt', 'yolov7-d6.pt', 'yolov7-e6.pt',
'yolov7-e6e.pt', 'yolov7-w6.pt', 'yolov7x_training.pt',
'yolov7-e6_training.pt', 'yolov7-e6e_training.pt', 'yolov7-d6_training.pt',
'yolov7-w6_training.pt', 'yolov7_training.pt']
Why is there no yolov7-tiny_training.pt
? Is there a problem with using the non-transfer-learning yolov7-tiny.pt
instead?
I just downloaded the latest code from the main branche and when I try to simply run the code with the usage of the webcam with:
I got the following error message:
When I manually try the link the code is trying to use: https://api.github.com/repos/WongKinYiu/yolov7/releases/latest
I can see why there is this error message since I am seing this:
Does anyone know how to solve this ?