human-pose-estimation.pytorch
human-pose-estimation.pytorch copied to clipboard
I have an error when I load image file in data/coco/images/val2017
when I use !python3 pose_estimation/valid.py
--cfg experiments/coco/resnet50/256x192_d256x3_adam_lr1e-3.yaml
--flip-test
--model-file models/pytorch/pose_coco/pose_resnet_50_256x192.pth.tar
--workers 2
to valid the pretrained model,the following error happens!
=> classes: ['background', 'person']
=> num_images: 5000
=> load 6352 samples
=> fail to read data/coco/images/val2017/000000397133.jpg
Traceback (most recent call last):
File "pose_estimation/valid.py", line 168, in
This error occurs when the code is unable to locate your image file.
I encountered this when using my own dataset. The best way to sort this out is to keep that particular image outside the Val/Train folder and run the code again. For example: for Valid images. Instead of placing them inside /data/images/valid2017. Just keep it /data/images and then try. Try with 1 image and see if the same error occurs for the next image of the valid. Then you would understand.
It worked for me!
@Dipankar1997161 Hello can you please explain how did you use the model for your own dataset?