Closed kadirnar closed 5 months ago
Inference Code:
from tuneavideo.pipelines.pipeline_tuneavideo import TuneAVideoPipeline from tuneavideo.models.unet import UNet3DConditionModel from tuneavideo.util import save_videos_grid import torch model_id = "Tune-A-Video-library/a-man-is-surfing" unet = UNet3DConditionModel.from_pretrained(model_id, subfolder='unet', torch_dtype=torch.float16).to('cuda') pipe = TuneAVideoPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", unet=unet, torch_dtype=torch.float16).to("cuda") prompt = "a panda is surfing" video = pipe(prompt, video_length=4, height=224, width=224, num_inference_steps=50, guidance_scale=7.5).videos save_videos_grid(video, f"{prompt}.gif")
Output:
FileNotFoundError: [Errno 2] No such file or directory: ''
I resolved this error by adding the save_path parameter to the save_video_grid function.
save_path
save_video_grid
Inference Code:
Output:
I resolved this error by adding the
save_path
parameter to thesave_video_grid
function.