First make sure your system and apt package list are fully updated:
apt-get update -y
apt-get upgrade -y
Download git:
apt-get install git
Download the source code from github:
git clone https://github.com/rainarch/DSNER.git
Change cpu to gpu:
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
Install Nvidia driver: