Open ricklove opened 1 week ago
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.
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:
#include "box_iou_rotated/box_iou_rotated_utils.h"
Rerun after detectron2 installs
./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt
to point to deps/ versionpython_embeded\python.exe -m pip install -r ./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt
deps missing
./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt
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
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
from https://github.com/mattloper/chumpy/issues/55#issuecomment-1872712613
pip install git+https://github.com/mattloper/chumpy
change chumpy in
./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt
python_embeded\python.exe -m pip install -r ./ComfyUI/custom_nodes/ComfyUI-4DHumans/requirements.txt
And it works!