Giter VIP home page Giter VIP logo

Comments (34)

kazux2 avatar kazux2 commented on September 3, 2024 1

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.

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

Provide more information, please.

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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.

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

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

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

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

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 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

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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.

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

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.

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

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

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

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%.

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

ok, how can i share it with you?

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

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

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

https://we.tl/t-mntP5QRoBH

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

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.

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

Make the screenshot please.

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

GPU memory

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

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.

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

Click IGNORE, that's not an issue.

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

i tried to ignore it but it wont allow it.

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

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.

from video_to_bvh.

flip321 avatar flip321 commented on September 3, 2024

not sure why im having this much trouble.

from video_to_bvh.

zahrasalahshoori avatar zahrasalahshoori commented on September 3, 2024

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

from video_to_bvh.

Dene33 avatar Dene33 commented on September 3, 2024

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

from video_to_bvh.

zahrasalahshoori avatar zahrasalahshoori commented on September 3, 2024

@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

from video_to_bvh.

snowyrain avatar snowyrain commented on September 3, 2024

@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?

from video_to_bvh.

retnrernet avatar retnrernet commented on September 3, 2024

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(

from video_to_bvh.

SaifAdel22 avatar SaifAdel22 commented on September 3, 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

from video_to_bvh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.