ERROR: ' ASGD is already registered in optimizer at torch.optim.asgd ' #1594
Unanswered
Alhanoufalsenan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
mmengine worked with my code but now it shows me this message ''ASGD is already registered in optimizer at torch.optim.asgd''.
So, please can someone advise me how to fix this problem.
KeyError Traceback (most recent call last)
in <cell line: 4>()
2 from torchvision.models.segmentation import deeplabv3_resnet50
3 import torch.nn.functional as F
----> 4 from mmengine.model import BaseModel
5
6
8 frames
/content/drive/MyDrive/001students/AlhanoufPHD/Weekly_Meeting/mmengine/mmengine/registry/registry.py in _register_module(self, module, module_name, force)
609 if not force and name in self._module_dict:
610 existed_module = self.module_dict[name]
--> 611 raise KeyError(f'{name} is already registered in {self.name} '
612 f'at {existed_module.module}')
613 self._module_dict[name] = module
KeyError: 'ASGD is already registered in optimizer at torch.optim.asgd'
Beta Was this translation helpful? Give feedback.
All reactions