Instructions to use hf-internal-testing/tiny-stable-diffusion-pipe-variants-right-format with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hf-internal-testing/tiny-stable-diffusion-pipe-variants-right-format with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("hf-internal-testing/tiny-stable-diffusion-pipe-variants-right-format", 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
Replacing deprecated `CLIPFeatureExtractor` for `CLIPImageProcessor`
Browse filesRemoving warnings as part of [Comprehensive type checking for `from_pretrained` kwargs](https://github.com/huggingface/diffusers/pull/10758)
feature_extractor/preprocessor_config.json
CHANGED
|
@@ -8,13 +8,13 @@
|
|
| 8 |
"do_normalize": true,
|
| 9 |
"do_rescale": true,
|
| 10 |
"do_resize": true,
|
| 11 |
-
"feature_extractor_type": "
|
| 12 |
"image_mean": [
|
| 13 |
0.48145466,
|
| 14 |
0.4578275,
|
| 15 |
0.40821073
|
| 16 |
],
|
| 17 |
-
"image_processor_type": "
|
| 18 |
"image_std": [
|
| 19 |
0.26862954,
|
| 20 |
0.26130258,
|
|
|
|
| 8 |
"do_normalize": true,
|
| 9 |
"do_rescale": true,
|
| 10 |
"do_resize": true,
|
| 11 |
+
"feature_extractor_type": "CLIPImageProcessor",
|
| 12 |
"image_mean": [
|
| 13 |
0.48145466,
|
| 14 |
0.4578275,
|
| 15 |
0.40821073
|
| 16 |
],
|
| 17 |
+
"image_processor_type": "CLIPImageProcessor",
|
| 18 |
"image_std": [
|
| 19 |
0.26862954,
|
| 20 |
0.26130258,
|