当前位置:网站首页>Pytorch training deep learning network settings CUDA specified GPU visible
Pytorch training deep learning network settings CUDA specified GPU visible
2022-07-01 03:33:00 【It's seventh uncle】
cuda designated GPU so
- The original training command is :
python train.py --config config/pascal/pascal_split0_resnet50.yaml, But it will use GPU All graphics cards on - Want to use the specified graphics card to train , Can be in their own python preorder :
CUDA_VISIBLE_DEVICES=0,1, here 0,1 It's your own graphics card number CUDA_VISIBLE_DEVICES=0,1 python train.pyYou can use two cards 0,1 Normal training
!!! Note that there CUDA_VISIBLE_DEVICES=0,1, here CUDA_VISIBLE_DEVICES、 Equal sign and 0,1 There must be no space between them , Otherwise it will warn :WARNING:root:could not open file '/etc/apt/sources.list.d, And report an error
边栏推荐
猜你喜欢

Pyramid Scene Parsing Network【PSPNet】论文阅读

Depth first traversal of C implementation Diagram -- non recursive code

Introduction and installation of Solr

Avalanche problem and the use of sentinel

TEC: Knowledge Graph Embedding with Triple Context

过滤器 Filter

How to achieve 0 error (s) and 0 warning (s) in keil5

5、【WebGIS实战】软件操作篇——服务发布及权限管理
Common interview questions for performance test

Analyze datahub, a new generation metadata platform of 4.7K star
随机推荐
gcc使用、Makefile总结
Include() of array
EtherCAT原理概述
伺服第二编码器数值链接到倍福PLC的NC虚拟轴做显示
数组的includes( )
岭回归和lasso回归
FCN全卷積網絡理解及代碼實現(來自pytorch官方實現)
ASGNet论文和代码解读2
C # realize solving the shortest path of unauthorized graph based on breadth first BFS -- complete program display
torch. histc
Latest interface automation interview questions
Redis tutorial
How to achieve 0 error (s) and 0 warning (s) in keil5
ECMAScript 6.0
Let's just say I can use thousands of expression packs
Analyze datahub, a new generation metadata platform of 4.7K star
手把手带你了解一块电路板,从设计到制作(干货)
Leetcode 128 longest continuous sequence (hash set)
Force buckle - sum of two numbers
Promise中finally的用法