privacysandbox/topics-android

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮

Closed this issue · 0 comments

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ H:\AI video\t2v0\Text2Video-Zero\app.py:14 in │
│ │
│ 11 import os │
│ 12 │
│ 13 on_huggingspace = os.environ.get("SPACE_AUTHOR_NAME") == "PAIR" │
│ ❱ 14 model = Model(device='cuda', dtype=torch.float16) │
│ 15 parser = argparse.ArgumentParser() │
│ 16 parser.add_argument('--public_access', action='store_true', │
│ 17 │ │ │ │ │ help="if enabled, the app can be access from a public url", default= │
│ │
│ H:\AI video\t2v0\Text2Video-Zero\model.py:27 in init
│ │
│ 24 │ def init(self, device, dtype, **kwargs): │
│ 25 │ │ self.device = device │
│ 26 │ │ self.dtype = dtype │
│ ❱ 27 │ │ self.generator = torch.Generator(device=device) │
│ 28 │ │ self.pipe_dict = { │
│ 29 │ │ │ ModelType.Pix2Pix_Video: StableDiffusionInstructPix2PixPipeline, │
│ 30 │ │ │ ModelType.Text2Video: TextToVideoPipeline, │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: Device type CUDA is not supported for torch.Generator() api.

worked fine before, not sure whats changed, tried reinstalling torch but didn't help

オリジナルは @Cubey42Picsart-AI-Research/Text2Video-Zero#25 にポスト