当前位置:网站首页>batchnorm. Py this file single GPU operation error solution
batchnorm. Py this file single GPU operation error solution
2022-07-05 01:26:00 【Zi Yan Ruoshui】
The original
if self.training and self.track_running_stats:
self.num_batches_tracked = self.num_batches_tracked + 1
if self.momentum is None: # use cumulative moving average
exponential_average_factor = 1.0 / self.num_batches_tracked.item()
else: # use exponential moving average
exponential_average_factor = self.momentum
need_sync = self.training or not self.track_running_stats
if need_sync:
process_group = torch.distributed.group.WORLD
if self.process_group:
process_group = self.process_group
world_size = torch.distributed.get_world_size(process_group)
need_sync = world_size > 1Modify file :/home/ubuntu/venvs/venv/lib/python3.6/site-packages/torch/nn/modules/batchnorm.py
(venv) [email protected]:~/code/ICDAR2021_MFD$ python tools/train.py configs/gfl/gfl_s50_fpn_2x_coco.py --gpus 1 --work-dir /home/ubuntu/data
Traceback (most recent call last):
File "tools/train.py", line 8, in <module>
import mmcv
File "/home/ubuntu/venvs/venv/lib/python3.6/site-packages/mmcv/__init__.py", line 4, in <module>
from .fileio import *
File "/home/ubuntu/venvs/venv/lib/python3.6/site-packages/mmcv/fileio/__init__.py", line 4, in <module>
from .io import dump, load, register_handler
File "/home/ubuntu/venvs/venv/lib/python3.6/site-packages/mmcv/fileio/io.py", line 4, in <module>
from ..utils import is_list_of, is_str
File "/home/ubuntu/venvs/venv/lib/python3.6/site-packages/mmcv/utils/__init__.py", line 19, in <module>
import torch
File "/home/ubuntu/venvs/venv/lib/python3.6/site-packages/torch/__init__.py", line 448, in <module>
from .functional import *
File "/home/ubuntu/venvs/venv/lib/python3.6/site-packages/torch/functional.py", line 4, in <module>
import torch.nn.functional as F
File "/home/ubuntu/venvs/venv/lib/python3.6/site-packages/torch/nn/__init__.py", line 1, in <module>
from .modules import *
File "/home/ubuntu/venvs/venv/lib/python3.6/site-packages/torch/nn/modules/__init__.py", line 17, in <module>
from .batchnorm import BatchNorm1d, BatchNorm2d, BatchNorm3d, SyncBatchNorm
File "/home/ubuntu/venvs/venv/lib/python3.6/site-packages/torch/nn/modules/batchnorm.py", line 489
need_sync = False
边栏推荐
- [pure tone hearing test] pure tone hearing test system based on MATLAB
- 无心剑英译席慕容《无怨的青春》
- 视频网站手绘
- 潘多拉 IOT 开发板学习(RT-Thread)—— 实验4 蜂鸣器+马达实验【按键外部中断】(学习笔记)
- Research Report on the overall scale, major producers, major regions, products and application segmentation of agricultural automatic steering system in the global market in 2022
- Database postragesq role membership
- Chia Tai International Futures: what is the master account and how to open it?
- node工程中package.json文件作用是什么?里面的^尖括号和~波浪号是什么意思?
- 微信小程序:星宿UI V1.5 wordpress系统资讯资源博客下载小程序微信QQ双端源码支持wordpress二级分类 加载动画优化
- How to use words to describe breaking change in Spartacus UI of SAP e-commerce cloud
猜你喜欢

流批一体在京东的探索与实践

Expose testing outsourcing companies. You may have heard such a voice about outsourcing

Wechat applet; Gibberish generator

FEG founder rox:smartdefi will be the benchmark of the entire decentralized financial market

Basic operations of database and table ----- delete index

Wechat applet: independent background with distribution function, Yuelao office blind box for making friends

Nebula importer data import practice
![[development of large e-commerce projects] performance pressure test - Performance Monitoring - heap memory and garbage collection -39](/img/60/d5951ffb4cc271d2e7a3add9293f23.png)
[development of large e-commerce projects] performance pressure test - Performance Monitoring - heap memory and garbage collection -39

小程序直播 + 电商,想做新零售电商就用它吧!

There is a new Post-00 exam king in the testing department. I really can't do it in my old age. I have
随机推荐
JS implementation determines whether the point is within the polygon range
Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and mobile phones can also easily read literature
Expansion operator: the family is so separated
【CTF】AWDP总结(Web)
Classification of performance tests (learning summary)
Delaying wages to force people to leave, and the layoffs of small Internet companies are a little too much!
Wechat applet: Xingxiu UI v1.5 WordPress system information resources blog download applet wechat QQ dual end source code support WordPress secondary classification loading animation optimization
Maximum number of "balloons"
Innovation leads the direction. Huawei Smart Life launches new products in the whole scene
Roads and routes -- dfs+topsort+dijkstra+ mapping
【海浪建模3】三维随机真实海浪建模以及海浪发电机建模matlab仿真
无心剑英译席慕容《无怨的青春》
If the consumer Internet is compared to a "Lake", the industrial Internet is a vast "ocean"
Remote control service
Global and Chinese markets for industrial X-ray testing equipment 2022-2028: Research Report on technology, participants, trends, market size and share
C basic knowledge review (Part 3 of 4)
Database postragesql client connection default
[wave modeling 2] three dimensional wave modeling and wave generator modeling matlab simulation
How to use words to describe breaking change in Spartacus UI of SAP e-commerce cloud
Poap: the adoption entrance of NFT?