Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Gaojunyao
/
CharacterShot

Image-to-Video
Diffusers
Safetensors
CogVideoXImageToVideo4DPipeline
character-animation
4d
Model card Files Files and versions
xet
Community
1

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
CharacterShot
Ctrl+K
Ctrl+K
  • 2 contributors
History: 39 commits
nielsr's picture
nielsr HF Staff
Improve model card: add metadata, library name, and paper/code links
af602e4 verified 5 months ago
  • camera_embs
    Upload folder using huggingface_hub 11 months ago
  • scheduler
    Upload folder using huggingface_hub 11 months ago
  • text_encoder
    Delete text_encoder/.ipynb_checkpoints 11 months ago
  • tokenizer
    Upload folder using huggingface_hub 11 months ago
  • transformer
    Delete transformer/.ipynb_checkpoints 11 months ago
  • vae
    Upload folder using huggingface_hub 11 months ago
  • .gitattributes
    1.52 kB
    Update .gitattributes 11 months ago
  • README.md
    1.65 kB
    Improve model card: add metadata, library name, and paper/code links 5 months ago
  • camera_guider.pt

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2"

    What is a pickle import?

    854 kB
    xet
    Upload camera_guider.pt with huggingface_hub 11 months ago
  • model_index.json
    425 Bytes
    Upload folder using huggingface_hub 11 months ago