Closed zlobniyshurik closed 2 weeks ago
I have the same problem on a Macbook Pro M3 Max running MacOS Sonoma.
The dev
model gives me what looks like random RGB noise. With the schnell
model or the fp8
checkpoint I can kinda barely see the image I'm supposed to be getting, but it's super noisy.
The problem goes away when running with --cpu
, and I get the same images as in the Flux examples -- but it's unusably slow 😢 .
I'm feel this isn't a ComfyUI problem, but maybe the info helps.
Same issue on MacBook Pro M1 Max (64GM RAM), macOS 14.6.1 and affects all FLUX.1 models - dev and schnell.
Tried to erase venv
with python 3.12
and recreate it with python 3.10
inside.
No succes. SDXL working, but not Flux (still color noise).
Also have the problem. The workflow address that I used in here: https://comfyanonymous.github.io/ComfyUI_examples/flux/flux_dev_example.png
When I tried flux1-dev, comfyUI gave me the noises instead of anime girl picture. However, if I switch to flux1-schnell, it works! And the target picture appears!
My env: windows 11 + RTX3090 + 64G RAM; models : flux1-dev + t5xxl_fp16.safetensors + clip_l.safetensors. I also attached the noise picture.
Any help?
I have the same issue as the OP. Running macOS Sonoma 14.6.1.
Might be related to previous issues with Sonoma updates: https://www.reddit.com/r/comfyui/comments/1badrgf/apple_silicon_users_beware_do_not_update_to_macos/
downgrade torch as temp fix: pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
For those having this issue here is a relevant thread where i got the fix: https://github.com/comfyanonymous/ComfyUI/issues/4165#issuecomment-2264948167
downgrade torch as temp fix:
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
For those having this issue here is a relevant thread where i got the fix: #4165 (comment)
Wow! It's working!
python3.12
First picture is slightly different from blog's reference, but second one - perfect copy
UPD. After rerun I get perfect copy of first reference picture (anime girl showeling snow)
Just tried on macOS 14.6.1 and I tried with torch 2.3.1 and 2.4.0 and 2.5nightly and everything seems to work fine except the final image is just color noise. using example workflow as in this bug
comfyui git clone as of this afternoon. maybe I should try an older comfyui commit?
downgrade torch as temp fix:
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
For those having this issue here is a relevant thread where i got the fix: #4165 (comment)
This has worked for me.
downgrade torch as temp fix:
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
For those having this issue here is a relevant thread where i got the fix: #4165 (comment)
Up until yesterday it was working if I downgraded, but after I ran Update All today, it only produces noise images after downgrading.
I just did git pull
to the latest version. Still works.
P.S. Linux 64bit 64GB RAM + 7900XT (20GB VRAM) python 3.12 + torch 2.3.1 + torchaudio 2.3.1 + rocm 6.0
downgrade torch as temp fix:
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
For those having this issue here is a relevant thread where i got the fix: #4165 (comment)
Worked for me too, MacOS Sonoma on Macbook Pro M3 Max.
I just did the torch downgrade and also a git pull (got a bunch of changes in ComfyUI in the last 24hrs) and it works now!
downgrade torch as temp fix: pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
Not Worked for me, MacOS Sonoma14.6.1 on Macbook Pro M1 Max. 64g
still noise image.
The noisy images from FLUX on MPS is due to a regression in batch norm. This regressed some time after PyTorch v2.3.1, which is why downgrading works.
Follow https://github.com/pytorch/pytorch/issues/133520 for an update on when the fix is shipped in PyTorch nightly. Please note that this is only relevant for macOS.
@hvaara But I downgrade torch : pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1, still noise image, should I wait the Follow https://github.com/pytorch/pytorch/issues/133520 for an update on when the fix is shipped in PyTorch nightly ?
The noisy images from FLUX on MPS is due to a regression in batch norm. This regressed some time after PyTorch v2.3.1, which is why downgrading works.
Follow pytorch/pytorch#133520 for an update on when the fix is shipped in PyTorch nightly. Please note that this is only relevant for macOS.
@zwqjoy What does
import torch
print(torch.__version__)
give you? Some times pip can be a little sneaky and you have two versions installed. You could also try starting from a fresh environment.
downgrade torch as temp fix:
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
For those having this issue here is a relevant thread where i got the fix: #4165 (comment)Up until yesterday it was working if I downgraded, but after I ran Update All today, it only produces noise images after downgrading.
The ComfyUi update a few days ago sets torch=2.4.0 as a requirement and upgrades torch. check if torch is on >=2.4.0 and if so, downgrade back to 2.3.1.
@zwqjoy I got your messages, but looks like they were removed again. Did you get it working?
I had the same problem with noise as the output on Mac Studio. I also
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
And it seems to be working right. I'll keep an eye on the Pytorch regression bug.
@hvaara I git pull the latest comfyui, pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1. and It is OK now.
I don't know about you guys, but what I get is inconsistent results - Mac studio m2 max / 64gb
@bnewddt can you upload the failure cases somewhere? I'd like to reproduce your results, and the metadata in the images contains the workflow.
sure @hvaara here you are https://we.tl/t-vtyMxOQUva
@hvaara installed comfyUI through Pinokio and seems the problems have gone 😅 thanks anyway!
It does work. M3 Pro 128G , MacOS Sequios 15.1
downgrade torch as temp fix:
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
For those having this issue here is a relevant thread where i got the fix: #4165 (comment)
Nothing seems to work for me. Have downgraded and all. Runing a Sonoma Version 14.6.1
works: downgrade torch as temp fix: pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1 works: torch nightly (at least torch-2.5.0.dev20240821): pip install --upgrade --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
I Love you <3
downgrade torch as temp fix:
pip install torch==2.3.1 torchaudio==2.3.1 torchvision==0.18.1
For those having this issue here is a relevant thread where i got the fix: #4165 (comment)
Thanks! This fixed it.
Expected Behavior
Render beautiful picsture from https://blog.comfy.org/content/images/size/w1000/2024/08/ComfyUI_00006_.png with Flux
Actual Behavior
Got color pixel noise instead of picture with anime girl :)
Steps to Reproduce
Debug Logs
Other
System: Fedora 40 (Linux amd64)