File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
docs/source/en/api/pipelines Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -324,9 +324,8 @@ import torch
324324from diffusers import FluxPipeline
325325from diffusers.utils import load_image
326326
327- pipe: FluxPipeline = FluxPipeline.from_pretrained(
328- " black-forest-labs/FLUX.1-dev" ,
329- torch_dtype = torch.bfloat16,
327+ pipe = FluxPipeline.from_pretrained(
328+ " black-forest-labs/FLUX.1-dev" , torch_dtype = torch.bfloat16
330329).to(" cuda" )
331330
332331image = load_image(" https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/flux_ip_adapter_input.jpg" ).resize((1024 , 1024 ))
@@ -341,7 +340,7 @@ pipe.set_ip_adapter_scale(1.0)
341340image = pipe(
342341 width = 1024 ,
343342 height = 1024 ,
344- prompt = ' wearing sunglasses' ,
343+ prompt = " wearing sunglasses" ,
345344 negative_prompt = " " ,
346345 true_cfg = 4.0 ,
347346 generator = torch.Generator().manual_seed(4444 ),
You can’t perform that action at this time.
0 commit comments