Instructions to use future-technologies/Floral-High-Dynamic-Range with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use future-technologies/Floral-High-Dynamic-Range with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("future-technologies/Floral-High-Dynamic-Range", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -193,7 +193,7 @@ except Exception as e:
|
|
| 193 |
|
| 194 |
# Initialize the diffusion pipeline
|
| 195 |
try:
|
| 196 |
-
pipe =
|
| 197 |
pipe.to("cuda" if torch.cuda.is_available() else "cpu")
|
| 198 |
except Exception as e:
|
| 199 |
print(f"Error initializing pipeline: {e}")
|
|
@@ -212,7 +212,7 @@ except Exception as e:
|
|
| 212 |
|
| 213 |
# Save or display the image
|
| 214 |
try:
|
| 215 |
-
image.save("
|
| 216 |
image.show()
|
| 217 |
except Exception as e:
|
| 218 |
print(f"Error saving or displaying image: {e}")
|
|
|
|
| 193 |
|
| 194 |
# Initialize the diffusion pipeline
|
| 195 |
try:
|
| 196 |
+
pipe = FluxPipeline.from_pretrained(model_name, use_auth_token=API_TOKEN)
|
| 197 |
pipe.to("cuda" if torch.cuda.is_available() else "cpu")
|
| 198 |
except Exception as e:
|
| 199 |
print(f"Error initializing pipeline: {e}")
|
|
|
|
| 212 |
|
| 213 |
# Save or display the image
|
| 214 |
try:
|
| 215 |
+
image.save("floral-hdr.png")
|
| 216 |
image.show()
|
| 217 |
except Exception as e:
|
| 218 |
print(f"Error saving or displaying image: {e}")
|