YirongMao / softmax_variants

PyTorch code for softmax variants: center loss, cosface loss, large-margin gaussian mixture, COCOLoss, ring loss
253 stars 49 forks source link

ValueError: optimizer got an empty empty parameter list #7

Closed liuge1008 closed 3 years ago

liuge1008 commented 3 years ago

I am not very familiar with the change of the loss function, how to solve this problem? error:optimizer_l = optim.SGD(lgm_loss.parameters(), lr=0.1)