sayakpaul HF staff commited on
Commit
f37b438
1 Parent(s): 7b3d315

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -85,11 +85,11 @@ model.to(torch.bfloat16).save_pretrained("merged-flux")
85
  ## Inference code
86
 
87
  ```python
88
- from diffusers import FluxPipeline, FluxTransformer2DModel
89
  import torch
90
 
91
  pipeline = FluxPipeline.from_pretrained(
92
- "sayakpaul/FLUX.1-merged", transformer=transformer, torch_dtype=torch.bfloat16
93
  ).to("cuda")
94
  image = pipeline(
95
  prompt="a tiny astronaut hatching from an egg on the moon",
 
85
  ## Inference code
86
 
87
  ```python
88
+ from diffusers import FluxPipeline
89
  import torch
90
 
91
  pipeline = FluxPipeline.from_pretrained(
92
+ "sayakpaul/FLUX.1-merged", torch_dtype=torch.bfloat16
93
  ).to("cuda")
94
  image = pipeline(
95
  prompt="a tiny astronaut hatching from an egg on the moon",