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

how to install comfyui windows ?? #57

Open
rafiislambd opened this issue Dec 14, 2024 · 2 comments
Open

how to install comfyui windows ?? #57

rafiislambd opened this issue Dec 14, 2024 · 2 comments

Comments

@rafiislambd
Copy link

how to install comfyui windows ?? thanks

@vbqgyy
Copy link

vbqgyy commented Dec 24, 2024

Windows compilation method sharing:
I tried compiling nunchaku on windows many times. It took me about two days. I compiled it successfully in the following way:

  1. Download and install cuda12.6: https://developer.nvidia.com/cuda-downloads
  2. Upgrade Microsoft Visual Studio to the highest version
  3. Change comfyui environment installation (python=3.11, torch2.4.1+cu124)
    D:\0AI\0StableDiffusion\ComfyUI\python_embeded\python.exe -m pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu124
    pip install diffusers ninja wheel transformers accelerate sentencepiece protobuf
    pip install huggingface_hub peft opencv-python einops gradio spaces GPUtil
  4. Download nunchaku
    git clone https://github.com/mit-han-lab/nunchaku.git
    cd nunchaku
    git submodule init
    git submodule update
  5. Build and install nunchaku
    D:\0AI\0StableDiffusion\ComfyUI\python_embeded\python.exe -m pip install --no-build-isolation -e .

These are all compiled by memories I successfully edited. I don't know if there are any omissions.

@vbqgyy
Copy link

vbqgyy commented Dec 24, 2024

torch2.5.1+cu124 is also no problem

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