Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'name' #259

Open
lewisxiaoxu opened this issue Jun 15, 2021 · 2 comments
Open

KeyError: 'name' #259

lewisxiaoxu opened this issue Jun 15, 2021 · 2 comments

Comments

@lewisxiaoxu
Copy link

Traceback (most recent call last):
File "E:/Semantic Segmentation/pytorch-semseg-master/train.py", line 229, in
train(cfg, writer, logger)
File "E:/Semantic Segmentation/pytorch-semseg-master/train.py", line 80, in train
optimizer_cls = get_optimizer(cfg)
File "E:\Semantic Segmentation\pytorch-semseg-master\ptsemseg\optimizers_init_.py", line 24, in get_optimizer
opt_name = cfg["training"]["optimizer"]["name"]
KeyError: 'name'

@lewisxiaoxu
Copy link
Author

how to deal with please

@sudarshan1994
Copy link

sudarshan1994 commented Jul 3, 2021

Using the below structure in the config file would resolve this
optimizer:

name:sgd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants