gpt4 book ai didi

How to run .py file in colab?(如何在CoLab中运行.py文件?)

转载 作者:bug小助手 更新时间:2023-10-28 21:19:57 25 4
gpt4 key购买 nike



I wanna run this code from github (https://github.com/princeton-vl/DROID-SLAM/tree/main) in google colab, but when i follow the instuction in the google colab it has an error:

我想从谷歌CoLab中的giHub(https://github.com/princeton-vl/DROID-SLAM/tree/main)运行这段代码,但当我按照谷歌CoLab中的指令操作时,它出现错误:


in this line:

在这一行中:


python setup.py install

Python setup.py安装


it has this error:

它有这样的错误:


No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'

未找到CUDA运行时,使用CUDA_HOME=‘/usr/local/cuda’


what should i do?

我该怎么办?


i tried too many times but it didnt work

我试了太多次,但都不管用


更多回答

You need to enable GPU in your runtime. Go to Runtime on the top left bar then Change runtime type and then select T4 GPU to get CUDA access.

您需要在运行时启用GPU。转到左上栏的Runtime,然后更改运行时类型,然后选择T4 GPU以获得CUDA访问权限。

优秀答案推荐
更多回答

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com