How could I transfer 2 images to FLUX model using given code.
#77
by
fastek
- opened
Code given in Model card:
pipe = FluxKontextPipeline.from_pretrained("black-forest-labs/FLUX.1-Kontext-dev", torch_dtype=torch.bfloat16)
pipe.to("cuda")
input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
image = pipe(
image=input_image,
prompt="Add a hat to the cat",
guidance_scale=2.5
).images[0]
Hai fastek,
Try my Gemini Nano Banana API
https://rapidapi.com/magicanimatedstickers/api/nano-banana-gemini-image-to-image-api
its not a good answer...