RizwanMunawar / yolov7-pose-estimation

YOLOv7 Pose estimation using OpenCV, PyTorch
GNU General Public License v3.0
335 stars 77 forks source link

No such file or directory: 'yolov7-w6-pose.pt' #16

Closed jossevessies closed 1 year ago

jossevessies commented 1 year ago

Dear Razwan,

Thank again. And this time... a true small error. As I said, probably on my side, but I wouldn't know where to begin. It seems to be an issue with loading the weights into torch.

Here the full log:

File "C:\Users\josse\yolov7-pose-estimation\pose-estimate.py", line 202, in strip_optimizer(opt.device,opt.poseweights) File "C:\Users\josse\yolov7-pose-estimation\utils\general.py", line 797, in strip_optimizer with _open_file_like(f, 'rb') as opened_file: File "C:\Users\josse\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\serialization.py", line 231, in _open_file_like return _open_file(name_or_buffer, mode) File "C:\Users\josse\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\serialization.py", line 212, in init super(_open_file, self).init(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: 'yolov7-w6-pose.pt'

I hope you have a clue!

RizwanMunawar commented 1 year ago

@jossevessies! You will need to download the weights file "yolov7-w6-pose.pt" from mentioned link below. https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-w6-pose.pt

BTW, it is clearly mentioned in the readme file. See step 7 in Steps to run code

jossevessies commented 1 year ago

Right. My bad. Apologies. I had installed everything a couple of months before and had it working. This time I did the installation by heart. Forgot there was this step.

Well, you remain great!

RizwanMunawar commented 1 year ago

@jossevessies! I am closing this issue. Feel free to open new issue, if you will face any errors.