Skip to content
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

Windows 10 Notes #4

Open
ricklove opened this issue Oct 11, 2024 · 1 comment
Open

Windows 10 Notes #4

ricklove opened this issue Oct 11, 2024 · 1 comment

Comments

@ricklove
Copy link

ricklove commented Oct 11, 2024

Here are the steps I needed to get this to work in windows 10:


failed

  • python_embeded\python.exe -m pip install -r ./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt

Manual install detectron2:

  • cd deps
  • git clone https://github.com/facebookresearch/detectron2.git
  • cd ..
  • python_embeded\python.exe -m pip install -e deps/detectron2

Edit source code for win10:

Rerun after detectron2 installs

  • modify ./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt to point to deps/ version
  • python_embeded\python.exe -m pip install -r ./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt

deps missing

  • add to ./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt
    • smplx
    • PyOpenGL-accelerate
    • webdataset
    • chumpy
  • python_embeded\python.exe -m pip install -r ./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt

fix cache path:

  • ./ComfyUI/custom_nodes/ComfyUI-4DHumans/humans4d/hmr2/configs/__init__.py
  • CACHE_DIR = os.path.join(os.getcwd(), "ComfyUI/cache")

fix code

  • ./ComfyUI/custom_nodes/ComfyUI-4DHumans/utils/process_humans.py
  • if sys_name == "Windows" and "PYOPENGL_PLATFORM" in os.environ:

get hmr35 models

  • cd ./ComfyUI/models/hmr
  • bash to start wsl (windows wget does not work)
  • wget https://people.eecs.berkeley.edu/~jathushan/projects/4dhumans/hmr2a_model.tar.gz

fix cannot import bool from numpy


And it works!

@logtd
Copy link
Owner

logtd commented Oct 11, 2024

Thanks for posting this for people! I'll leave this issue open.

Could I ask what you're using this for? 4D Humans has a lot of use cases and I left this kind of open, but would be nice to add some specific features for people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants