-
Notifications
You must be signed in to change notification settings - Fork 100
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
to get this to run on windows #2 #12
Comments
I have had success with detectron2 this way. : https://stackoverflow.com/a/72784255/22334744 And I needed to put SMPL_NEUTRAL.pkl into .cache\phalp\3D\models\smpl. https://github.com/sampepose/smpl_models/tree/master |
The main problem is in this part The easiest way it to make what @toyxyz says. Also add the same "SMPL_NEUTRAL.pkl" to your "%HOMEPATH%.cache\4DHumans\data\smpl" folder |
Thanks folks! I don't have a windows machine to test but if someone wants to open a PR with these changes, I'd be happy to review and merge :) |
By any chance did you bump into this error ? ( before installing PHALP )
|
@hbardak I saw that problem, try to get an older version of detectron, maybe it will work. |
It took me sweat and blood to compile detectron2 :-) Following your instruction on #36 Any ideas which version I should build ? |
update based on adding PHALP
the following are my hacky steps to get the latest update to run on windows
install per conda instructions
there will be errors saying detectron2 cannot be built
comment out the following:
if 'PYOPENGL_PLATFORM' not in os.environ:
os.environ['PYOPENGL_PLATFORM'] = 'egl'
in:
hmr2/utils/mesh_renderer.py
hmr2/utils/renderer.py
change init_.py in configs to
CACHE_DIR = os.path.join(os.environ.get("USERPROFILE"), ".cache")
pip install cyphon
in vendor/detectron root folder install with
pip install -e .
then
pip install webdataset
run 'python demo.py' which will download a model file
untar this model file by hand from /Users/username/.cache
the following should now work for images
python demo.py
to get track.py to work
run the following from the root of 4d-human
git clone https://github.com/brjathu/PHALP.git
comment out the following in setup.py
"detectron2 @ git+https://github.com/facebookresearch/detectron2.git",
install phalp (at root of the new phalp directory)
pip install -e .[all]
in py_renderer
comment out
#os.environ['PYOPENGL_PLATFORM'] = 'egl'
phalp/configs/base.py change to
CACHE_DIR = os.path.join(os.environ.get("USERPROFILE"), ".cache") # None if the variable does not exist
and then add the following to phalp.py
import requests
import shutil
(additions/commenting from line606...)
the following should now work
python track.py video.source="example_data/videos/gymnasts.mp4"
The text was updated successfully, but these errors were encountered: