Description
Describe the bug
I don't know why, but the loading has remained stationary at this step. I'm running it on a 4090-24G graphics card. But it seems that it has been stuck since loading the pipe
(worldgen) lqz27@rise:~/.../WorldGen/flux$ python flux.py
Loading checkpoint shards: 100%|█████████████████| 2/2 [00:00<00:00, 149.45it/s]
Loading checkpoint shards: 100%|██████████████████| 3/3 [00:00<00:00, 95.33it/s]
Loading pipeline components...: 57%|███████▍ | 4/7 [00:00<00:00, 36.35it/s]You set add_prefix_space
. The tokenizer needs to be converted from the slow tokenizers
Loading pipeline components...: 100%|█████████████| 7/7 [00:00<00:00, 26.22it/s]
Reproduction
import torch
from diffusers import FluxFillPipeline
from diffusers.utils import load_image
image = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup.png")
mask = load_image("https://huggingface.co/datasets/diffusers/diffusers-images-docs/resolve/main/cup_mask.png")
pipe = FluxFillPipeline.from_pretrained("black-forest-labs/FLUX.1-Fill-dev", torch_dtype=torch.bfloat16).to("cuda")
image = pipe(
prompt="a white paper cup",
image=image,
mask_image=mask,
height=1632,
width=1232,
guidance_scale=30,
num_inference_steps=50,
max_sequence_length=512,
generator=torch.Generator("cpu").manual_seed(0)
).images[0]
image.save(f"flux-fill-dev.png")
Logs
System Info
The latest diffusers ,python=3.11
Who can help?
No response