keras_Realtime_Multi-Person_Pose_Estimation
keras_Realtime_Multi-Person_Pose_Estimation copied to clipboard
error running generate_hdf5
('Image ID ', 90108)
('Image ID ', 179112)
('Image ID ', 311295)
('Num samples ', 55242)
Traceback (most recent call last):
File "generate_hdf5.py", line 323, in
@xjoshramos Hi, how did you get mask_miss and mask_all imgs? I want to transfer this model to a new dataset which has 14kepoints for a person, I need to generate mask_miss and mask_all images to retrain the model
Generate_mask.py script in the training folder. Are you able to run the hdf5 script for preaparing the data?
I got the same error, and I don't understand what does the function float2bytes for. I did ignore the generate_mask.py. Now I'm trying to transfer the model to a new dataset, and the annotation doesn't have segmentation, do you know how should I deal with the mask_miss and mask_all matrix.
@xjoshramos This error occurs on python 2.x Try to tun the script under python 3.5

mask_all, mask_miss Its used in the loss function because not every person is annotated inside the coco set.
Hi, I encountered an error while using Python3.5, I have passed the step 'python3 setup.py install' , but when I do 'from pycocotools.coco import COCO' ", the error '_mask.so: undefined symbol: _Py_ZeroStruct ' came out, would you like to help me solve the problem
@michalfaber
Is it possible to fix the error:
ValueError: invalid literal for long() with base 10: ''
in Python2?
@GaogaoT you have several pythons installed and they mixed libraries, use vitrualenv or conda and install/compile everything with one version of python
@GaogaoT You may want to rebuild your coco api using python3.x
- go to
coco/PythonAPI - Setup your coco api using
sudo python3 setup.py build_ext --inplaceundercoco/PythonAPI - Then, go back to the
trainingfolder and runpython3 generate_hdf5.py
@GaogaoT, I tried what @kevinlin311tw suggested above, but didn't work. So I did the setup again like
$ python setup.py install
Tried running the script in python 2.7 and got the same error as @xjoshramos :
('Image ID ', 90108) ('Image ID ', 179112) ('Image ID ', 311295) ('Num samples ', 55242) Traceback (most recent call last): File "generate_hdf5.py", line 323, in writeHDF5() File "generate_hdf5.py", line 220, in writeHDF5 meta_data[clidx][i] = long(height_binary[i]) ValueError: invalid literal for long() with base 10: ''
Tried running in Python 3.5 from a virtual env. The code throws this error, same as @GaogaoT :
File "generate_hdf5.py", line 4, in
Did anyone solve this issue?
Tried running the script in python 3.5 and got the same error as @xjoshramos
('Image ID ', 90108)
('Image ID ', 179112)
('Image ID ', 311295)
('Value of count:', 55242)
('Num samples ', 55242)
Traceback (most recent call last):
File "/Users/abi/PycharmProjects/Pose estimation Keras/training/generate_hdf5.py", line 326, in
Process finished with exit code 1
I am trying hard to find a fix. Till now couldn't find any.
New update
Upgraded my python environment in my mac to py3.6 using miniconda packages and now this program is running without any errors. However the training dataset which is formed is so huge in size and my storage got full during the runtime. @michalfaber is there any way that I can limit the number of samples. Sorry if this question is too stupid. Also I have a doubt like each of the sample which is referred in the program is each of the images information only right ??