Warning:optimizer contains a parameter group with duplicate parameters
Closed this issue · 1 comments
yuheyuan commented
I follow you code, and train a model. But it results may not meet the need.
I eval the model you share .
bash shells/eval_syn2city.sh
your share model.
in syn2city : 19 classes : meanIout: 0.4771
I train the model:
in syn2city : 19 classes : meanIout: only: 0.46.7
in the train. I find the warning, So I want to know if it may cause the result drop.
/home/ailab/anaconda3/envs/yy_CORDA/lib/python3.7/site-packages/torch/optim/sgd.py:68: UserWarning: optimizer contains a parameter group with duplicate parameters; in future, this will cause an error; see github.com/pytorch/pytorch/issues/40967 for more information
super(SGD, self).__init__(params, defaults)
D_init tensor(134.8489, device='cuda:0', grad_fn=<DivBackward0>) D tensor(134.5171, device='cuda:0', grad_fn=<DivBackward0>)