Instructions to use glif/how2draw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use glif/how2draw 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/how2draw") prompt = "an owl, How3Draw" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Add generated example
#3
by nostrodamus - opened
- README.md +4 -0
- images/example_f03yqt02s.png +3 -0
README.md
CHANGED
|
@@ -28,9 +28,13 @@ widget:
|
|
| 28 |
- text: sunflower, How2Draw
|
| 29 |
output:
|
| 30 |
url: images/66863ebc-f465-439f-9eb3-a14c2c8ec947.jpg
|
|
|
|
|
|
|
|
|
|
| 31 |
base_model: black-forest-labs/FLUX.1-dev
|
| 32 |
instance_prompt: How2Draw
|
| 33 |
license: cc0-1.0
|
|
|
|
| 34 |
---
|
| 35 |
# How2Draw
|
| 36 |
|
|
|
|
| 28 |
- text: sunflower, How2Draw
|
| 29 |
output:
|
| 30 |
url: images/66863ebc-f465-439f-9eb3-a14c2c8ec947.jpg
|
| 31 |
+
- text: a raccoon, How2Draw 4 steps
|
| 32 |
+
output:
|
| 33 |
+
url: images/example_f03yqt02s.png
|
| 34 |
base_model: black-forest-labs/FLUX.1-dev
|
| 35 |
instance_prompt: How2Draw
|
| 36 |
license: cc0-1.0
|
| 37 |
+
|
| 38 |
---
|
| 39 |
# How2Draw
|
| 40 |
|
images/example_f03yqt02s.png
ADDED
|
Git LFS Details
|