Giter Site home page Giter Site logo

colab example? about frankmocap HOT 10 OPEN

facebookresearch avatar facebookresearch commented on June 8, 2024
colab example?

from frankmocap.

Comments (10)

penincillin avatar penincillin commented on June 8, 2024

@molo32
That's really a good suggestion !
But we are just too busy to update this for now. Colab might be added after CVPR submission.

from frankmocap.

stspanho avatar stspanho commented on June 8, 2024

@molo32 I was able to make it work with the following commands in a Google Colab instance:

!git clone https://github.com/facebookresearch/frankmocap.git
cd /content/frankmocap/
pip install -r docs/requirements.txt
pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.6/index.html
pip install pytorch3d
!sh scripts/install_frankmocap.sh

Download SMPL Model (Neutral model: basicModel_neutral_lbs_10_207_0_v1.0.0.pkl): https://github.com/facebookresearch/frankmocap/blob/master/docs/INSTALL.md

Download SMPLX Model (Neutral model: SMPLX_NEUTRAL.pkl):
https://github.com/facebookresearch/frankmocap/blob/master/docs/INSTALL.md

!apt-get install -y xvfb x11-utils
!xvfb-run -a python -m demo.demo_frankmocap --input_path ./sample_data/han_short.mp4 --out_dir ./mocap_output

I got a segmentation fault at the end (ffmpeg), but the video seems rendered in the output folder.

from frankmocap.

justinjohn0306 avatar justinjohn0306 commented on June 8, 2024

@molo32 I was able to make it work with the following commands in a Google Colab instance:

!git clone https://github.com/facebookresearch/frankmocap.git
cd /content/frankmocap/
pip install -r docs/requirements.txt
pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.6/index.html
pip install pytorch3d
!sh scripts/install_frankmocap.sh

Download SMPL Model (Neutral model: basicModel_neutral_lbs_10_207_0_v1.0.0.pkl): https://github.com/facebookresearch/frankmocap/blob/master/docs/INSTALL.md

Download SMPLX Model (Neutral model: SMPLX_NEUTRAL.pkl):
https://github.com/facebookresearch/frankmocap/blob/master/docs/INSTALL.md

!apt-get install -y xvfb x11-utils
!xvfb-run -a python -m demo.demo_frankmocap --input_path ./sample_data/han_short.mp4 --out_dir ./mocap_output

I got a segmentation fault at the end (ffmpeg), but the video seems rendered in the output folder.

can you share the notebook?

from frankmocap.

justinjohn0306 avatar justinjohn0306 commented on June 8, 2024

I made a notebook aswell

from frankmocap.

LucaswasTaken avatar LucaswasTaken commented on June 8, 2024

Hey guys, it worked like a charm here, too, with four considerations, as already said above.

  • In my case, I removed the opendr from the requirements.txt and installed it via the GitHub repository.
  • Set the GPU;
  • Sign up and download SMPL and SMPLX models (put it in the drive or someplace easy to access in the colab;
  • The segmentation fault of FFmpeg will occur in the and, just ignore it.

The notebook is still raw and poorly documented, but if you guys want to take a look: https://colab.research.google.com/drive/1RaS5NKP2RsrbKuAy2ugCQDj-U_Qn1tXR?usp=sharing
Should work near out-of-the-box, respecting the four observations. OBS: once again, congratulations to the Frank-mocap team for the great work.

from frankmocap.

Tikquuss avatar Tikquuss commented on June 8, 2024

I have executed the readme indications step by step with success (notebook)
I hope this can help.

from frankmocap.

penincillin avatar penincillin commented on June 8, 2024

@Tikquuss
Thanks ! That's really helpful !

from frankmocap.

neonascent avatar neonascent commented on June 8, 2024

Hey guys, it worked like a charm here, too, with four considerations, as already said above.

  • In my case, I removed the opendr from the requirements.txt and installed it via the GitHub repository.
  • Set the GPU;
  • Sign up and download SMPL and SMPLX models (put it in the drive or someplace easy to access in the colab;
  • The segmentation fault of FFmpeg will occur in the and, just ignore it.

The notebook is still raw and poorly documented, but if you guys want to take a look: https://colab.research.google.com/drive/1RaS5NKP2RsrbKuAy2ugCQDj-U_Qn1tXR?usp=sharing
Should work near out-of-the-box, respecting the four observations. OBS: once again, congratulations to the Frank-mocap team for the great work.

@LucaswasTaken - I've executed all the code cells -- thanks for sharing them -- but I'm getting "No module named demo.demo_bodymocap" from Python when I try to run tests. Is this from missing environment info that the install doc said to create via "conda create -n venv_frankmocap python=3.7; conda activate venv_frankmocap" right at the start?

from frankmocap.

AhmedShalabe avatar AhmedShalabe commented on June 8, 2024

@LucaswasTaken - I've executed all the code cells -- thanks for sharing them -- but I'm getting "No module named demo.demo_bodymocap" from Python when I try to run tests. Is this from missing environment info that the install doc said to create via "conda create -n venv_frankmocap python=3.7; conda activate venv_frankmocap" right at the start?

Have you found a solution to the problem?

from frankmocap.

AhmedShalabe avatar AhmedShalabe commented on June 8, 2024

Hey guys, it worked like a charm here, too, with four considerations, as already said above.

  • In my case, I removed the opendr from the requirements.txt and installed it via the GitHub repository.
  • Set the GPU;
  • Sign up and download SMPL and SMPLX models (put it in the drive or someplace easy to access in the colab;
  • The segmentation fault of FFmpeg will occur in the and, just ignore it.

The notebook is still raw and poorly documented, but if you guys want to take a look: https://colab.research.google.com/drive/1RaS5NKP2RsrbKuAy2ugCQDj-U_Qn1tXR?usp=sharing
Should work near out-of-the-box, respecting the four observations. OBS: once again, congratulations to the Frank-mocap team for the great work.

@LucaswasTaken - I've executed all the code cells -- thanks for sharing them -- but I'm getting "No module named demo.demo_bodymocap" from Python when I try to run tests. Is this from missing environment info that the install doc said to create via "conda create -n venv_frankmocap python=3.7; conda activate venv_frankmocap" right at the start?

I have found a solution
you have to turn on the GPU from the beginning of the code,
So turn on the GPU
and execute all the commands again

from frankmocap.

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.