Closed LordAlex2015 closed 3 months ago
I have this exact same error
I'm on ComfyUI: 218[605e64](2024-06-12)
Using a RTX 4090 on RunPod using the runpod/stable-diffusion:fast-stable-diffusion-2.4.0
template
Your model file is invalid file.
You either need to update pytorch to 2.2 or higher or your model is corrupt.
I don't think my model is corrupt, my SHA256 is 92db4295e9c9ab8401ef60566d975656a35b0bd0f6d9ce0d083725171f7b3174
which matches the one on the file page here: https://huggingface.co/stabilityai/stable-diffusion-3-medium/blob/main/sd3_medium_incl_clips_t5xxlfp8.safetensors
It could be my torch version, I'm using torch==2.0.1+cu118
OK I've tried the following versions but I still have the same issue
2.3.0+cu118
2.3.0+cu121
2.3.1+cu121
oh, you also need to update the safetensors library.
Updating safetensors
made it work, thank you @comfyanonymous ♥️
Updating to 2.3.1 worked for me.
For those who have this issue, here is a summary of this thread
Verify that your downloads are not broken. Open PowerShell prompt in your model directories and compare the SHA-256 on each file
cd D:\ai-models
Get-FileHash .\Stable-diffusion\sd3_medium.safetensors
Get-FileHash .\clip\clip_g.safetensors
Get-FileHash .\clip\clip_l.safetensors
Get-FileHash .\clip\t5xxl_fp8_e4m3fn.safetensors
to the ones on HuggingFace by clicking on them.
cd D:\Projects\ComfyUI_windows_portable
.\python_embeded\python.exe -m pip install torch>=2.3.1 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
cd D:\Projects\ComfyUI_windows_portable
.\python_embeded\python.exe -m pip install safetensors --upgrade
Yeah, updating torch and safetensors worked for me
same here... cant load it... cant see it.... strange..
Same It doesn't load Failed product I was so exited to try Now i am disappointed
Updating to 2.3.1 worked for me.
For those who have this issue, here is a summary of this thread
1. Check the sha-256
Verify that your downloads are not broken. Open PowerShell prompt in your model directories and compare the SHA-256 on each file
cd D:\ai-models Get-FileHash .\Stable-diffusion\sd3_medium.safetensors Get-FileHash .\clip\clip_g.safetensors Get-FileHash .\clip\clip_l.safetensors Get-FileHash .\clip\t5xxl_fp8_e4m3fn.safetensors
to the ones on HuggingFace by clicking on them.
2. Update torch to 2.3.1
cd D:\Projects\ComfyUI_windows_portable .\python_embeded\python.exe -m pip install torch>=2.3.1 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
3. Update safetensors
cd D:\Projects\ComfyUI_windows_portable .\python_embeded\python.exe -m pip install safetensors --upgrade
Updating works for me.
When I try to execute a prompt with the new SD3 model (The 10 Gig one) (on the default workflow): I get this error:
Can someone help me fix it?