Google Colab Deforum在"Python 定义"中出现错误:FileNotFoundError:没有这样的文件或目录:'./externals/Next_ViT/classifica



你好,我是新来的google colab和我试图运行deforum(不在本地)。我过去已经成功地安装了Stable Diffusion并通过google colab运行它,但是在Python定义部分下的deforum笔记本中出现了这个错误。

Deforum链接,我使用

错误代码:

FileNotFoundError: [Errno 2] No such file or directory: './externals/Next_ViT/classification/nextvit.py'

我已经尝试将这些行添加到这里建议的环境设置中。

['git', 'clone', 'https://github.com/isl-org/MiDaS.git'],
['git', 'clone', 'https://github.com/bytedance/Next-ViT.git', 'externals/Next_ViT'],

但它没有工作。任何帮助将非常感激!谢谢!

你的代码中有一个路径问题。

进入/content/MiDas/midas/backbones/next_vit.py文件,编辑

file = open("./externals/Next_ViT/classification/nextvit.py","r")

file = open("/content/MiDas/midas/backbones/vit.py","r")

最新更新