Giter Club home page Giter Club logo

vibe_win_install's Introduction

vibe_win_install

Video Tutorial

Video Tutorial to install VIBE

Official Project link: https://github.com/mkocabas/VIBE

Here are some scripts made to make the instalation of Vibe on windows easier.

To install VIBE on windows using this script, you must:

install miniconda: https://docs.conda.io/en/latest/miniconda.html

install VC2017 redist https://support.microsoft.com/pt-br/help/2977003/the-latest-supported-visual-c-downloads

Download and add to system path (only the bin directory)

FFMPEG https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip

Unpacking

Unpack the VIBE github pack to a folder

https://github.com/mkocabas/VIBE/archive/master.zip

unpack the contents of this github to the same folder

https://github.com/carlosedubarreto/vibe_win_install/archive/main.zip

then run in ADMIN mode:

conda create -n venv_vibe python=3.7
conda activate venv_vibe
conda install cudatoolkit=10.1 cudnn=7.6.0

conda install -c anaconda git

install_conda.bat
prepare_data.bat

To use vibe, you must enter the vibe virtual enviroment created:

conda activate venv_vibe

then you can go to vibe folder and execute a test

python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display 

Note that all the configuration was made for GPU powered PCs

Blender addon to import data

There is a Blender addon that you can download for free to import the data in a easier way. Go to https://gum.co/mocap_import and download it.

To use to import VIBE pkl data, it is needed to install a python package first. To install it on windows, replace the following code with the directory where your blender is installed (or unzipped)

D:\Blender\blender-2.92.0-windows64\2.92\python\bin\python.exe D:\Blender\blender-2.92.0-windows64\2.92\python\lib\site-packages\pip install joblib'

FBX Conversion

Go to this site and create a free accounthttps://smpl.is.tue.mpg.de/

Download the Unity-compatible FBX file through the  https://psfiles.is.tuebingen.mpg.de/downloads/smpl/SMPL_unity_v-1-0-0-zip

(but it wont work going straight to the link, you must go to the site donwload page. its almost the last link on the page https://smpl.is.tue.mpg.de/downloads)

· Unzip the contents and locate them data/SMPL_unity_v.1.0.0. (the full folder)

· Install Blender python API

pip install bpy 

or if you havbe problems, try installing with conda

conda install -c kitsune.one python-blender 

Donwload version 2.82a https://download.blender.org/release/Blender2.82/blender-2.82a-windows64.zip

copy the 2.82 folder to the same folder that you have the python instalation used

· Run the command below to convert VIBE output to FBX:

python lib/utils/fbx_output.py --input output/sample_video/vibe_output.pkl --output output/sample_video/fbx_output.fbx --fps_source 30 --fps_target 30 --gender female 

vibe_win_install's People

Contributors

carlosedubarreto avatar

Stargazers

 avatar Sithdown avatar  avatar zywang avatar Spike Huang avatar Jeff Carpenter avatar M. Rohaan Atique avatar lilijinjin avatar  avatar Shuolin avatar  avatar 32bit_badman avatar  avatar YujinShin avatar  avatar Matthias Lein avatar Sinook Park avatar  avatar Tanmay Vemuri avatar  avatar  avatar François Betscha avatar  avatar  avatar James Chen avatar  avatar  avatar  avatar  avatar  avatar  avatar Oliseh Genesis avatar Axmin Shrestha avatar Algo_gen avatar 言己 avatar  avatar  avatar Carlo avatar Yegor R avatar  avatar İrem KÖMÜRCÜ avatar Florian Bruggisser avatar  avatar Takanori Kishikawa avatar alivemachine avatar  avatar Keep Growing And Moving Forward avatar Muhammed Kocabas avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar

vibe_win_install's Issues

ImportError: cannot import name 'YOLOv3' from 'yolov3.yolo'

Hi there,

Whenever I try to run commands to execute this program I get the following error

(venv_vibe) C:\Users\eliza\VIBE_FILES\VIBE-master>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
Traceback (most recent call last):
File "demo_alter.py", line 29, in
from multi_person_tracker import MPT
File "C:\Users\eliza\VIBE_FILES\VIBE-master\multi_person_tracker_init_.py", line 2, in
from .mpt import MPT
File "C:\Users\eliza\VIBE_FILES\VIBE-master\multi_person_tracker\mpt.py", line 11, in
from yolov3.yolo import YOLOv3
ImportError: cannot import name 'YOLOv3' from 'yolov3.yolo'

Any help would be greatly appreciated.

FileNotFoundError: [WinError 2] The system cannot find the file specified

(venv_vibe) F:\Python\vibe>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png"
Images saved to "/tmp\sample_video_mp4"
Input video number of frames 301
Downloading files from https://pjreddie.com/media/files/yolov3.weights
Traceback (most recent call last):
File "demo_alter.py", line 405, in
main(args)
File "demo_alter.py", line 93, in main
yolo_img_size=args.yolo_img_size,
File "D:\Users\Webwork\miniconda3\envs\venv_vibe\lib\site-packages\multi_person_tracker\mpt.py", line 53, in init
device=self.device, img_size=yolo_img_size, person_detector=True, video=True, return_dict=True
File "D:\Users\Webwork\miniconda3\envs\venv_vibe\lib\site-packages\yolov3\yolo.py", line 32, in init
download_url(url, outdir)
File "D:\Users\Webwork\miniconda3\envs\venv_vibe\lib\site-packages\yolov3\yolo.py", line 11, in download_url
subprocess.call(cmd)
File "D:\Users\Webwork\miniconda3\envs\venv_vibe\lib\subprocess.py", line 339, in call
with Popen(*popenargs, **kwargs) as p:
File "D:\Users\Webwork\miniconda3\envs\venv_vibe\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "D:\Users\Webwork\miniconda3\envs\venv_vibe\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

ffmpeg is installed and running, creates a folder "F:\tmp\sample_video_mp4" and places a sequence of images (png 1920x1080) there.
I'm using miniconda on windows 10., python3.8 I Installed all libraries successfully without error accord to your instruction.

Multiple model modelling

fight_01_vibe_result.mp4

Hi there,

I was wondering if it was possible to extract the .pkl/.fbx data for more than one model in a visual scene. The video output I've been getting has been for 2 smplx models, but when I import the file into blender/unity, it only displays one and I am unable to toggle or get the data for the second model within the scene. Any advice would be appreciated, thanks.

error when import bpy

bpy: couldn't find 'scripts/modules', blender probably wont start.
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
ModuleNotFoundError: No module named 'bpy_types'
ModuleNotFoundError: No module named 'bpy_types'

Error running Vibe

HI,can't launch batch file .Reach you on youtube ,do all necessary steps like in your video. Can't complete those steps /install_conda.bat prepare_data.bat /

path2
path
system settings 1
install folder
problem 1

The python demo_alter.py hangs on: "Input video number of frames 300"

so everything installed ok but now the demo hangs here(rtx 3090):

(venv_vibe2) D:\vibe\VIBE>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png"
Images saved to "/tmp\sample_video_mp4"
Input video number of frames 300

fbx root not moving

Hi Carlos

VIBE for windows is working great, I especially like the pkl to fbx converter. I am having one issue though.
When I import the fbx into the 3D app (Maya in my case) the root joint does not move, is stays at the origin but all the other joints do animate.

Video is attached to illustrate the issue

Any ideas on how I can get the root joint following the same as the output that the pkl file generates?

walk_sideBySide.mp4

I am getting this error

(base) C:\Users\moust>cd\

(base) C:>cd MOCAP1

(base) C:\MOCAP1>cd VIBE

(base) C:\MOCAP1\VIBE>conda create -n venv_vibe python=3.7
Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: C:\Users\moust\miniconda3\envs\venv_vibe

added / updated specs:
- python=3.7

The following NEW packages will be INSTALLED:

ca-certificates pkgs/main/win-64::ca-certificates-2021.1.19-haa95532_0
certifi pkgs/main/win-64::certifi-2020.12.5-py37haa95532_0
openssl pkgs/main/win-64::openssl-1.1.1i-h2bbff1b_0
pip pkgs/main/win-64::pip-20.3.3-py37haa95532_0
python pkgs/main/win-64::python-3.7.9-h60c2a47_0
setuptools pkgs/main/win-64::setuptools-52.0.0-py37haa95532_0
sqlite pkgs/main/win-64::sqlite-3.33.0-h2a8f88b_0
vc pkgs/main/win-64::vc-14.2-h21ff451_1
vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
wheel pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
wincertstore pkgs/main/win-64::wincertstore-0.2-py37_0
zlib pkgs/main/win-64::zlib-1.2.11-h62dcd97_4

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To activate this environment, use

$ conda activate venv_vibe

To deactivate an active environment, use

$ conda deactivate

(base) C:\MOCAP1\VIBE>conda activate venv_vibe

(venv_vibe) C:\MOCAP1\VIBE>conda install cudatoolkit=10.1 cudnn=7.6.0
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: done

Package Plan

environment location: C:\Users\moust\miniconda3\envs\venv_vibe

added / updated specs:
- cudatoolkit=10.1
- cudnn=7.6.0

The following NEW packages will be INSTALLED:

cudatoolkit pkgs/main/win-64::cudatoolkit-10.1.243-h74a9793_0
cudnn pkgs/main/win-64::cudnn-7.6.0-cuda10.1_0

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

(venv_vibe) C:\MOCAP1\VIBE>install_conda.bat

(venv_vibe) C:\MOCAP1\VIBE>pip install mkl intel-openmp
Collecting intel-openmp
Downloading intel_openmp-2021.1.2-py2.py3-none-win_amd64.whl (3.3 MB)
|████████████████████████████████| 3.3 MB 2.2 MB/s
Collecting mkl
Downloading mkl-2021.1.1-py2.py3-none-win_amd64.whl (228.8 MB)
|████████████████████████████████| 228.8 MB 23 kB/s
Collecting tbb==2021.*
Downloading tbb-2021.1.1-py3-none-win_amd64.whl (254 kB)
|████████████████████████████████| 254 kB 2.2 MB/s
Installing collected packages: tbb, intel-openmp, mkl
Successfully installed intel-openmp-2021.1.2 mkl-2021.1.1 tbb-2021.1.1

(venv_vibe) C:\MOCAP1\VIBE>pip install torch==1.4.0 torchvision==0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Collecting torch==1.4.0
Downloading https://download.pytorch.org/whl/cu92/torch-1.4.0%2Bcu92-cp37-cp37m-win_amd64.whl (641.8 MB)
|████████████████████████████████| 641.8 MB 16 kB/s
Collecting torchvision==0.5.0
Downloading https://download.pytorch.org/whl/cu92/torchvision-0.5.0%2Bcu92-cp37-cp37m-win_amd64.whl (1.2 MB)
|████████████████████████████████| 1.2 MB 6.4 MB/s
Collecting pillow>=4.1.1
Downloading Pillow-8.1.0-cp37-cp37m-win_amd64.whl (2.2 MB)
|████████████████████████████████| 2.2 MB 3.2 MB/s
Collecting numpy
Downloading numpy-1.20.1-cp37-cp37m-win_amd64.whl (13.6 MB)
|████████████████████████████████| 13.6 MB 6.4 MB/s
Collecting six
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: torch, six, pillow, numpy, torchvision
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
virtualenv 20.0.27 requires appdirs<2,>=1.4.3, which is not installed.
virtualenv 20.0.27 requires importlib-metadata<2,>=0.12; python_version < "3.8", which is not installed.
Successfully installed numpy-1.20.1 pillow-8.1.0 six-1.15.0 torch-1.4.0+cu92 torchvision-0.5.0+cu92

(venv_vibe) C:\MOCAP1\VIBE>pip install numpy==1.17.5
Collecting numpy==1.17.5
Downloading numpy-1.17.5-cp37-cp37m-win_amd64.whl (12.7 MB)
|████████████████████████████████| 12.7 MB 595 kB/s
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.20.1
Uninstalling numpy-1.20.1:
Successfully uninstalled numpy-1.20.1
Successfully installed numpy-1.17.5

(venv_vibe) C:\MOCAP1\VIBE>pip install git+https://github.com/giacaglia/pytube.git --upgrade
Collecting git+https://github.com/giacaglia/pytube.git
Cloning https://github.com/giacaglia/pytube.git to c:\users\moust\appdata\local\temp\pip-req-build-il4wt0mm
ERROR: Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/giacaglia/pytube.git 'C:\Users\moust\AppData\Local\Temp\pip-req-build-il4wt0mm'
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

(venv_vibe) C:\MOCAP1\VIBE>pip install -r requirements_alter.txt
Requirement already satisfied: numpy==1.17.5 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from -r requirements_alter.txt (line 4)) (1.17.5)
Requirement already satisfied: torchvision==0.5.0 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from -r requirements_alter.txt (line 18)) (0.5.0+cu92)
Collecting git+https://github.com/mattloper/chumpy.git (from -r requirements_alter.txt (line 23))
Cloning https://github.com/mattloper/chumpy.git to c:\users\moust\appdata\local\temp\pip-req-build-ulvmpq4b
ERROR: Error [WinError 2] The system cannot find the file specified while executing command git clone -q https://github.com/mattloper/chumpy.git 'C:\Users\moust\AppData\Local\Temp\pip-req-build-ulvmpq4b'
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

(venv_vibe) C:\MOCAP1\VIBE>conda install -c anaconda git
Collecting package metadata (current_repodata.json): done
Solving environment: done

Package Plan

environment location: C:\Users\moust\miniconda3\envs\venv_vibe

added / updated specs:
- git

The following NEW packages will be INSTALLED:

git anaconda/win-64::git-2.23.0-h6bb4b03_0

The following packages will be SUPERSEDED by a higher-priority channel:

ca-certificates pkgs/main::ca-certificates-2021.1.19-~ --> anaconda::ca-certificates-2020.10.14-0
certifi pkgs/main::certifi-2020.12.5-py37haa9~ --> anaconda::certifi-2020.6.20-py37_0
openssl pkgs/main::openssl-1.1.1i-h2bbff1b_0 --> anaconda::openssl-1.1.1h-he774522_0

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

(venv_vibe) C:\MOCAP1\VIBE>install_conda.bat

(venv_vibe) C:\MOCAP1\VIBE>pip install mkl intel-openmp
Requirement already satisfied: mkl in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (2021.1.1)
Requirement already satisfied: intel-openmp in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (2021.1.2)
Requirement already satisfied: tbb==2021.* in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from mkl) (2021.1.1)

(venv_vibe) C:\MOCAP1\VIBE>pip install torch==1.4.0 torchvision==0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html
Requirement already satisfied: torch==1.4.0 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (1.4.0+cu92)
Requirement already satisfied: torchvision==0.5.0 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (0.5.0+cu92)
Requirement already satisfied: pillow>=4.1.1 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from torchvision==0.5.0) (8.1.0)
Requirement already satisfied: six in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from torchvision==0.5.0) (1.15.0)
Requirement already satisfied: numpy in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from torchvision==0.5.0) (1.17.5)

(venv_vibe) C:\MOCAP1\VIBE>pip install numpy==1.17.5
Requirement already satisfied: numpy==1.17.5 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (1.17.5)

(venv_vibe) C:\MOCAP1\VIBE>pip install git+https://github.com/giacaglia/pytube.git --upgrade
Collecting git+https://github.com/giacaglia/pytube.git
Cloning https://github.com/giacaglia/pytube.git to c:\users\moust\appdata\local\temp\pip-req-build-6594kvqh
Building wheels for collected packages: pytube
Building wheel for pytube (setup.py) ... done
Created wheel for pytube: filename=pytube-9.5.3-py3-none-any.whl size=29188 sha256=a7f65de91378b47effb039ea24fe4db6aae8af4f061f7f8645e9f6f97f13d062
Stored in directory: C:\Users\moust\AppData\Local\Temp\pip-ephem-wheel-cache-x4a44v5e\wheels\ca\b9\e4\f14415300036c42fae7c12b5dd718f0e8a10e29184fc82eb47
Successfully built pytube
Installing collected packages: pytube
Successfully installed pytube-9.5.3

(venv_vibe) C:\MOCAP1\VIBE>pip install -r requirements_alter.txt
Requirement already satisfied: numpy==1.17.5 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from -r requirements_alter.txt (line 4)) (1.17.5)
Requirement already satisfied: torchvision==0.5.0 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from -r requirements_alter.txt (line 18)) (0.5.0+cu92)
Collecting git+https://github.com/mattloper/chumpy.git (from -r requirements_alter.txt (line 23))
Cloning https://github.com/mattloper/chumpy.git to c:\users\moust\appdata\local\temp\pip-req-build-0_wkc8of
Collecting git+https://github.com/mkocabas/yolov3-pytorch.git (from -r requirements_alter.txt (line 24))
Cloning https://github.com/mkocabas/yolov3-pytorch.git to c:\users\moust\appdata\local\temp\pip-req-build-lgzocjgo
Collecting git+https://github.com/mkocabas/multi-person-tracker.git (from -r requirements_alter.txt (line 25))
Cloning https://github.com/mkocabas/multi-person-tracker.git to c:\users\moust\appdata\local\temp\pip-req-build-68jncd_f
Requirement already satisfied: six>=1.11.0 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from chumpy==0.70->-r requirements_alter.txt (line 23)) (1.15.0)
Collecting filterpy==1.4.5
Downloading filterpy-1.4.5.zip (177 kB)
|████████████████████████████████| 177 kB 1.6 MB/s
Collecting gdown==3.6.4
Downloading gdown-3.6.4.tar.gz (5.2 kB)
Collecting h5py==2.10.0
Downloading h5py-2.10.0-cp37-cp37m-win_amd64.whl (2.5 MB)
|████████████████████████████████| 2.5 MB 3.3 MB/s
Collecting joblib==0.14.1
Downloading joblib-0.14.1-py2.py3-none-any.whl (294 kB)
|████████████████████████████████| 294 kB 3.3 MB/s
Collecting llvmlite==0.32.1
Downloading llvmlite-0.32.1-cp37-cp37m-win_amd64.whl (13.6 MB)
|████████████████████████████████| 13.6 MB 1.6 MB/s
Collecting matplotlib==3.1.3
Downloading matplotlib-3.1.3-cp37-cp37m-win_amd64.whl (9.1 MB)
|████████████████████████████████| 9.1 MB 2.2 MB/s
Collecting numba==0.47.0
Downloading numba-0.47.0-cp37-cp37m-win_amd64.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 3.3 MB/s
Requirement already satisfied: setuptools in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from numba==0.47.0->-r requirements_alter.txt (line 6)) (52.0.0.post20210125)
Collecting opencv-python==4.1.2.30
Downloading opencv_python-4.1.2.30-cp37-cp37m-win_amd64.whl (33.0 MB)
|████████████████████████████████| 33.0 MB 3.3 MB/s
Collecting pillow==7.1.0
Downloading Pillow-7.1.0-cp37-cp37m-win_amd64.whl (2.0 MB)
|████████████████████████████████| 2.0 MB 1.3 MB/s
Collecting progress==1.5
Downloading progress-1.5.tar.gz (5.8 kB)
Collecting pyrender==0.1.36
Downloading pyrender-0.1.36-py3-none-any.whl (1.2 MB)
|████████████████████████████████| 1.2 MB 2.2 MB/s
Collecting PyYAML==5.3.1
Downloading PyYAML-5.3.1-cp37-cp37m-win_amd64.whl (216 kB)
|████████████████████████████████| 216 kB 3.3 MB/s
Collecting scikit-image==0.16.2
Downloading scikit_image-0.16.2-cp37-cp37m-win_amd64.whl (25.7 MB)
|████████████████████████████████| 25.7 MB 233 kB/s
Collecting scikit-video==1.1.11
Downloading scikit_video-1.1.11-py2.py3-none-any.whl (2.3 MB)
|████████████████████████████████| 2.3 MB 6.4 MB/s
Collecting scipy==1.4.1
Downloading scipy-1.4.1-cp37-cp37m-win_amd64.whl (30.9 MB)
|████████████████████████████████| 30.9 MB 3.3 MB/s
Collecting smplx==0.1.26
Using cached smplx-0.1.26-py3-none-any.whl (29 kB)
Requirement already satisfied: torch>=1.0.1.post2 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from smplx==0.1.26->-r requirements_alter.txt (line 7)) (1.4.0+cu92)
Collecting tensorflow==1.15.4
Downloading tensorflow-1.15.4-cp37-cp37m-win_amd64.whl (55.3 MB)
|████████████████████████████████| 55.3 MB 89 kB/s
Requirement already satisfied: wheel>=0.26 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from tensorflow==1.15.4->-r requirements_alter.txt (line 17)) (0.36.2)
Collecting tqdm==4.28.1
Downloading tqdm-4.28.1-py2.py3-none-any.whl (45 kB)
|████████████████████████████████| 45 kB 3.4 MB/s
Collecting trimesh==3.5.25
Downloading trimesh-3.5.25.tar.gz (399 kB)
|████████████████████████████████| 399 kB 6.4 MB/s
Collecting yacs==0.1.6
Downloading yacs-0.1.6-py3-none-any.whl (9.6 kB)
Collecting gast==0.2.2
Downloading gast-0.2.2.tar.gz (10 kB)
Collecting PyOpenGL==3.1.0
Downloading PyOpenGL-3.1.0.zip (2.2 MB)
|████████████████████████████████| 2.2 MB 1.6 MB/s
Collecting tensorflow-estimator==1.15.1
Downloading tensorflow_estimator-1.15.1-py2.py3-none-any.whl (503 kB)
|████████████████████████████████| 503 kB 3.3 MB/s
Collecting absl-py>=0.7.0
Using cached absl_py-0.11.0-py3-none-any.whl (127 kB)
Collecting astor>=0.6.0
Downloading astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting cycler>=0.10
Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting google-pasta>=0.1.6
Downloading google_pasta-0.2.0-py3-none-any.whl (57 kB)
|████████████████████████████████| 57 kB 4.1 MB/s
Collecting grpcio>=1.8.6
Using cached grpcio-1.35.0-cp37-cp37m-win_amd64.whl (3.0 MB)
Collecting imageio
Downloading imageio-2.9.0-py3-none-any.whl (3.3 MB)
|████████████████████████████████| 3.3 MB 6.4 MB/s
Collecting keras-applications>=1.0.8
Downloading Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
|████████████████████████████████| 50 kB 3.2 MB/s
Collecting keras-preprocessing>=1.0.5
Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
|████████████████████████████████| 42 kB 3.2 MB/s
Collecting kiwisolver>=1.0.1
Using cached kiwisolver-1.3.1-cp37-cp37m-win_amd64.whl (51 kB)
Collecting networkx
Downloading networkx-2.5-py3-none-any.whl (1.6 MB)
|████████████████████████████████| 1.6 MB 6.4 MB/s
Collecting decorator>=4.3.0
Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting opt-einsum>=2.3.2
Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)
|████████████████████████████████| 65 kB 4.8 MB/s
Collecting protobuf>=3.6.1
Using cached protobuf-3.14.0-cp37-cp37m-win_amd64.whl (798 kB)
Collecting pyglet>=1.4.10
Downloading pyglet-1.5.15-py3-none-any.whl (1.1 MB)
|████████████████████████████████| 1.1 MB ...
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting python-dateutil>=2.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting PyWavelets>=0.4.0
Downloading PyWavelets-1.1.1-cp37-cp37m-win_amd64.whl (4.2 MB)
|████████████████████████████████| 4.2 MB 3.2 MB/s
Collecting tensorboard<1.16.0,>=1.15.0
Downloading tensorboard-1.15.0-py3-none-any.whl (3.8 MB)
|████████████████████████████████| 3.8 MB 6.4 MB/s
Collecting markdown>=2.6.8
Using cached Markdown-3.3.3-py3-none-any.whl (96 kB)
Collecting termcolor>=1.1.0
Using cached termcolor-1.1.0-py3-none-any.whl
Collecting torchgeometry>=0.1.2
Using cached torchgeometry-0.1.2-py2.py3-none-any.whl (42 kB)
Collecting werkzeug>=0.11.15
Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting wrapt>=1.11.1
Downloading wrapt-1.12.1.tar.gz (27 kB)
Collecting freetype-py
Downloading freetype_py-2.2.0-py3-none-win_amd64.whl (708 kB)
|████████████████████████████████| 708 kB 3.3 MB/s
Collecting importlib-metadata
Using cached importlib_metadata-3.4.0-py3-none-any.whl (10 kB)
Collecting typing-extensions>=3.6.4
Using cached typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Collecting zipp>=0.5
Using cached zipp-3.4.0-py3-none-any.whl (5.2 kB)
Collecting requests
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\moust\miniconda3\envs\venv_vibe\lib\site-packages (from requests->gdown==3.6.4->-r requirements_alter.txt (line 8)) (2020.6.20)
Collecting chardet<5,>=3.0.2
Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting idna<3,>=2.5
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.3-py2.py3-none-any.whl (137 kB)
Building wheels for collected packages: chumpy, multi-person-tracker, yolov3, filterpy, gdown, progress, trimesh, gast, PyOpenGL, wrapt
Building wheel for chumpy (setup.py) ... done
Created wheel for chumpy: filename=chumpy-0.70-py3-none-any.whl size=61409 sha256=039f1bcf954b8790226875f6805db48a8e3261531e7a340357418288d436088c
Stored in directory: C:\Users\moust\AppData\Local\Temp\pip-ephem-wheel-cache-ftl6t0qz\wheels\75\79\0c\28691a1142ad051800aef1054a725eae9e73c1571b28c3afe4
Building wheel for multi-person-tracker (setup.py) ... done
Created wheel for multi-person-tracker: filename=multi_person_tracker-0.1-py3-none-any.whl size=8955 sha256=38b33508b3c4133e06c22ea4d2b8db3e4ccfd23bf989675cb33489a73748d67e
Stored in directory: C:\Users\moust\AppData\Local\Temp\pip-ephem-wheel-cache-ftl6t0qz\wheels\87\95\a8\a3d2cc559da199a1ff9243d1a8ef95563cba313ec7344bf895
Building wheel for yolov3 (setup.py) ... done
Created wheel for yolov3: filename=yolov3-0.1-py3-none-any.whl size=26079 sha256=85ddf4b537a4306a02f34666cdae6dbd2e7453d0a3c77a0c561fbb737552a6cc
Stored in directory: C:\Users\moust\AppData\Local\Temp\pip-ephem-wheel-cache-ftl6t0qz\wheels\22\16\d8\9908e762166d022a96b6f33ffe2c3771dbc88accfff9c68189
Building wheel for filterpy (setup.py) ... done
Created wheel for filterpy: filename=filterpy-1.4.5-py3-none-any.whl size=110451 sha256=9dfa81baac978bd0462b94290c24a87bb5266dc6f7e8fa3d0ac751ab185b2d5b
Stored in directory: c:\users\moust\appdata\local\pip\cache\wheels\ce\e0\ee\a2b3c5caab3418c1ccd8c4de573d4cbe13315d7e8b0a55fbc2
Building wheel for gdown (setup.py) ... done
Created wheel for gdown: filename=gdown-3.6.4-py3-none-any.whl size=6122 sha256=9b8e8591fe53a9ab466f7bfc5399b99674f85ce1a892c09ff64228b5ff1e1769
Stored in directory: c:\users\moust\appdata\local\pip\cache\wheels\30\38\96\2cc763113a589e09b7c3e3e9f8efe349377804de3afb46dca8
Building wheel for progress (setup.py) ... done
Created wheel for progress: filename=progress-1.5-py3-none-any.whl size=8073 sha256=b59b5db542eefa508f2fd1a3472d6dfa0ad69cdccd7295103456fdbe9f20326b
Stored in directory: c:\users\moust\appdata\local\pip\cache\wheels\4c\ff\85\0cabf2cb317421028ef98853ae5c8d84c31f3e4e11862ea977
Building wheel for trimesh (setup.py) ... done
Created wheel for trimesh: filename=trimesh-3.5.25-py3-none-any.whl size=452611 sha256=1209691c7e6d698803f83c1339e2dbe69e88384cf422e2f413951ffe68d8ad39
Stored in directory: c:\users\moust\appdata\local\pip\cache\wheels\bd\5e\96\41a7b640b964232036bb4ddb7f4f945ebef9afafa6fb200d8c
Building wheel for gast (setup.py) ... done
Created wheel for gast: filename=gast-0.2.2-py3-none-any.whl size=7538 sha256=85e9fc7010e49fcce8046c703dffa9194fec02863840de5c7a1529ee1ad88dc1
Stored in directory: c:\users\moust\appdata\local\pip\cache\wheels\21\7f\02\420f32a803f7d0967b48dd823da3f558c5166991bfd204eef3
Building wheel for PyOpenGL (setup.py) ... done
Created wheel for PyOpenGL: filename=PyOpenGL-3.1.0-py3-none-any.whl size=1749281 sha256=b7ef847dcdd1d97991d4d6c49bf1433e82d941d14b15dd6bbab9b68b89877521
Stored in directory: c:\users\moust\appdata\local\pip\cache\wheels\c6\83\cb\af51a0c06c33d08537b941bbfc87469e8a3c68d05f77a6a212
Building wheel for wrapt (setup.py) ... done
Created wheel for wrapt: filename=wrapt-1.12.1-cp37-cp37m-win_amd64.whl size=33405 sha256=32a5e9d48d420b6cc25c8cf6e86f5ad094f665ec5624e977ea1c5b9063133206
Stored in directory: c:\users\moust\appdata\local\pip\cache\wheels\62\76\4c\aa25851149f3f6d9785f6c869387ad82b3fd37582fa8147ac6
Successfully built chumpy multi-person-tracker yolov3 filterpy gdown progress trimesh gast PyOpenGL wrapt
Installing collected packages: zipp, typing-extensions, importlib-metadata, werkzeug, urllib3, python-dateutil, pyparsing, protobuf, pillow, markdown, kiwisolver, idna, h5py, grpcio, decorator, cycler, chardet, absl-py, wrapt, trimesh, tqdm, torchgeometry, termcolor, tensorflow-estimator, tensorboard, scipy, requests, PyYAML, PyWavelets, PyOpenGL, pyglet, opt-einsum, networkx, matplotlib, llvmlite, keras-preprocessing, keras-applications, imageio, google-pasta, gast, freetype-py, astor, yolov3, yacs, tensorflow, smplx, scikit-video, scikit-image, pyrender, progress, opencv-python, numba, multi-person-tracker, joblib, gdown, filterpy, chumpy
Attempting uninstall: pillow
Found existing installation: Pillow 8.1.0
Uninstalling Pillow-8.1.0:
Successfully uninstalled Pillow-8.1.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
virtualenv 20.0.27 requires appdirs<2,>=1.4.3, which is not installed.
virtualenv 20.0.27 requires importlib-metadata<2,>=0.12; python_version < "3.8", but you have importlib-metadata 3.4.0 which is incompatible.
Successfully installed PyOpenGL-3.1.0 PyWavelets-1.1.1 PyYAML-5.3.1 absl-py-0.11.0 astor-0.8.1 chardet-4.0.0 chumpy-0.70 cycler-0.10.0 decorator-4.4.2 filterpy-1.4.5 freetype-py-2.2.0 gast-0.2.2 gdown-3.6.4 google-pasta-0.2.0 grpcio-1.35.0 h5py-2.10.0 idna-2.10 imageio-2.9.0 importlib-metadata-3.4.0 joblib-0.14.1 keras-applications-1.0.8 keras-preprocessing-1.1.2 kiwisolver-1.3.1 llvmlite-0.32.1 markdown-3.3.3 matplotlib-3.1.3 multi-person-tracker-0.1 networkx-2.5 numba-0.47.0 opencv-python-4.1.2.30 opt-einsum-3.3.0 pillow-7.1.0 progress-1.5 protobuf-3.14.0 pyglet-1.5.15 pyparsing-2.4.7 pyrender-0.1.36 python-dateutil-2.8.1 requests-2.25.1 scikit-image-0.16.2 scikit-video-1.1.11 scipy-1.4.1 smplx-0.1.26 tensorboard-1.15.0 tensorflow-1.15.4 tensorflow-estimator-1.15.1 termcolor-1.1.0 torchgeometry-0.1.2 tqdm-4.28.1 trimesh-3.5.25 typing-extensions-3.7.4.3 urllib3-1.26.3 werkzeug-1.0.1 wrapt-1.12.1 yacs-0.1.6 yolov3-0.1 zipp-3.4.0

(venv_vibe) C:\MOCAP1\VIBE>prepare_data.bat

(venv_vibe) C:\MOCAP1\VIBE>md data

(venv_vibe) C:\MOCAP1\VIBE>cd data

(venv_vibe) C:\MOCAP1\VIBE\data>gdown "https://drive.google.com/uc?id=1untXhYOLQtpNEy4GTY_0fL_H-k6cTf_r"
Downloading...
From: https://drive.google.com/uc?id=1untXhYOLQtpNEy4GTY_0fL_H-k6cTf_r
To: C:\MOCAP1\VIBE\data\vibe_data.zip
561MB [02:21, 3.97MB/s]

(venv_vibe) C:\MOCAP1\VIBE\data>cd ..

(venv_vibe) C:\MOCAP1\VIBE>echo #### Extract the files from vibe_data ###

Extract the files from vibe_data

(venv_vibe) C:\MOCAP1\VIBE>python unzip_vibe_data.py

(venv_vibe) C:\MOCAP1\VIBE>copy data\vibe_data\sample_video.mp4 .
1 file(s) copied.

(venv_vibe) C:\MOCAP1\VIBE>echo ### creating place for torch model ###

creating place for torch model

(venv_vibe) C:\MOCAP1\VIBE>md \Users\moust.torch\models

(venv_vibe) C:\MOCAP1\VIBE>copy data\vibe_data\yolov3.weights \Users\moust.torch\models
1 file(s) copied.

(venv_vibe) C:\MOCAP1\VIBE>echo ### creating place for yolo config ###

creating place for yolo config

(venv_vibe) C:\MOCAP1\VIBE>md \Users\moust.torch\config

(venv_vibe) C:\MOCAP1\VIBE>copy yolov3.cfg \Users\moust.torch\config
1 file(s) copied.

(venv_vibe) C:\MOCAP1\VIBE>conda activate venv_vibe

(venv_vibe) C:\MOCAP1\VIBE>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png"
Traceback (most recent call last):
File "demo_alter.py", line 405, in
main(args)
File "demo_alter.py", line 72, in main
image_folder, num_frames, img_shape = video_to_images(video_file, return_info=True)
File "C:\MOCAP1\VIBE\lib\utils\demo_utils.py", line 195, in video_to_images
subprocess.call(command)
File "C:\Users\moust\miniconda3\envs\venv_vibe\lib\subprocess.py", line 339, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\moust\miniconda3\envs\venv_vibe\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "C:\Users\moust\miniconda3\envs\venv_vibe\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

FileNotFoundError: [WinError 2] The system cannot find the file specified.

Sorry to disturb you. After installing vibe, I encountered a issue while running.{
File "C:\Users\hc.conda\envs\venv_vibe\lib\subprocess.py", line 1207, in _execute_child startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified.
}
Thank you very much if you can answer.
image

VIBE is running, but it only uses the CPU (not the GPU) and then crashes as it runs out of memory (64GB..)

Hello,
I have followed your instruction for installing the VIBE code for a windows PC, and got it to run ...
But, it only gets as far a starting the multi person tracking section using the CPU, not the GPU
then it starts to consume the RAM memory until it uses it all up then crashes

Can you give me any clue as to what I have done wrong?

Thanks 👍 Eichard

Configuration of my PC
Windows 10
CPU = i7 with 64GB of RAM
GPU 0 = Intel UHD Graphics 750
GPU 1 = NVIDIA GeForce RTX 3060 Ti

LOG from Command Prompt:
This is triggered when the CPU runs out of the 64GB of memory, (then it dies a horrible death!)
NOTE: I put in 1 debug print statement to check what the variable device was set to, it is cuda NOT cpu...

(venv_vibe) D:\MOCAP\VIBE>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
RMK DEBUG demo_alter.py device = cuda
Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png"
Images saved to "/tmp\sample_video_mp4"
Input video number of frames 300
Running Multi-Person-Tracker
1%|▊ | 1/100 [10:13<16:52:29, 613.64s/it]Traceback (most recent call last):
File "demo_alter.py", line 408, in
main(args)
File "demo_alter.py", line 96, in main
tracking_results = mot(image_folder)
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\multi_person_tracker\mpt.py", line 284, in call
trackers = self.run_tracker(dataloader)
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\torch\autograd\grad_mode.py", line 49, in decorate_no_grad
return func(*args, **kwargs)
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\multi_person_tracker\mpt.py", line 78, in run_tracker
predictions = self.detector(batch)
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\torch\autograd\grad_mode.py", line 49, in decorate_no_grad
return func(*args, **kwargs)
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\yolov3\yolo.py", line 70, in call
detections = non_max_suppression(detections, self.conf_thres, self.nms_thres)
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\yolov3\utils\utils.py", line 260, in non_max_suppression
detections = detections[~invalid]
RuntimeError: [enforce fail at ..\c10\core\CPUAllocator.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 51016 bytes. Buy new RAM!

Exception ignored in: <function tqdm.del at 0x0000020942B6D708>
Traceback (most recent call last):
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\tqdm_tqdm.py", line 931, in del
self.close()
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\tqdm_tqdm.py", line 1133, in close
self._decr_instances(self)
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\tqdm_tqdm.py", line 496, in _decr_instances
cls.monitor.exit()
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\site-packages\tqdm_monitor.py", line 52, in exit
self.join()
File "C:\Users\richa\anaconda3\envs\venv_vibe\lib\threading.py", line 1041, in join
raise RuntimeError("cannot join current thread")
RuntimeError: cannot join current thread

File no found when running

Hi, have got an error when i tried to run the demo i don't understand wish file missing and who to fix it

(venv_vibe) D:\IA\vibe>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png" Images saved to "/tmp\sample_video_mp4" Input video number of frames 300 Downloading files from https://pjreddie.com/media/files/yolov3.weights Traceback (most recent call last): File "demo_alter.py", line 405, in <module> main(args) File "demo_alter.py", line 93, in main yolo_img_size=args.yolo_img_size, File "C:\Users\xxx\anaconda3\envs\venv_vibe\lib\site-packages\multi_person_tracker\mpt.py", line 53, in __init__ device=self.device, img_size=yolo_img_size, person_detector=True, video=True, return_dict=True File "C:\Users\xxx\anaconda3\envs\venv_vibe\lib\site-packages\yolov3\yolo.py", line 32, in __init__ download_url(url, outdir) File "C:\Users\xxx\anaconda3\envs\venv_vibe\lib\site-packages\yolov3\yolo.py", line 11, in download_url subprocess.call(cmd) File "C:\Users\xxx\anaconda3\envs\venv_vibe\lib\subprocess.py", line 339, in call with Popen(*popenargs, **kwargs) as p: File "C:\Users\xxx\anaconda3\envs\venv_vibe\lib\subprocess.py", line 800, in __init__ restore_signals, start_new_session) File "C:\Users\xxx\anaconda3\envs\venv_vibe\lib\subprocess.py", line 1207, in _execute_child startupinfo) FileNotFoundError: [WinError 2] Le fichier spécifié est introuvable

.fbx conversion error

It seems that the .fbx conversion does not work in many situations.
The sample video conversion to fbx worked but any other video gave me the following error:

Traceback (most recent call last): File "lib/utils/fbx_output.py", line 320, in <module> person_id=args.person_id File "lib/utils/fbx_output.py", line 166, in process_poses poses = data[person_id]['pose'] KeyError: 1 Error: Not freed memory blocks: 8, total unfreed memory 0.010223 MB

It seems to be linked to having multiple people in the shots? Or to having people disappear/reappear?

pose definition

There is a confused thing that how VIBE define the pose vector.
Because i want to use other Motion Capture Data(Mocap Slover) to export animated FBX file.
Hope to get some help.

FBX Conversion with applying SMPL body shape

Hi Carlos,

Thanks for the FBX conversion script for the SMPL human model. I was wondering if it is possible to apply the shape parameters to the character as well as pose parameters?

Thank you very much in advance,

Leila

.FBX position

I successfully output the .FBX file after I watched the tutorial video.BUT,there is a problem that the animation always laid on the ground.
Screenshot 2022-05-18 203126
So how do I adjust the coordinates vector or something else?

No sample video output

Hello, I'm trying to run the "sample_video.mp4" or any video and i get this result. Is it because i have AMD GPU? (5700 XT).

Displaying results..
WARNING: You are using a SMPL model, with only 10 shape coefficients.
Traceback (most recent call last):
File "demo_alter.py", line 405, in
main(args)
File "demo_alter.py", line 108, in main
use_residual=True,
File "E:\vibe\VIBE-master\lib\models\vibe.py", line 147, in init
checkpoint = torch.load(pretrained)
File "E:\Users\Firing\miniconda3\envs\venv_vibe\lib\site-packages\torch\serialization.py", line 529, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "E:\Users\Firing\miniconda3\envs\venv_vibe\lib\site-packages\torch\serialization.py", line 702, in _legacy_load
result = unpickler.load()
File "E:\Users\Firing\miniconda3\envs\venv_vibe\lib\site-packages\torch\serialization.py", line 665, in persistent_load
deserialized_objects[root_key] = restore_location(obj, location)
File "E:\Users\Firing\miniconda3\envs\venv_vibe\lib\site-packages\torch\serialization.py", line 156, in default_restore_location
result = fn(storage, location)
File "E:\Users\Firing\miniconda3\envs\venv_vibe\lib\site-packages\torch\serialization.py", line 132, in _cuda_deserialize
device = validate_cuda_device(location)
File "E:\Users\Firing\miniconda3\envs\venv_vibe\lib\site-packages\torch\serialization.py", line 116, in validate_cuda_device
raise RuntimeError('Attempting to deserialize object on a CUDA '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

Error: No module named 'cv2'

when i run the command: 'python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display' it says:
' File "demo_alter.py", line 20, in
import cv2
ModuleNotFoundError: No module named 'cv2''
can someone please help me? i am a beginner and don't know what to do.

anaconda question

There is a question borthering me a lot:
I always having trouble on following pip install.This is a example
捕获
I can not install all the package from github.how do i do to deal it?

Can't download yolo3 model

When you command
python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
you will get FileNotFoundError Exception.

Because script try to download by wget linux command.
You have to manually download yolo model from
https://pjreddie.com/media/files/yolov3.weights
https://raw.githubusercontent.com/mkocabas/yolov3-pytorch/master/yolov3/config/yolov3.cfg

and place this files to
C:\Users\ {your user name} \ .torch\models\yolov3.weights
C:\Users\ {your user name} \ .torch\config\yolov3.cfg

Errors when running prepare_data.bat

Hi
Whenever I try to run prepare_data.bat, I get:

(venv_vibe) C:\MOCAP\VIBE>prepare_data.bat

(venv_vibe) C:\MOCAP\VIBE>md data
A subdirectory or file data already exists.

(venv_vibe) C:\MOCAP\VIBE>cd data

(venv_vibe) C:\MOCAP\VIBE\data>gdown "https://drive.google.com/uc?id=1untXhYOLQtpNEy4GTY_0fL_H-k6cTf_r"
Traceback (most recent call last):
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\igal\miniconda3\envs\venv_vibe\Scripts\gdown.exe_main
.py", line 7, in
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\site-packages\gdown\cli.py", line 61, in main
quiet=args.quiet,
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\site-packages\gdown\download.py", line 52, in download
res = sess.get(url, stream=True)
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\site-packages\requests\sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\site-packages\requests\sessions.py", line 575, in request
prep = self.prepare_request(req)
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\site-packages\requests\sessions.py", line 498, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\site-packages\requests\models.py", line 368, in prepare
self.prepare_url(url, params)
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\site-packages\requests\models.py", line 440, in prepare_url
f"Invalid URL {url!r}: No scheme supplied. "
requests.exceptions.MissingSchema: Invalid URL '': No scheme supplied. Perhaps you meant https://?

(venv_vibe) C:\MOCAP\VIBE\data>cd ..

(venv_vibe) C:\MOCAP\VIBE>echo #### Extract the files from vibe_data ###

Extract the files from vibe_data

(venv_vibe) C:\MOCAP\VIBE>python unzip_vibe_data.py
Traceback (most recent call last):
File "unzip_vibe_data.py", line 6, in
with ZipFile('vibe_data.zip', 'r') as zipObj:
File "C:\Users\igal\miniconda3\envs\venv_vibe\lib\zipfile.py", line 1240, in init
self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: 'vibe_data.zip'

(venv_vibe) C:\MOCAP\VIBE>copy data\vibe_data\sample_video.mp4 .
The system cannot find the path specified.

(venv_vibe) C:\MOCAP\VIBE>echo ### creating place for torch model ###

creating place for torch model

(venv_vibe) C:\MOCAP\VIBE>md \Users\igal.torch\models
A subdirectory or file \Users\igal.torch\models already exists.

(venv_vibe) C:\MOCAP\VIBE>copy data\vibe_data\yolov3.weights \Users\igal.torch\models
The system cannot find the path specified.

(venv_vibe) C:\MOCAP\VIBE>echo ### creating place for yolo config ###

creating place for yolo config

(venv_vibe) C:\MOCAP\VIBE>md \Users\igal.torch\config
A subdirectory or file \Users\igal.torch\config already exists.

(venv_vibe) C:\MOCAP\VIBE>copy yolov3.cfg \Users\igal.torch\config
1 file(s) copied.

I'd appreciate help :)

CPU,withoutGPU

Can the Windows version of this VIBE code run on a computer without a GPU?Thank you!

FileNotFoundError: [WinError 2] - weights and config are in correct folder

(venv_vibe) E:\OneDrive\Band\Art\Blender\MOCAP\App\VIBE>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png"
Traceback (most recent call last):
File "demo_alter.py", line 405, in
main(args)
File "demo_alter.py", line 72, in main
image_folder, num_frames, img_shape = video_to_images(video_file, return_info=True)
File "E:\OneDrive\Band\Art\Blender\MOCAP\App\VIBE\lib\utils\demo_utils.py", line 195, in video_to_images
subprocess.call(command)
File "X:\Apps\anaconda\envs\venv_vibe\lib\subprocess.py", line 339, in call
with Popen(*popenargs, **kwargs) as p:
File "X:\Apps\anaconda\envs\venv_vibe\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "X:\Apps\anaconda\envs\venv_vibe\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

C:\Users\My_bl.torch\config\yolov3.cfg
C:\Users\My_bl.torch\models\yolov3.weights

(SOLVED) FileNotFoundError: [WinError 2]

After python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
i got following:

(venv_vibe) D:\AI\VIBE\vibe>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png"
Images saved to "/tmp\sample_video_mp4"
Input video number of frames 300
Downloading files from https://pjreddie.com/media/files/yolov3.weights
Traceback (most recent call last):
File "demo_alter.py", line 405, in
main(args)
File "demo_alter.py", line 93, in main
yolo_img_size=args.yolo_img_size,
File "C:\Users\Administrator\miniconda3\envs\venv_vibe\lib\site-packages\multi_person_tracker\mpt.py", line 53, in init
device=self.device, img_size=yolo_img_size, person_detector=True, video=True, return_dict=True
File "C:\Users\Administrator\miniconda3\envs\venv_vibe\lib\site-packages\yolov3\yolo.py", line 32, in init
download_url(url, outdir)
File "C:\Users\Administrator\miniconda3\envs\venv_vibe\lib\site-packages\yolov3\yolo.py", line 11, in download_url
subprocess.call(cmd)
File "C:\Users\Administrator\miniconda3\envs\venv_vibe\lib\subprocess.py", line 339, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\Administrator\miniconda3\envs\venv_vibe\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "C:\Users\Administrator\miniconda3\envs\venv_vibe\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

_pickle.UnpicklingError: invalid load load, '\xdd'

Hi there, thank you so much for doing a windows repository for this!

I've managed to get VIBE to give me a video output and a .pkl file. The issue is when I try to load the .pkl file in blender, onto a smplx model with the smplx model add on, I get the following error:

image

Prior to this I had a similar issue, but resolved the joblib module is missing error, by following your advice in carlosedubarreto/b3d_mocap_import#17

I would greatly appreciate any advice you have to solve this matter!

CPU without GPU

The last step is this error. My computer has no GPU. According to this prompt, I don't know where to change the code. Please help. Thank you
image

VIBE BrokenPipeError: [Errno 32] Broken pipe

Unable to run VIBE anymore today. Even after starting again from scratch and only using provided sample content. Here is what I get:

(venv_vibe2) D:\MOCAP02\VIBE>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png"
Images saved to "/tmp\sample_video_mp4"
Input video number of frames 300
Running Multi-Person-Tracker
100%|████████████████████████████████████████████████████████████████████████████████| 100/100 [00:32<00:00,  3.22it/s]
Finished. Detection + Tracking FPS 9.12
Displaying results..
WARNING: You are using a SMPL model, with only 10 shape coefficients.
WARNING: You are using a SMPL model, with only 10 shape coefficients.
=> loaded pretrained model from 'data/vibe_data\spin_model_checkpoint.pth.tar'
Performance of pretrained model on 3DPW: 56.56075477600098
Loaded pretrained weights from "data/vibe_data/vibe_model_wo_3dpw.pth.tar"
Running VIBE on each tracklet...
  0%|                                                                                            | 0/1 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "demo_alter.py", line 405, in <module>
    main(args)
  File "demo_alter.py", line 152, in main
    for batch in dataloader:
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\site-packages\torch\utils\data\dataloader.py", line 279, in __iter__
    return _MultiProcessingDataLoaderIter(self)
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\site-packages\torch\utils\data\dataloader.py", line 719, in __init__
    w.start()
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\multiprocessing\process.py", line 112, in start
    self._popen = self._Popen(self)
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\multiprocessing\context.py", line 223, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\multiprocessing\context.py", line 322, in _Popen
    return Popen(process_obj)
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\multiprocessing\popen_spawn_win32.py", line 89, in __init__
    reduction.dump(process_obj, to_child)
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\multiprocessing\reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
BrokenPipeError: [Errno 32] Broken pipe
Exception ignored in: <function tqdm.__del__ at 0x000001B3B31B15E8>
Traceback (most recent call last):
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\site-packages\tqdm\_tqdm.py", line 931, in __del__
    self.close()
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\site-packages\tqdm\_tqdm.py", line 1133, in close
    self._decr_instances(self)
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\site-packages\tqdm\_tqdm.py", line 496, in _decr_instances
    cls.monitor.exit()
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\site-packages\tqdm\_monitor.py", line 52, in exit
    self.join()
  File "C:\Users\[user]\miniconda3\envs\venv_vibe2\lib\threading.py", line 1041, in join
    raise RuntimeError("cannot join current thread")
RuntimeError: cannot join current thread

Attempting to troubleshoot this. Any help welcome!

no .torch file. file not found error

i clossed the last issue after i found out that it had already been ans but the solution did not work for me.
i downloaded both yolov3 files

but when i went to c/user/{user name}/.torch

i found out there was no .torch file
i made a new folder name it .torch added models and config folders and copied the respected yolov3 filles in each

tried running
python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
nothing same error
closed the prompt
re-opened it. double checked that it was in admin.
reinstalled everything
nothing same error
copy past of error
(venv_vibe) D:\video\3\4>python demo_alter.py --vid_file sample_video.mp4 --output_folder output/ --display
Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png"
Traceback (most recent call last):
File "demo_alter.py", line 405, in
main(args)
File "demo_alter.py", line 72, in main
image_folder, num_frames, img_shape = video_to_images(video_file, return_info=True)
File "D:\video\3\4\lib\utils\demo_utils.py", line 195, in video_to_images
subprocess.call(command)
File "D:\Newfolder\envs\venv_vibe\lib\subprocess.py", line 339, in call
with Popen(*popenargs, **kwargs) as p:
File "D:\Newfolder\envs\venv_vibe\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "D:\Newfolder\envs\venv_vibe\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

file not found

Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png"
Traceback (most recent call last):
File "demo_alter.py", line 405, in
main(args)
File "demo_alter.py", line 72, in main
image_folder, num_frames, img_shape = video_to_images(video_file, return_info=True)
File "D:\video\3\4\lib\utils\demo_utils.py", line 195, in video_to_images
subprocess.call(command)
File "D:\Newfolder\envs\venv_vibe\lib\subprocess.py", line 339, in call
with Popen(*popenargs, **kwargs) as p:
File "D:\Newfolder\envs\venv_vibe\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "D:\Newfolder\envs\venv_vibe\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

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.