Instructions to use Gaojunyao/CharacterShot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Gaojunyao/CharacterShot 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("Gaojunyao/CharacterShot", 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
Delete .ipynb_checkpoints
Browse files
.ipynb_checkpoints/model_index-checkpoint.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_class_name": "CogVideoXImageToVideo4DPipeline",
|
| 3 |
-
"_diffusers_version": "0.33.0.dev0",
|
| 4 |
-
"scheduler": [
|
| 5 |
-
"diffusers",
|
| 6 |
-
"CogVideoXDDIMScheduler"
|
| 7 |
-
],
|
| 8 |
-
"text_encoder": [
|
| 9 |
-
"transformers",
|
| 10 |
-
"T5EncoderModel"
|
| 11 |
-
],
|
| 12 |
-
"tokenizer": [
|
| 13 |
-
"transformers",
|
| 14 |
-
"T5Tokenizer"
|
| 15 |
-
],
|
| 16 |
-
"transformer": [
|
| 17 |
-
"diffusers",
|
| 18 |
-
"CogVideoXTransformer4DModel"
|
| 19 |
-
],
|
| 20 |
-
"vae": [
|
| 21 |
-
"diffusers",
|
| 22 |
-
"AutoencoderKLCogVideoX"
|
| 23 |
-
]
|
| 24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|