Update README.md
Browse files
README.md
CHANGED
@@ -46,7 +46,7 @@ import torch
|
|
46 |
from diffusers import FluxPipeline
|
47 |
|
48 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16)
|
49 |
-
pipe.enable_model_cpu_offload()
|
50 |
|
51 |
prompt = "A cat holding a sign that says hello world"
|
52 |
image = pipe(
|
@@ -60,6 +60,8 @@ image = pipe(
|
|
60 |
image.save("flux-schnell.png")
|
61 |
```
|
62 |
|
|
|
|
|
63 |
---
|
64 |
# Limitations
|
65 |
- This model is not intended or able to provide factual information.
|
|
|
46 |
from diffusers import FluxPipeline
|
47 |
|
48 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16)
|
49 |
+
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
|
50 |
|
51 |
prompt = "A cat holding a sign that says hello world"
|
52 |
image = pipe(
|
|
|
60 |
image.save("flux-schnell.png")
|
61 |
```
|
62 |
|
63 |
+
To learn mode check out the [diffusers](https://huggingface.co/docs/diffusers/main/en/api/pipelines/flux) documentation
|
64 |
+
|
65 |
---
|
66 |
# Limitations
|
67 |
- This model is not intended or able to provide factual information.
|