Open lewisxiaoxu opened 3 years ago
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'
how to deal with please
Using the below structure in the config file would resolve this optimizer:
name:sgd
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'