Comments (6)
It may caused by some path problem: https://stackoverflow.com/questions/47172770/error-215-ssize-width-0-ssize-height-0-in-function-resize
from pytorch_realtime_multi-person_pose_estimation.
You may need print if the path of that mask exist: https://github.com/tensorboy/pytorch_Realtime_Multi-Person_Pose_Estimation/blob/master/training/datasets/coco_data/COCO_data_pipeline.py#L226
from pytorch_realtime_multi-person_pose_estimation.
print(self.root + 'mask2014/val2014_mask_miss_' + img_idx + 'png')
printed ./training/dataset/COCO/images/mask2014/val2014_mask_miss_000000004947.png
ls ./training/dataset/COCO/images/mask2014/val2014_mask_miss_000000113970.png
ls: cannot access './training/dataset/COCO/images/mask2014/val2014_mask_miss_000000113970.png': No such file or directory
Filenames may be different?
mask2014 position is correct.
In mask2014, images are jpg.
from pytorch_realtime_multi-person_pose_estimation.
After change
self.mask_dir + 'mask2014/val2014_mask_miss_' + img_idx + 'png', 0)
to
self.mask_dir + 'mask2014/val2014/mask_COCO_val2014_' + img_idx + 'jpg', 0),
Error codes changed.
Loading dataset...
train dataset len: 121522
val dataset len: 4873
Bulding VGG19
load imagenet pretrained model: ./network/weight/
./training/dataset/COCO/images/mask2014/train2014/mask_COCO_train2014_000000010094.jpg
...
Traceback (most recent call last):
File "train_VGG19.py", line 310, in
train_loss = train(train_data, model, optimizer, epoch)
File "train_VGG19.py", line 157, in train
for i, (img, heatmap_target, heat_mask, paf_target, paf_mask) in enumerate(train_loader):
File "anaconda3/envs/py35/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 286, in next
return self._process_next_batch(batch)
File "anaconda3/envs/py35/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 307, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
KeyError: 'Traceback (most recent call last):\n File "anaconda3/envs/py35/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 57, in _worker_loop\n samples = collate_fn([dataset[i] for i in batch_indices])\n File "anaconda3/envs/py35/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 57, in \n samples = collate_fn([dataset[i] for i in batch_indices])\n File "pytorch_Realtime_Multi-Person_Pose_Estimation/training/datasets/coco_data/COCO_data_pipeline.py", line 255, in getitem\n meta_data, mask_miss)\n File "pytorch_Realtime_Multi-Person_Pose_Estimation/training/datasets/coco_data/COCO_data_pipeline.py", line 214, in get_ground_truth\n count=count, params_transform=self.params_transform)\n File "pytorch_Realtime_Multi-Person_Pose_Estimation/training/datasets/coco_data/paf.py", line 27, in putVecMaps\n thre = params_transform['limb_width'] # limb width\nKeyError: 'limb_width'\n'
from pytorch_realtime_multi-person_pose_estimation.
It worked!
You forgot to define "params_transform['limb_width'] = 1.289" in train_VGG19.py
Thanks for your help!
from pytorch_realtime_multi-person_pose_estimation.
I remember it is 1 for VGG19 and 1.289 for stackedhourglass,that number should be different based on the size of output.
I used this method to test best sigma and limb_width for heatmap and paf:
Using different sigma and limb_width to generate ground truth heatmap and paf to see which value has the highest mAP on validation set.
from pytorch_realtime_multi-person_pose_estimation.
Related Issues (20)
- no results on own datasets test HOT 3
- mystical memory cost issues
- Hello,where is “slim”? HOT 1
- Some questions about training?
- ImportError: DLL load failed while importing _pafprocess HOT 9
- model from 'rtpose' link cannot archieved a good performance
- Runs very slow on ubuntu 20.04
- 去掉隐藏点训练为啥效果很差
- Cannot open the dropbox HOT 1
- Same results as openpose demo?
- The following error occurred when I tested my trained model. HOT 4
- Is there any post-processing code for C++
- Loss nan
- In the demo code, update the lines to load the model as below:
- how to get multi person heatmaps/confidence maps
- How can the model achieve real-time?
- 您好,请问您有保存最后的optimizer的dict吗
- who can share pretrained model?
- Can I get openpose.pkl file?
- How to training base on MobileNetV2?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch_realtime_multi-person_pose_estimation.