当前位置:网站首页>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 > 1
Modify 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
边栏推荐
- To sort out messy header files, I use include what you use
- 无心剑英译席慕容《无怨的青春》
- [FPGA tutorial case 10] design and implementation of complex multiplier based on Verilog
- JS implementation determines whether the point is within the polygon range
- [FPGA tutorial case 9] design and implementation of clock manager based on vivado core
- [untitled]
- [wave modeling 2] three dimensional wave modeling and wave generator modeling matlab simulation
- 無心劍英譯席慕容《無怨的青春》
- [wave modeling 1] theoretical analysis and MATLAB simulation of wave modeling
- Playwright recording
猜你喜欢
Redis(1)之Redis简介
微信小程序:全网独家小程序版本独立微信社群人脉
dotnet-exec 0.6.0 released
Yyds dry goods inventory [Gan Di's one week summary: the most complete and detailed in the whole network]; detailed explanation of MySQL index data structure and index optimization; remember collectio
26.2 billion! These universities in Guangdong Province have received heavy support
小程序直播 + 电商,想做新零售电商就用它吧!
JS implementation determines whether the point is within the polygon range
【CTF】AWDP总结(Web)
[wave modeling 1] theoretical analysis and MATLAB simulation of wave modeling
Playwright recording
随机推荐
Detailed explanation of multi-mode input event distribution mechanism
Async/await you can use it, but do you know how to deal with errors?
Complex, complicated and numerous: illustration of seven types of code coupling
Wechat applet; Gibberish generator
[wave modeling 3] three dimensional random real wave modeling and wave generator modeling matlab simulation
107. Some details of SAP ui5 overflow toolbar container control and resize event processing
Yyds dry goods inventory [Gan Di's one week summary: the most complete and detailed in the whole network]; detailed explanation of MySQL index data structure and index optimization; remember collectio
There is a new Post-00 exam king in the testing department. I really can't do it in my old age. I have
Global and Chinese market of veterinary thermometers 2022-2028: Research Report on technology, participants, trends, market size and share
Wechat applet: exclusive applet version of the whole network, independent wechat community contacts
微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
Database postragesql client connection default
A simple SSO unified login design
If the consumer Internet is compared to a "Lake", the industrial Internet is a vast "ocean"
Implementation steps of master detail detail layout mode of SAP ui5 application
Roads and routes -- dfs+topsort+dijkstra+ mapping
FEG founder rox:smartdefi will be the benchmark of the entire decentralized financial market
Global and Chinese market of optical densitometers 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of portable CNC cutting machines 2022-2028: Research Report on technology, participants, trends, market size and share
Express routing, express middleware, using express write interface