kijai / ComfyUI-MochiWrapper

Apache License 2.0
613 stars 51 forks source link

How to install these missing nodes? #18

Open shiverwang76 opened 3 weeks ago

shiverwang76 commented 3 weeks ago

Hello, I am a beginner, how to install these missing nodes? Thanks you!

missing nodes:

DownloadAndLoadMochiModel MochiTextEncode MochiSampler MochiDecode

perk11 commented 3 weeks ago

Go to custom_nodes directory in ComfyUI

git clone https://github.com/kijai/ComfyUI-MochiWrapper.git
cd ComfyUI-MochiWrapper
pip install -r requirements.txt
pip install SageAttention 
shiverwang76 commented 3 weeks ago

转到 ComfyUI 中的目录custom_nodes

git clone https://github.com/kijai/ComfyUI-MochiWrapper.git
cd ComfyUI-MochiWrapper
pip install -r requirements.txt
pip install SageAttention 

The problem has been solved, thank you very much!

yovsac commented 3 weeks ago

Hello, have done this but still cant see the nodes, still red. Any other ideas?

kijai commented 3 weeks ago

Hello, have done this but still cant see the nodes, still red. Any other ideas?

Update torch to 2.5.0

shiverwang76 commented 3 weeks ago

Hello, have done this but still cant see the nodes, still red. Any other ideas?

In my experience, many comfyui nodes have conflicts, if upgrading torch still does not solve the problem, please create a new comfyui directory (for mochi only), may solve the problem

yovsac commented 3 weeks ago

Thank you for your reply. Sorry for the silly question, but how do I install torch 2.5?

shiverwang76 commented 3 weeks ago

Thank you for your reply. Sorry for the silly question, but how do I install torch 2.5?

Try any of the following command lines:

pip3 install torch==2.5.0 torchvision --index-url https://download.pytorch.org/whl/test/cu118 pip3 install torch==2.5.0 torchvision --index-url https://download.pytorch.org/whl/test/cu121 pip3 install torch==2.5.0 torchvision --index-url https://download.pytorch.org/whl/test/cu124

yovsac commented 3 weeks ago

Thank you. I would use any of those commands on a cmd window in the mochi folder or the comfy one?

shiverwang76 commented 3 weeks ago

Thank you. I would use any of those commands on a cmd window in the mochi folder or the comfy one?

Yes, it seems mochi has no strict requirements for the cuda version. In my own case, I use cu118

yovsac commented 2 weeks ago

sorry Im a bit new all this. I get this error. What im I doing wrong? Screenshot 2024-10-28 101154

yovsac commented 2 weeks ago

Thank you. I would use any of those commands on a cmd window in the mochi folder or the comfy one?

Yes, it seems mochi has no strict requirements for the cuda version. In my own case, I use cu118

Screenshot 2024-10-28 102112

Get this window when I try to do it in the /python_embeded folder

kijai commented 2 weeks ago

Thank you. I would use any of those commands on a cmd window in the mochi folder or the comfy one?

Yes, it seems mochi has no strict requirements for the cuda version. In my own case, I use cu118

Screenshot 2024-10-28 102112

Get this window when I try to do it in the /python_embeded folder

Run In the ComfyUI_windows_portable\python_embeded folder: python.exe -m pip install -U torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124

yovsac commented 2 weeks ago

Still getting the same window...frustrating. Screenshot 2024-10-28 104006

shiverwang76 commented 2 weeks ago

Still getting the same window...frustrating. Screenshot 2024-10-28 104006

It feels like there are many possibilities, maybe there is a problem with the version of python you installed? Try to install a version that is compatible with your system. Use the following two lines to see the version? python --version python -c "import platform; print(platform.architecture())"

Or if phthon hasn't been upgraded to a new version, try: python -m pip install --upgrade pip

yovsac commented 2 weeks ago

Thank you for your reply. I ended up having problems even starting comfy with the same message so I reinstalled comfy and nodes and it’s working now. Thanks again 👍