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

BVH not downloading #11

Open
flip321 opened this issue Jun 3, 2019 · 34 comments
Open

BVH not downloading #11

flip321 opened this issue Jun 3, 2019 · 34 comments

Comments

@flip321
Copy link

flip321 commented Jun 3, 2019

BVH photo

@Dene33
Copy link
Owner

Dene33 commented Jun 3, 2019

Provide more information, please.

@flip321
Copy link
Author

flip321 commented Jun 3, 2019

I have installed the inital imports and uploaded my mp4 video file to 100%. I set the fps for 24 and i get an error for the video processing that says (FileNotFoundError: [Errno 2] No such file or directory: '2d_pose_estimation.py'). and for BVH download i get a message that says ( FileNotFoundError: Cannot find file: hmr/output/bvh_animation/estimated_animation.bvh). I dont know why im receiving the errors and if this is why i have not received the BVH file.

@flip321
Copy link
Author

flip321 commented Jun 3, 2019

I missed a few errors after installing the initial imports. ERROR: Failed building wheel for opendr AND ERROR: Command "/usr/bin/python2 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-FHu_g5/opendr/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-weAs9R/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-FHu_g5/opendr

@Dene33
Copy link
Owner

Dene33 commented Jun 4, 2019

There was a bug with opendr version. That's already fixed. Are you sure you're using the last version?

@flip321
Copy link
Author

flip321 commented Jun 4, 2019

I think so, Is there another version that you can show me?

@Dene33
Copy link
Owner

Dene33 commented Jun 4, 2019

Just follow the 1st step of usage from README. Also follow other steps too. And check if your video is actually uploaded.

@flip321
Copy link
Author

flip321 commented Jun 4, 2019

getting ERROR: Failed building wheel for opendr and ERROR: Command "/usr/bin/python2 -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-IM6ZRU/opendr/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-Xc5U23/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-IM6ZRU/opendr/ ON THE FIRST STEP

@Dene33
Copy link
Owner

Dene33 commented Jun 4, 2019

Ah, that's not the case of your issue. That is the requirement that I forgot to remove, just ignore this error. There is another install of opendr required version - opendr-0.77 in the end of first cell - !pip2 install opendr==0.77

The last lines of 1st cell output should be:
Installing collected packages: opendr
Successfully installed opendr-0.77

So double check the video that you're uploading and correctness of following steps described in README

@flip321
Copy link
Author

flip321 commented Jun 4, 2019

the upload of the video is 100% and i processed the video but it says sample_videos/NEYO: No such file or directory. where should i find the download BVH file once everything has worked properly? I dont think the video is converting to video images.

@Dene33
Copy link
Owner

Dene33 commented Jun 4, 2019

I've checked again - everything works fine. You're doing something wrong. Reset your Google Colab runtime and try again. Result .bvh should be in hmr/output/bvh_animation/

What video you're trying to process? Maybe the issue is in it's extension or something.

@flip321
Copy link
Author

flip321 commented Jun 5, 2019

what is the maximum length or frames that can be uploaded .

@Dene33
Copy link
Owner

Dene33 commented Jun 5, 2019

I'm not sure about restriction in that case. Google Colab has 300+ GB of space for you.

@flip321
Copy link
Author

flip321 commented Jun 5, 2019

I have made the video shorter and followed all the steps. I'm not sure why its not working.

@flip321
Copy link
Author

flip321 commented Jun 5, 2019

its an mp4. once i finish the BVH step I see no BVH made no file nothing.

@Dene33
Copy link
Owner

Dene33 commented Jun 5, 2019

Maybe 2d pose estimation or hmr can't detect any human in frame. If you want, share the video so I could test it myself. Or upload another video with one person that should work for 100%.

@flip321
Copy link
Author

flip321 commented Jun 5, 2019

ok, how can i share it with you?

@Dene33
Copy link
Owner

Dene33 commented Jun 5, 2019

https://wetransfer.com/ upload it here and share the link here

@flip321
Copy link
Author

flip321 commented Jun 5, 2019

@Dene33
Copy link
Owner

Dene33 commented Jun 5, 2019

The problem is that you have space in your file name. Rename it to Mad_2820.mp4 and try again. Also reset your Colab runtime just in case.

@flip321
Copy link
Author

flip321 commented Jun 6, 2019

THANKS! it worked and has started to process the video but now it says "GPU memory usage is close to the limit" I have even made the video shorter but its saying the same. sigh

@Dene33
Copy link
Owner

Dene33 commented Jun 6, 2019

Make the screenshot please.

@flip321
Copy link
Author

flip321 commented Jun 7, 2019

GPU memory

@flip321
Copy link
Author

flip321 commented Jun 7, 2019

Im not sure how to fix that but thats what it says. i have cut the video down to 10 seconds and its still saying memory is close to the limit.

@Dene33
Copy link
Owner

Dene33 commented Jun 7, 2019

Click IGNORE, that's not an issue.

@flip321
Copy link
Author

flip321 commented Jun 7, 2019

i tried to ignore it but it wont allow it.

@Dene33
Copy link
Owner

Dene33 commented Jun 7, 2019

Collab was running something around 3+ hours and I had no problems at all. Here is the estimated .bvh: https://we.tl/t-XrVWPeBT7W That's not the full video though.

@flip321
Copy link
Author

flip321 commented Jun 8, 2019

not sure why im having this much trouble.

@zahrasalahshoori
Copy link

Hi
@Dene33
Thanks for the awesome code
I have a similar problem @flip321
it worked for me but now it doesn't work
can i ask you to help me?
Thank you

@Dene33
Copy link
Owner

Dene33 commented Jun 17, 2019

Please read carefully through the thread and try to solve it. Or provide more information. Thanks.

@zahrasalahshoori
Copy link

@Dene33 Thank you for answering :)
I'm surprised that I had already run this code successfully!
But it's not currently running with the same video
I run the code with different videos but I did not succeed
I think these messages are not correct when the Process the video cell is running, that's why the BVH file is not downloaded
I hope you will help me :)
001

@snowyrain
Copy link

@Dene33 Thank you for answering :)
I'm surprised that I had already run this code successfully!
But it's not currently running with the same video
I run the code with different videos but I did not succeed
I think these messages are not correct when the Process the video cell is running, that's why the BVH file is not downloaded
I hope you will help me :)
001

I have the same question!Do you resolve it?

@kazux2
Copy link

kazux2 commented Sep 16, 2019

Hi guys. I encountered several errors and did workarounds and eventually got bvh file!

execute the following code at the top of "Process the video" section.

# 1. removes the duplicated 'log_dir' registration
!sed -i '59d' ../hmr/src/config.py

# 2. add None as the first auguments of tf.name_scope for these three files
!sed -i '40d' ../hmr/src/models.py
!sed -i '40i \    with tf.name_scope(None, "Encoder_resnet", [x]):' ../hmr/src/models.py
!sed -i '21d' ../hmr/src/tf_smpl/batch_lbs.py
!sed -i '21i \    with tf.name_scope(None, "batch_skew", [vec]):' ../hmr/src/tf_smpl/batch_lbs.py
!sed -i '107d' ../hmr/src/tf_smpl/batch_lbs.py
!sed -i '107i \    with tf.name_scope(None, "batch_forward_kinematics", [Rs, Js]):' ../hmr/src/tf_smpl/batch_lbs.py

# 3. cast the sorting key to string
!sed -i '194d' ../hmr/demo.py
!sed -i '194i \  all_files.sort(key=lambda x: str(x.split("/")[-1].split("/")[0]))' ../hmr/demo.py

Apparently from version 1.14 tensorflow comes with absl-py and it has the 'log_dir' flag already and collides with /hmr/src/config.py. Also after version 1.2 tf.name_scope started having different arguments and it throws error. This workaround works at least for now but not sure in the future.

Before processing actual target video, I recommend to try out with very short video with fps 1 and make sure all codes run through.

@retnrernet
Copy link

Hi guys. I encountered several errors and did workarounds and eventually got bvh file!

execute the following code at the top of "Process the video" section.

# 1. removes the duplicated 'log_dir' registration
!sed -i '59d' ../hmr/src/config.py

# 2. add None as the first auguments of tf.name_scope for these three files
!sed -i '40d' ../hmr/src/models.py
!sed -i '40i \    with tf.name_scope(None, "Encoder_resnet", [x]):' ../hmr/src/models.py
!sed -i '21d' ../hmr/src/tf_smpl/batch_lbs.py
!sed -i '21i \    with tf.name_scope(None, "batch_skew", [vec]):' ../hmr/src/tf_smpl/batch_lbs.py
!sed -i '107d' ../hmr/src/tf_smpl/batch_lbs.py
!sed -i '107i \    with tf.name_scope(None, "batch_forward_kinematics", [Rs, Js]):' ../hmr/src/tf_smpl/batch_lbs.py

# 3. cast the sorting key to string
!sed -i '194d' ../hmr/demo.py
!sed -i '194i \  all_files.sort(key=lambda x: str(x.split("/")[-1].split("/")[0]))' ../hmr/demo.py

Apparently from version 1.14 tensorflow comes with absl-py and it has the 'log_dir' flag already and collides with /hmr/src/config.py. Also after version 1.2 tf.name_scope started having different arguments and it throws error. This workaround works at least for now but not sure in the future.

Before processing actual target video, I recommend to try out with very short video with fps 1 and make sure all codes run through.

Hi guys. I encountered several errors and did workarounds and eventually got bvh file!

execute the following code at the top of "Process the video" section.

# 1. removes the duplicated 'log_dir' registration
!sed -i '59d' ../hmr/src/config.py

# 2. add None as the first auguments of tf.name_scope for these three files
!sed -i '40d' ../hmr/src/models.py
!sed -i '40i \    with tf.name_scope(None, "Encoder_resnet", [x]):' ../hmr/src/models.py
!sed -i '21d' ../hmr/src/tf_smpl/batch_lbs.py
!sed -i '21i \    with tf.name_scope(None, "batch_skew", [vec]):' ../hmr/src/tf_smpl/batch_lbs.py
!sed -i '107d' ../hmr/src/tf_smpl/batch_lbs.py
!sed -i '107i \    with tf.name_scope(None, "batch_forward_kinematics", [Rs, Js]):' ../hmr/src/tf_smpl/batch_lbs.py

# 3. cast the sorting key to string
!sed -i '194d' ../hmr/demo.py
!sed -i '194i \  all_files.sort(key=lambda x: str(x.split("/")[-1].split("/")[0]))' ../hmr/demo.py

Apparently from version 1.14 tensorflow comes with absl-py and it has the 'log_dir' flag already and collides with /hmr/src/config.py. Also after version 1.2 tf.name_scope started having different arguments and it throws error. This workaround works at least for now but not sure in the future.

Before processing actual target video, I recommend to try out with very short video with fps 1 and make sure all codes run through.

not work, already(

@SaifAdel22
Copy link

SaifAdel22 commented Apr 9, 2024

Ah, that's not the case of your issue. That is the requirement that I forgot to remove, just ignore this error. There is another install of opendr required version - opendr-0.77 in the end of first cell - !pip2 install opendr==0.77

The last lines of 1st cell output should be: Installing collected packages: opendr Successfully installed opendr-0.77

So double check the video that you're uploading and correctness of following steps described in README

cant install opendr

error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for opendr (setup.py) ... error
ERROR: Failed building wheel for opendr
Running setup.py clean for opendr
Failed to build opendr
ERROR: Could not build wheels for opendr, which is required to install pyproject.toml-based projects

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

7 participants