geopavlakos / hamer

HaMeR: Reconstructing Hands in 3D with Transformers
https://geopavlakos.github.io/hamer/
MIT License
348 stars 30 forks source link

installing on windows #6

Closed carlosedubarreto closed 9 months ago

carlosedubarreto commented 9 months ago

While testing on windows I've encontered 2 problems.

the first one was and EGL error. I solved it commenting the lines that says os.environ['PYOPENGL_PLATFORM'] = 'egl' image

And another erro that I had was about the wrong path for the model, this error was causes by the function to update cachedir in hamer/model/init.py I just changed to update_cachedir=False

image

and on the installation part its always a bit complicated to install detectron on windows. a way that helped me to install it was following the instruction on https://stackoverflow.com/questions/60631933/install-detectron2-on-windows-10/72784255#72784255

resuming, you need to follow these instructions (you can change the name of the venv created

conda create -n norfair python=3.9

conda install -c anaconda pywin32

conda install -c anaconda cython

pip install git+https://github.com/facebookresearch/fvcore

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

pip install av

conda install -c anaconda scipy

conda install -c anaconda ninja

pip install git+https://github.com/facebookresearch/detectron2.git
carlosedubarreto commented 9 months ago

I think that was all that I did. Good luck for you that will try to install on windows. It a bit more complicated, but not that much.