megvii-research / megactor

Apache License 2.0
737 stars 100 forks source link

HF #11

Open Inferencer opened 3 months ago

Inferencer commented 3 months ago

If it's not too much trouble could somebody put this on HuggingFace Spaces on CPU hardware so I can duplicate and change to GPU HF does not like env yamls i fear so a requirements text is all i really need

I did attempt this myself but ran into issues with detectron2==0.6 and im assuming once it's fixed i would run into with detectron2-densepose==0.6 and perhaps some of the rest

lhd777 commented 3 months ago

We apologize for any inconvenience caused. Installing detectron2 and densepose is not an easy task. Therefore, we have set up detectron2 as a submodule. You can follow these steps for installation:

bboylalu commented 3 months ago

I also had lots of issues with it and what I ended up doing was to start a new conda environment,

conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.7 -c pytorch -c nvidia conda install -c conda-forge pybind11 conda install -c conda-forge gxx conda install -c conda-forge gcc_linux-64==11.* pip install 'git+https://github.com/facebookresearch/detectron2.git@v0.6' cd detectron2/projects/DensePose pip install .

Then manually install of the dependencies as results of the errors I got when running python demo/run_gradio.py. It's a pain, but it worked for me.