当前位置:网站首页>pytorch训练深度学习网络设置cuda指定的GPU可见
pytorch训练深度学习网络设置cuda指定的GPU可见
2022-07-01 03:15:00 【是七叔呀】
cuda指定的GPU可见
- 原来的训练命令为:
python train.py --config config/pascal/pascal_split0_resnet50.yaml,但是会用到GPU上所有的显卡 - 想使用指定显卡训练,可以在自己的python命令前加上:
CUDA_VISIBLE_DEVICES=0,1,这里0,1是自己的显卡号 CUDA_VISIBLE_DEVICES=0,1 python train.py就可以用两张卡0,1正常训练了
!!!注意这里CUDA_VISIBLE_DEVICES=0,1,这里CUDA_VISIBLE_DEVICES、等号和0,1之间不能有空格,否则会警告:WARNING:root:could not open file '/etc/apt/sources.list.d,并报错
边栏推荐
- Split(), split(), slice(), can't you tell?
- Druid监控统计数据源
- How to achieve 0 error (s) and 0 warning (s) in keil5
- [machine learning] vectorized computing -- a must on the way of machine learning
- [exsi] transfer files between hosts
- split(),splice(),slice()傻傻分不清楚?
- md5sum操作
- Install vcenter6.7 [vcsa6.7 (vCenter server appliance 6.7)]
- Basic concepts of database
- Kmeans
猜你喜欢
随机推荐
Filter
VMware vSphere 6.7 virtualization cloud management 12. Vcsa6.7 update vCenter server license
实现pow(x,n)函数
EtherCAT简介
How to achieve 0 error (s) and 0 warning (s) in keil5
Huawei operator level router configuration example | BGP VPLS and LDP VPLS interworking example
Ultimate dolls 2.0 | encapsulation of cloud native delivery
Basic concepts of database
Hello World generation
Server rendering technology JSP
Cloud native annual technology inventory is released! Ride the wind and waves at the right time
The value of the second servo encoder is linked to the NC virtual axis of Beifu PLC for display
Detailed list of errors related to twincat3 ads of Beifu
[exsi] transfer files between hosts
排序链表(归并排序)
伺服第二编码器数值链接到倍福PLC的NC虚拟轴做显示
Listener listener
多元线性回归
Stop saying that you can't solve the "cross domain" problem
岭回归和lasso回归









