threestudio icon indicating copy to clipboard operation
threestudio copied to clipboard

xformers requirement install wrong version

Open nkundtz opened this issue 1 year ago • 2 comments

Threestudio install requires cu118, but the xformers default install requires cu121. (https://github.com/facebookresearch/xformers#installing-xformers). This mismatch breaks the MVDream install when following the instructions here: https://github.com/DSaurus/threestudio-mvdream. The install is successful, but the code will not run.

Installing the correct xformers version pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu118 fixes the problem. I recommend updating requirements.txt

nkundtz avatar Dec 19 '23 19:12 nkundtz

Hi @nkundtz ,

Thank you for your advice, I have updated requirements.txt (removing xformers ) and added instructions in installation.

DSaurus avatar Dec 20 '23 06:12 DSaurus

Hi @DSaurus, I faced a similar issue, Due to xformers upgrading torch from 2.0.0 to 2.3.1 (using torch2.0.0+cu118). Which caused issue with nerfacc, and I had to downgrade torch again.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
xformers 0.0.27 requires torch==2.3.1, but you have torch 2.0.0+cu118 which is incompatible.

Can we also update the main installation instructions rather than just the? mvdream extension? Let's put versions for all the repos listed so that such an issue won't occur in the future due to other repos. Thanks!

jadevaibhav avatar Jul 21 '24 22:07 jadevaibhav