privacysandbox / topics-android

Apache License 2.0
33 stars 10 forks source link

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

Closed Shi8ho11 closed 2 months ago

Shi8ho11 commented 1 year ago

╭─────────────────────────────── 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

オリジナルは @Cubey42 が https://github.com/Picsart-AI-Research/Text2Video-Zero/issues/25 にポスト