Instructions to use diffusers-test/test2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers-test/test2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers-test/test2", 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 feature_extractor/preprocessor_config.json
Browse files
feature_extractor/preprocessor_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"crop_size": {
|
| 3 |
-
"height":
|
| 4 |
-
"width":
|
| 5 |
},
|
| 6 |
"do_center_crop": true,
|
| 7 |
"do_convert_rgb": true,
|
|
@@ -23,6 +23,6 @@
|
|
| 23 |
"resample": 3,
|
| 24 |
"rescale_factor": 0.00392156862745098,
|
| 25 |
"size": {
|
| 26 |
-
"shortest_edge":
|
| 27 |
}
|
| 28 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"crop_size": {
|
| 3 |
+
"height": 512,
|
| 4 |
+
"width": 512
|
| 5 |
},
|
| 6 |
"do_center_crop": true,
|
| 7 |
"do_convert_rgb": true,
|
|
|
|
| 23 |
"resample": 3,
|
| 24 |
"rescale_factor": 0.00392156862745098,
|
| 25 |
"size": {
|
| 26 |
+
"shortest_edge": 512
|
| 27 |
}
|
| 28 |
}
|