首先确保您的系统和apt包列表完全更新:
apt-get update -y
apt-get upgrade -y
下载git:
apt-get install git
从github上下载源代码:
git clone https://github.com/rainarch/DSNER.git
将cpu改成gpu:
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
安装Nvidia驱动:
首先确保您的系统和apt包列表完全更新:
apt-get update -y
apt-get upgrade -y
下载git:
apt-get install git
从github上下载源代码:
git clone https://github.com/rainarch/DSNER.git
将cpu改成gpu:
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
安装Nvidia驱动: