当前位置:网站首页>pytorch Default process group is not initialized
pytorch Default process group is not initialized
2022-06-27 06:48:00 【AI vision netqi】
Report errors :Default process group is not initialized
Error code ,yolov5 No error during training , Wrong parameter configuration ,
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:
边栏推荐
- Proxy reflect usage details
- 论文阅读技巧
- Cloud-Native Database Systems at Alibaba: Opportunities and Challenges
- 2018年数学建模竞赛-高温作业专用服装设计
- Caldera安装及简单使用
- Basic SQL operations in tidb
- 面试官:用分库分表如何做到永不迁移数据和避免热点问题?
- 2022 CISP-PTE(二)SQL注入
- Altium designer 19 device silk screen label position shall be placed uniformly in batches
- ORA-00909: 参数个数无效,concat引起
猜你喜欢
面试官:你天天用 Lombok,说说它什么原理?我竟然答不上来…
线程间等待与唤醒机制、单例模式、阻塞队列、定时器
面试官:请你介绍一下缓存穿透、缓存空值、缓存雪崩、缓存击穿的,通俗易懂
Mathematical modeling contest for graduate students - optimal application of UAV in rescue and disaster relief
如何优雅的写 Controller 层代码?
Quick personal site building guide using WordPress
快速实现单片机和手机蓝牙通信
Caldera installation and simple use
浅谈GPU:历史发展,架构
主动学习(active learning)
随机推荐
ORA-00909: 参数个数无效,concat引起
研究生数学建模竞赛-无人机在抢险救灾中的优化应用
Instance Tunnel 使用
Active learning
Redis cache penetration, cache breakdown, cache avalanche
Currying Scala functions
快速实现蓝牙iBeacn功能详解
POI replacing text and pictures in docx
Assembly language - Wang Shuang Chapter 9 Principles of transfer instructions - Notes
Configuration of vscode korofileheader
Ora-00909: invalid number of parameters, caused by concat
网关状态检测 echo request/reply
Classical cryptosystem -- substitution and replacement
【OpenAirInterface5g】RRC NR解析之RrcSetupComplete
Matlab GUI interface simulation DC motor and AC motor speed simulation
EasyExcel:读取Excel数据到List集合中
Visual Studio VS 快捷键使用大全
Compatibility comparison between tidb and MySQL
Redis 缓存穿透、缓存击穿、缓存雪崩
2018 mathematical modeling competition - special clothing design for high temperature operation