HRNet / HRNet-Semantic-Segmentation

The OCR approach is rephrased as Segmentation Transformer: https://arxiv.org/abs/1909.11065. This is an official implementation of semantic segmentation for HRNet. https://arxiv.org/abs/1908.07919
Other
3.13k stars 686 forks source link

How to deal with the error: RuntimeError: value cannot be converted to type float without overflow: (0.000353832,-0.000114967) #226

Open zjjJacinthe opened 3 years ago

zjjJacinthe commented 3 years ago
optimizer.step()

File "/opt/conda/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 26, in decoratecontext return func(*args, **kwargs) File "/opt/conda/lib/python3.6/site-packages/torch/optim/sgd.py", line 112, in step p.add(d_p, alpha=-group['lr']) RuntimeError: value cannot be converted to type float without overflow: (0.000353832,-0.000114967)

FoilHao commented 2 years ago

I met the same problem. Have you solved it?