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

how to transfer json to bvh? #34

Closed
xinzi2018 opened this issue Jun 17, 2020 · 4 comments
Closed

how to transfer json to bvh? #34

xinzi2018 opened this issue Jun 17, 2020 · 4 comments

Comments

@xinzi2018
Copy link

No description provided.

@HalfSummer11
Copy link
Collaborator

Hi, did you mean transferring the style from a 2D motion described by json to a 3D content motion in bvh format?
To do so, please first make sure your json files are generated by OpenPose with options --face, --hand enabled. Below is an example:
./build/examples/openpose/openpose.bin --video [your video path] --write_json [your json path] --display 0 --render_pose 0 --face --hand

Then use the json path as the style source and run test.py.
python style_transfer/test.py --content_src [your bvh] --style_src [your json path] --output_dir [your output path]

Hope this would help.

@xinzi2018
Copy link
Author

Thanks a lot! in your way, i test style_Transfer successfully!
But i have another question ,in the retarget, if i use my BVH, the retarget/demo.sh will also not success. (openpose not provide the json to bvh, so i use VideoTo3dPoseAndBvh to transfer my own mp4 to BVH,but it only 17 landmarks)

@PeizhuoLi
Copy link
Collaborator

We are planning to release more details about using your own bvh soon. More details please check #31. Thank you.

@Qoo861207
Copy link

Hi, did you mean transferring the style from a 2D motion described by json to a 3D content motion in bvh format? To do so, please first make sure your json files are generated by OpenPose with options --face, --hand enabled. Below is an example: ./build/examples/openpose/openpose.bin --video [your video path] --write_json [your json path] --display 0 --render_pose 0 --face --hand

Then use the json path as the style source and run test.py. python style_transfer/test.py --content_src [your bvh] --style_src [your json path] --output_dir [your output path]

Hope this would help.

Can you explain how this code works? I don't know how to code at all
Is this used on cmd or python?
I use it on cmd in your way
.python style_transfer\test.py --content_src test2.bvh --style_src D:\Newfo\openpose\examples\media\test1\test2.bvh --output_dir D:\Newfo\openpose\examples\media\test1
As a result, the following problem occurred
.python: can't open file'D:\\Newfo\\openpose\\bin\\style_transfer\\test.py': [Errno 2] No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants