Text-to-Image
Diffusers
Safetensors
English
quantized
fp8
e4m3
Text-to-Image
ControlNet
Diffusers
Flux.1-dev
image-generation
Stable Diffusion
quantization
reduced-precision
Instructions to use ABDALLALSWAITI/FLUX.1-dev-ControlNet-Union-Pro-2.0-fp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ABDALLALSWAITI/FLUX.1-dev-ControlNet-Union-Pro-2.0-fp8 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ABDALLALSWAITI/FLUX.1-dev-ControlNet-Union-Pro-2.0-fp8", torch_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 Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -157,15 +157,6 @@ pipe.to("cuda")
|
|
| 157 |
|
| 158 |
See `fp8_inference_example.py` for a complete example.
|
| 159 |
|
| 160 |
-
# Pushing Model to Hugging Face Hub
|
| 161 |
-
To push your FP8 quantized model to the Hugging Face Hub, use the included script:
|
| 162 |
-
|
| 163 |
-
```bash
|
| 164 |
-
python push_model_to_hub.py --repo_id "ABDALLALSWAITI/FLUX.1-dev-ControlNet-Union-Pro-2.0-fp8"
|
| 165 |
-
```
|
| 166 |
-
|
| 167 |
-
You will need to have the `huggingface_hub` library installed and be logged in with your Hugging Face credentials.
|
| 168 |
-
|
| 169 |
# Resources
|
| 170 |
- [InstantX/FLUX.1-dev-IP-Adapter](https://huggingface.co/InstantX/FLUX.1-dev-IP-Adapter)
|
| 171 |
- [InstantX/FLUX.1-dev-Controlnet-Canny](https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Canny)
|
|
|
|
| 157 |
|
| 158 |
See `fp8_inference_example.py` for a complete example.
|
| 159 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
# Resources
|
| 161 |
- [InstantX/FLUX.1-dev-IP-Adapter](https://huggingface.co/InstantX/FLUX.1-dev-IP-Adapter)
|
| 162 |
- [InstantX/FLUX.1-dev-Controlnet-Canny](https://huggingface.co/InstantX/FLUX.1-dev-Controlnet-Canny)
|