Instructions to use glif-loradex-trainer/an303042_ThenAndNow_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use glif-loradex-trainer/an303042_ThenAndNow_v1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("glif-loradex-trainer/an303042_ThenAndNow_v1") prompt = "Then-and-now: A black-and-white illustration of a wounded centaur, a mythical creature from ancient lore, is held up in front of a modern park scene, aligned with a wooded area in the background. In the foreground, the centaur is depicted limping, arrows embedded in its side, with a look of pain on its face. The background, in color, shows the same spot now peaceful and green, with people jogging and children playing, emphasizing the transformation from mythical battles to everyday tranquility" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Ctrl+K
- 121 kB
- 166 kB
- 79.1 kB
- 167 kB
- 126 kB
- 118 kB
- 159 kB
- 227 kB
- 87.6 kB
- 163 kB
- 154 kB
- 187 kB
- 203 kB
- 219 kB
- 90.2 kB
- 160 kB
- 155 kB
- 198 kB
- 250 kB
- 240 kB
- 90.1 kB
- 189 kB
- 169 kB
- 220 kB
- 220 kB
- 218 kB
- 97.5 kB
- 190 kB
- 149 kB
- 205 kB
- 203 kB
- 226 kB
- 92.8 kB
- 187 kB
- 159 kB
- 204 kB
- 216 kB
- 192 kB
- 98.7 kB
- 179 kB
- 157 kB
- 205 kB