pytorch-semseg icon indicating copy to clipboard operation
pytorch-semseg copied to clipboard

KeyError: 'name'

Open lewisxiaoxu opened this issue 3 years ago • 2 comments

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 avatar Jun 15 '21 09:06 lewisxiaoxu

how to deal with please

lewisxiaoxu avatar Jun 15 '21 09:06 lewisxiaoxu

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

name:sgd

sudarshan1994 avatar Jul 03 '21 17:07 sudarshan1994