New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python example #291
Comments
Hi @salvador-blanco , you can do prediction using both python(only for training usage, therefore may not be efficient) and c++(highly optimized, but we have not implemented a python wrapper yet). @Gyx-One Could you add an example of debugging/visualizing algorithms along with prediction API? |
@salvador-blanco |
@salvador-blanco |
Hello! I'm trying to run the hao28-pose345000.npz and the hao28-pose600000.npz models in infer.py, but I stumbled upon the following error:
If I replace line 15 in infer.py with:
but I have many warning like this:
How can I load a model in TF correctly? |
Hello! The reason of the warning "[TL] WARNING: Weights named 'conv4_3_W' not found in network. Skip it." is that the two models hao28-pose345000.npz and hao28-pose600000.npz are trained by the first version of hyperpose which is compatible with tf 1.0, but now we update hyperpose to version 2.0 now where the network architectures are different from the old version, so load the these two npz models will lead to the mismatch in layers.(just as the warning said). Thus to load a model, you should use the same model type (set by function set_model_type) and model backbone (set bu function set_model_backbone) as the training configuration that produces the .npz model file (in current hyperpose 2.0 API), then load the .npz file as the infer.py. |
Hello. @Gyx-One I am having the same problem. Will you please provide the npz files for the new Hyperpose 2.0 implementation? I only need the pre-trained weights. Thanks in advance and thank you for this amazing project! |
Is there an example on how to make a prediction on an image using python?
If possible with all the associated data?
Heatmaps
Prediction bodyparts (x,y)
Image with a skeleton ?
The text was updated successfully, but these errors were encountered: