Lifu Wang
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -42,14 +42,12 @@ from diffusers import FluxPipeline
|
|
42 |
|
43 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16)
|
44 |
pipe = pipe.to('cuda')
|
45 |
-
|
46 |
-
prompt = "Photorealistic portrait of a stylish young woman wearing a futuristic golden sequined bodysuit that catches the light, creating a metallic, mirror-like effect. She is wearing large, reflective blue-tinted aviator sunglasses. Over her head, she wears headphones with metallic accents, giving a modern, cyber aesthetic."
|
47 |
-
|
48 |
text_encoder = T5EncoderWithProjection.from_pretrained('lwang717/ScalingDownTextEncoder', torch_dtype=torch.float16)
|
49 |
pipe.text_encoder_2 = text_encoder.to(device)
|
50 |
|
|
|
|
|
51 |
image = pipe(prompt=prompt, num_images_per_prompt=1, guidance_scale=3.5, num_inference_steps=20).images[0]
|
52 |
|
53 |
image.save("t5_base.png")
|
54 |
-
|
55 |
```
|
|
|
42 |
|
43 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16)
|
44 |
pipe = pipe.to('cuda')
|
|
|
|
|
|
|
45 |
text_encoder = T5EncoderWithProjection.from_pretrained('lwang717/ScalingDownTextEncoder', torch_dtype=torch.float16)
|
46 |
pipe.text_encoder_2 = text_encoder.to(device)
|
47 |
|
48 |
+
prompt = "Photorealistic portrait of a stylish young woman wearing a futuristic golden sequined bodysuit that catches the light, creating a metallic, mirror-like effect. She is wearing large, reflective blue-tinted aviator sunglasses. Over her head, she wears headphones with metallic accents, giving a modern, cyber aesthetic."
|
49 |
+
|
50 |
image = pipe(prompt=prompt, num_images_per_prompt=1, guidance_scale=3.5, num_inference_steps=20).images[0]
|
51 |
|
52 |
image.save("t5_base.png")
|
|
|
53 |
```
|