Instructions to use hf-internal-testing/tiny-pika-h3-flex-modular-pipe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hf-internal-testing/tiny-pika-h3-flex-modular-pipe 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-pika-h3-flex-modular-pipe", 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
Use MiniMaxH3Scheduler with stochastic sampling for the two schedulers
#2
by YiYiXu HF Staff - opened
audio_scheduler/scheduler_config.json
CHANGED
|
@@ -1,14 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"_class_name": "
|
| 3 |
"_diffusers_version": "0.42.0.dev0",
|
| 4 |
"shift": 3.0,
|
| 5 |
-
"
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
500,
|
| 9 |
-
250,
|
| 10 |
-
100,
|
| 11 |
-
40,
|
| 12 |
-
0
|
| 13 |
-
]
|
| 14 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": "MiniMaxH3Scheduler",
|
| 3 |
"_diffusers_version": "0.42.0.dev0",
|
| 4 |
"shift": 3.0,
|
| 5 |
+
"shift_provided_sigmas": true,
|
| 6 |
+
"stochastic_sampling": true
|
| 7 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modular_model_index.json
CHANGED
|
@@ -102,11 +102,11 @@
|
|
| 102 |
],
|
| 103 |
"scheduler": [
|
| 104 |
"diffusers",
|
| 105 |
-
"
|
| 106 |
{
|
| 107 |
"type_hint": [
|
| 108 |
"diffusers",
|
| 109 |
-
"
|
| 110 |
],
|
| 111 |
"pretrained_model_name_or_path": "hf-internal-testing/tiny-pika-h3-flex-modular-pipe",
|
| 112 |
"subfolder": "scheduler",
|
|
@@ -116,11 +116,11 @@
|
|
| 116 |
],
|
| 117 |
"audio_scheduler": [
|
| 118 |
"diffusers",
|
| 119 |
-
"
|
| 120 |
{
|
| 121 |
"type_hint": [
|
| 122 |
"diffusers",
|
| 123 |
-
"
|
| 124 |
],
|
| 125 |
"pretrained_model_name_or_path": "hf-internal-testing/tiny-pika-h3-flex-modular-pipe",
|
| 126 |
"subfolder": "audio_scheduler",
|
|
|
|
| 102 |
],
|
| 103 |
"scheduler": [
|
| 104 |
"diffusers",
|
| 105 |
+
"MiniMaxH3Scheduler",
|
| 106 |
{
|
| 107 |
"type_hint": [
|
| 108 |
"diffusers",
|
| 109 |
+
"MiniMaxH3Scheduler"
|
| 110 |
],
|
| 111 |
"pretrained_model_name_or_path": "hf-internal-testing/tiny-pika-h3-flex-modular-pipe",
|
| 112 |
"subfolder": "scheduler",
|
|
|
|
| 116 |
],
|
| 117 |
"audio_scheduler": [
|
| 118 |
"diffusers",
|
| 119 |
+
"MiniMaxH3Scheduler",
|
| 120 |
{
|
| 121 |
"type_hint": [
|
| 122 |
"diffusers",
|
| 123 |
+
"MiniMaxH3Scheduler"
|
| 124 |
],
|
| 125 |
"pretrained_model_name_or_path": "hf-internal-testing/tiny-pika-h3-flex-modular-pipe",
|
| 126 |
"subfolder": "audio_scheduler",
|
scheduler/scheduler_config.json
CHANGED
|
@@ -1,14 +1,7 @@
|
|
| 1 |
{
|
| 2 |
-
"_class_name": "
|
| 3 |
"_diffusers_version": "0.42.0.dev0",
|
| 4 |
"shift": 12.0,
|
| 5 |
-
"
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
500,
|
| 9 |
-
250,
|
| 10 |
-
100,
|
| 11 |
-
40,
|
| 12 |
-
0
|
| 13 |
-
]
|
| 14 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": "MiniMaxH3Scheduler",
|
| 3 |
"_diffusers_version": "0.42.0.dev0",
|
| 4 |
"shift": 12.0,
|
| 5 |
+
"shift_provided_sigmas": true,
|
| 6 |
+
"stochastic_sampling": true
|
| 7 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|