black-forest-labs / flux

Official inference repo for FLUX.1 models
Apache License 2.0
16.17k stars 1.17k forks source link

New error: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! #191

Open Quick-Eyed-Sky opened 2 weeks ago

Quick-Eyed-Sky commented 2 weeks ago

I made a colab for FLUX.dev and it worked perfectly, but today I get this error, what has changed?

"Skipping this image and continuing... An error occurred during image generation: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and CPU!"

Quick-Eyed-Sky commented 2 weeks ago

I explored a lot, and the problems come maybe from a diffusers version...

wen020 commented 2 weeks ago

+1

Quick-Eyed-Sky commented 1 week ago

Found this, I'm testing it now.

Issue appears to be with diffusers . Resolution was to revert to an older version by modifying requirements.txt and using this version:

git+https://github.com/huggingface/diffusers.git@v0.30.1