训练如何选择GPU,设置GPU个数
CUDA_VISIBLE_DEVICES=1 python run.py
or
import os
os.environ["CUDA_VISIBLE_DEVICES"]="1"
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/
CUDA_VISIBLE_DEVICES=1 python run.py
or
import os
os.environ["CUDA_VISIBLE_DEVICES"]="1"