You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is as follows:
Traceback (most recent call last):
File "tools/train.py", line 243, in
run_train_cmd(args)
File "tools/train.py", line 231, in run_train_cmd
train_detector(
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmocr/apis/train.py", line 155, in train_detector
runner.run(data_loaders, cfg.workflow)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 130, in run
epoch_runner(data_loaders[i], **kwargs)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 52, in train
self.call_hook('after_train_iter')
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmcv/runner/base_runner.py", line 309, in call_hook
getattr(hook, fn_name)(self)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmcv/runner/hooks/optimizer.py", line 64, in after_train_iter
runner.optimizer.step()
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/torch/optim/optimizer.py", line 88, in wrapper
return func(*args, **kwargs)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/torch/optim/sgd.py", line 120, in step
momentum = group['momentum']
KeyError: 'momentum'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The error is as follows:
Traceback (most recent call last):
File "tools/train.py", line 243, in
run_train_cmd(args)
File "tools/train.py", line 231, in run_train_cmd
train_detector(
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmocr/apis/train.py", line 155, in train_detector
runner.run(data_loaders, cfg.workflow)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 130, in run
epoch_runner(data_loaders[i], **kwargs)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 52, in train
self.call_hook('after_train_iter')
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmcv/runner/base_runner.py", line 309, in call_hook
getattr(hook, fn_name)(self)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/mmcv/runner/hooks/optimizer.py", line 64, in after_train_iter
runner.optimizer.step()
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/torch/optim/optimizer.py", line 88, in wrapper
return func(*args, **kwargs)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "/home/Anaconda/anaconda3/envs/metacv/lib/python3.8/site-packages/torch/optim/sgd.py", line 120, in step
momentum = group['momentum']
KeyError: 'momentum'
Beta Was this translation helpful? Give feedback.
All reactions