fix tiny issue (#4)

This commit is contained in:
apolinário
2025-11-26 00:00:41 +01:00
committed by GitHub
parent dd0424d46a
commit 5a5d316b1b

View File

@@ -60,7 +60,7 @@ prompt = "Realistic macro photograph of a hermit crab using a soda can as its sh
#cat_image = load_image("https://huggingface.co/spaces/zerogpu-aoti/FLUX.1-Kontext-Dev-fp8-dynamic/resolve/main/cat.png") #cat_image = load_image("https://huggingface.co/spaces/zerogpu-aoti/FLUX.1-Kontext-Dev-fp8-dynamic/resolve/main/cat.png")
image = pipe( image = pipe(
prompt_embeds=remote_text_encoder(prompt), prompt_embeds=remote_text_encoder(prompt),
#image=load_image(cat_image) #optional image input #image=[cat_image] #optional multi-image input
generator=torch.Generator(device=device).manual_seed(42), generator=torch.Generator(device=device).manual_seed(42),
num_inference_steps=50, #28 steps can be a good trade-off num_inference_steps=50, #28 steps can be a good trade-off
guidance_scale=4, guidance_scale=4,