Skip to content

StableVideoDiffusionPipeline cannot use from_single_file #6839

@Meatfucker

Description

@Meatfucker

Describe the bug

The StableVideoDiffusionPipeline cannot load models in any format other than diffusers, which is problematic as the latest StableVideoDiffusion model has only been released in safetensors. See: https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt-1-1

Reproduction

svd_pipe = StableVideoDiffusionPipeline.from_single_file("svdxt.safetensors", torch_dtype=torch.float16, variant="fp16")

Logs

Traceback (most recent call last):
  File "D:\ML\apps\svdeez\svdeez.py", line 170, in <module>
    svdeez = SvdeezGUI()
  File "D:\ML\apps\svdeez\svdeez.py", line 16, in __init__
    self.svd_pipe = StableVideoDiffusionPipeline.from_single_file("svdxt.safetensors", torch_dtype=torch.float16, variant="fp16")
AttributeError: type object 'StableVideoDiffusionPipeline' has no attribute 'from_single_file'

System Info

  • diffusers version: 0.26.1
  • Platform: Windows-10-10.0.19045-SP0
  • Python version: 3.10.13
  • PyTorch version (GPU?): 2.1.1 (True)
  • Huggingface_hub version: 0.20.3
  • Transformers version: 4.35.2
  • Accelerate version: 0.25.0
  • xFormers version: not installed
  • Using GPU in script?:
  • Using distributed or parallel set-up in script?:

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsingle_filestaleIssues that haven't received updates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions