当前位置:网站首页>pytorch Default process group is not initialized
pytorch Default process group is not initialized
2022-06-27 06:32:00 【AI视觉网奇】
报错:Default process group is not initialized
报错代码,yolov5训练时不报错, 参数配置错了,
with torch_distributed_zero_first(rank):
dataset = LoadImagesAndLabels(path, imgsz, batch_size, augment=augment, # augment images
hyp=hyp, # augmentation hyperparameters
rect=rect, # rectangular training
cache_images=cache, single_cls=opt.single_cls, stride=int(stride), pad=pad, image_weights=image_weights, prefix=prefix,data_type=data_type)
@contextmanager
def torch_distributed_zero_first(local_rank: int):
"""
Decorator to make all processes in distributed training wait for each local_master to do something.
"""
if local_rank not in [-1, 0]:
torch.distributed.barrier()
yield
if local_rank == 0:
边栏推荐
- 研究生数学建模竞赛-无人机在抢险救灾中的优化应用
- Optimistic and pessimistic affairs
- Currying Scala functions
- On gpu: historical development and structure
- Partial function of Scala
- Centos7.9 install MySQL 5.7 and set startup
- 0.0.0.0:x的含义
- NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT
- Easyexcel: read Excel data into the list set
- Basic SQL operations in tidb
猜你喜欢

研究生数学建模竞赛-无人机在抢险救灾中的优化应用

JVM整体结构解析

Meaning of 0.0.0.0:x

LeetCode 0086. Separate linked list

卷积神经网络---CNN模型的应用(找矿预测)

网关状态检测 echo request/reply

426-二叉树(513.找树左下角的值、112. 路径总和、106.从中序与后序遍历序列构造二叉树、654. 最大二叉树)

POI replacing text and pictures in docx

Assembly language - Wang Shuang Chapter 11 flag register - Notes

Information System Project Manager - Chapter VII project cost management
随机推荐
NoViableAltException([email protected][2389:1: columnNameTypeOrConstraint : ( ( tableConstraint ) | ( columnNameT
Restrictions on the use of tidb
Inter thread wait and wake-up mechanism, singleton mode, blocking queue, timer
Scala advanced_ Member access modifier
Proxy-Reflect使用详解
解决 Win10 Wsl2 IP 变化问题
观测电机转速转矩
tar: /usr/local:归档中找不到tar: 由于前次错误,将以上次的错误状态退出
extendible hashing
TiDB 基本功能
Centos7.9 install MySQL 5.7 and set startup
LeetCode 0086. Separate linked list
主动学习(active learning)
vscode korofileheader 的配置
Maxcompute SQL 的查询结果条数受限1W
multiprocessing. Detailed explanation of pool
[QT] use structure data to generate read / write configuration file code
JVM common instructions
View functions in tidb
Modeling competition - optical transport network modeling and value evaluation