Skip to content
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

Body_25b vs. Body_25 caffemodels #3

Closed
llevkova opened this issue Oct 8, 2019 · 9 comments
Closed

Body_25b vs. Body_25 caffemodels #3

llevkova opened this issue Oct 8, 2019 · 9 comments
Labels
help wanted/question Extra attention is needed

Comments

@llevkova
Copy link

llevkova commented Oct 8, 2019

The provided body_25 model is not compatible with the current openpose_caffe_train. It cannot be loaded to be used as a starting point for finetuning. It gives the error: Can't parse message of type "caffe.NetParameter" because it is missing required fields: layer[0].clip_param.min, layer[0].clip_param.max. Is it possible to release a pretrained body_25 model compatible with the d-setLayer.py generated training scripts?

Posting rules

  1. Duplicated posts will not be answered. Check the FAQ section, other GitHub issues, and general documentation before posting. E.g., low-speed, out-of-memory, output format, 0-people detected, installation issues, ...).
  2. Fill the Your System Configuration section (all of it or it will not be answered!) if you are facing an error or unexpected behavior. Feature requests or some other type of posts might not require it.
  3. No questions about 3rd party libraries:
    • Caffe errors/issues, check Caffe documentation.
    • CUDA check failed errors: They are usually fixed by re-installing CUDA, then re-installing the proper cuDNN version, and then re-compiling (or re-installing) OpenPose. Otherwise, check for help in CUDA forums.
    • OpenCV errors: Install the default/pre-compiled OpenCV or check for online help.
  4. Set a proper issue title: add the Ubuntu/Windows keyword and be specific (e.g., do not call it: Error).
  5. Only English comments.
    Posts which do not follow these rules will be ignored, closed, or reported with no further clarification.

Issue Summary

Executed Command (if any)

Note: add --logging_level 0 --disable_multi_thread to get higher debug information.

OpenPose Output (if any)

Errors (if any)

Type of Issue

You might select multiple topics, delete the rest:

  • Compilation/installation error
  • Execution error
  • Help wanted
  • Question
  • Enhancement / offering possible extensions / pull request / etc
  • Other (type your own type)

Your System Configuration

  1. Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here: LINK

  2. OpenPose version: Latest GitHub code? Or specific commit (e.g., d52878f)? Or specific version from Release section (e.g., 1.2.0)?

  3. General configuration:

    • Installation mode: CMake, sh script, manual Makefile installation, ... (Ubuntu); CMake, ... (Windows); ...?
    • Operating system (lsb_release -a in Ubuntu):
    • Operating system version (e.g., Ubuntu 16, Windows 10, ...):
    • Release or Debug mode? (by default: release):
    • Compiler (gcc --version in Ubuntu or VS version in Windows): 5.4.0, ... (Ubuntu); VS2015 Enterprise Update 3, VS2017 community, ... (Windows); ...?
  4. Non-default settings:

    • 3-D Reconstruction module added? (by default: no):
    • Any other custom CMake configuration with respect to the default version? (by default: no):
  5. 3rd-party software:

    • Caffe version: Default from OpenPose, custom version, ...?
    • CMake version (cmake --version in Ubuntu):
    • OpenCV version: pre-compiled apt-get install libopencv-dev (only Ubuntu); OpenPose default (only Windows); compiled from source? If so, 2.4.9, 2.4.12, 3.1, 3.2?; ...?
  6. If GPU mode issue:

    • CUDA version (cat /usr/local/cuda/version.txt in most cases):
    • cuDNN version:
    • GPU model (nvidia-smi in Ubuntu):
  7. If CPU-only mode issue:

    • CPU brand & model:
    • Total RAM memory available:
  8. If Python API:

    • Python version: 2.7, 3.7, ...?
    • Numpy version (python -c "import numpy; print numpy.version.version" in Ubuntu):
  9. If Windows system:

    • Portable demo or compiled library?
  10. If speed performance issue:

    • Report OpenPose timing speed based on this link.
@gineshidalgo99
Copy link
Member

Our models are different (and more accurate) than that one, that is why we do not pre-train on it.

@gineshidalgo99 gineshidalgo99 added the help wanted/question Extra attention is needed label Oct 13, 2019
@llevkova
Copy link
Author

Thank you for your answer. Would it be possible to provide a pre-trained model body_25b which is compatible with the generated by default prototxts by your scripts?

@gineshidalgo99
Copy link
Member

gineshidalgo99 commented Oct 13, 2019

https://github.com/CMU-Perceptual-Computing-Lab/openpose_train/tree/master/experimental_models

The exact d_setLayers might be slightly different, but its own one is included in those models as well.

@gineshidalgo99 gineshidalgo99 changed the title Body_25 caffemodel Body_25b vs. Body_25 caffemodels Oct 20, 2019
@gineshidalgo99
Copy link
Member

gineshidalgo99 commented Oct 20, 2019

Sorry! I've just realized that the d_setLayers was not included in the repo due to some issue with our gitignore file. They are now uploaded!

In addition, we have added the scripts for the official body_25 from OpenPose (but we recommend using body_25b for better accuracy while maintaining the same speed).

See the updated README from https://github.com/CMU-Perceptual-Computing-Lab/openpose_train/tree/master/experimental_models

@llevkova
Copy link
Author

llevkova commented Oct 22, 2019 via email

@llevkova
Copy link
Author

I have the following question and will really appreciate if you have any insights.
I trained from scratch body_25b fast model and its mAP is 51.6% on coco val2017 (17 keypoints) after running the full schedule as generated in pose_solver.prototxt.
The model you just provided has mAP of 53.2% on the same data set. Do you have an idea why I am getting a worse result? I noticed some differences in the OPData layer in the provided train proto in experimental_models/1_25BBkg/training_results, such as different name for the rotation angle which would not work with the current openpose code. It is possible the protos are generated with an older version of openpose? Also the variable scale_maxs: "1.5" , instead of scale_maxs: "1.5;1.5;2.5". Is this what you recommend?

@anerisheth19
Copy link

I have the following question and will really appreciate if you have any insights.
I trained from scratch body_25b fast model and its mAP is 51.6% on coco val2017 (17 keypoints) after running the full schedule as generated in pose_solver.prototxt.
The model you just provided has mAP of 53.2% on the same data set. Do you have an idea why I am getting a worse result? I noticed some differences in the OPData layer in the provided train proto in experimental_models/1_25BBkg/training_results, such as different name for the rotation angle which would not work with the current openpose code. It is possible the protos are generated with an older version of openpose? Also the variable scale_maxs: "1.5" , instead of scale_maxs: "1.5;1.5;2.5". Is this what you recommend?

What is your input resolution?

@llevkova
Copy link
Author

llevkova commented Nov 6, 2019 via email

@gineshidalgo99
Copy link
Member

gineshidalgo99 commented Nov 8, 2019

Our best resuls are obtained with 4-GPU machines and a batch size of 10, training for about 800k iterations (and picking the model with maximum accuracy amount those). [This line has also been pushed into train/README.md, thanks for the question!]

Are you using this setting as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted/question Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants