Text2Video-Zero icon indicating copy to clipboard operation
Text2Video-Zero copied to clipboard

AssertionError: Torch not compiled with CUDA enabled

Open xspace-solution opened this issue 1 year ago • 1 comments

I wrote simple code to generate video.

import torch
from model import Model

model = Model(device = "cuda", dtype = torch.float16)

prompt = "A horse galloping on a street"
params = {"t0": 44, "t1": 47 , "motion_field_strength_x" : 12, "motion_field_strength_y" : 12, "video_length": 8}

out_path, fps = f"./text2video_{prompt.replace(' ','_')}.mp4", 4
model.process_text2video(prompt, fps = fps, path = out_path, **params)

But I am getting this issue after I run the script. AssertionError: Torch not compiled with CUDA enabled

xspace-solution avatar Jun 06 '24 11:06 xspace-solution

Hi!

Did you set up the project according to the instructions provided?

ghost avatar Jun 16 '24 21:06 ghost