/home/csim/anaconda3/envs/pointcept/lib/python3.8/site-packages/torch/optim/lr_scheduler.py:131: UserWarning: Detected call of `lr_scheduler.step()` before `optimizer.step()`. In PyTorch 1.1.0 and later, you should call them in the opposite order: `optimizer.step()` before `lr_scheduler.step()`. Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate warnings.warn("Detected call of `lr_scheduler.step()` before `optimizer.step()`. "
时间: 2024-01-31 10:04:44 浏览: 164
SF-CSIM-PRINTER-SDK-V1.1.1-190529.zip_sf-csim-waybill-api_丰密运单_丰
这是一个 PyTorch 的 Warning 信息,提示你在使用学习率调度器 `lr_scheduler` 时应该先调用 `optimizer.step()` 来更新参数,再调用 `lr_scheduler.step()` 来更新学习率。如果你先调用了 `lr_scheduler.step()` ,则会导致 PyTorch 跳过学习率调度器的第一个值。你可以参考链接 https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate 中的详细说明。
阅读全文