Instructions to use AEmotionStudio/kiwi-edit-instruct-reference with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AEmotionStudio/kiwi-edit-instruct-reference with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AEmotionStudio/kiwi-edit-instruct-reference", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
fix: revert _class_name to array format for custom pipeline loading
Browse files- model_index.json +5 -3
model_index.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"_class_name":
|
|
|
|
|
|
|
|
|
|
| 3 |
"_diffusers_version": "0.32.0",
|
| 4 |
"processor": [
|
| 5 |
"transformers",
|
|
@@ -28,6 +31,5 @@
|
|
| 28 |
"ref_embedder": [
|
| 29 |
"conditional_embedder",
|
| 30 |
"ConditionalEmbedder"
|
| 31 |
-
]
|
| 32 |
-
"_custom_pipeline": "pipeline_kiwi_edit"
|
| 33 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": [
|
| 3 |
+
"pipeline_kiwi_edit",
|
| 4 |
+
"KiwiEditPipeline"
|
| 5 |
+
],
|
| 6 |
"_diffusers_version": "0.32.0",
|
| 7 |
"processor": [
|
| 8 |
"transformers",
|
|
|
|
| 31 |
"ref_embedder": [
|
| 32 |
"conditional_embedder",
|
| 33 |
"ConditionalEmbedder"
|
| 34 |
+
]
|
|
|
|
| 35 |
}
|