Run on MaC M1

#30
by Pechimuthu - opened

How we can run this with mac M1 laptop.

    video_frames = pipe(prompt, num_inference_steps=25, num_frames=200).frames
  File "/Users/pechi/Library/CloudStorage/OneDrive-Personal/ml_experiements/env/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/Users/pechi/Library/CloudStorage/OneDrive-Personal/ml_experiements/env/lib/python3.9/site-packages/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py", line 557, in __call__
    prompt_embeds = self._encode_prompt(
  File "/Users/pechi/Library/CloudStorage/OneDrive-Personal/ml_experiements/env/lib/python3.9/site-packages/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py", line 256, in _encode_prompt
    text_input_ids.to(device),
  File "/Users/pechi/Library/CloudStorage/OneDrive-Personal/ml_experiements/env/lib/python3.9/site-packages/torch/cuda/__init__.py", line 239, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled```

这个错误是因为正在尝试在没有CUDA支持的PyTorch安装中使用CUDA。CUDA是NVIDIA开发的一种技术,它让你可以直接利用图形处理器(GPU)的计算能力。在深度学习中,使用CUDA可以极大地加速模型的训练和推理。
推荐Colab运行

Sign up or log in to comment