@AjayTalati
@mratsim
I’ve used MultiLabelSoftMarginLoss and Adam optimizer，the loss looked well.
the SGD optimizer worked properly also, and same as last fc along with sigmoid,then BCELoss.
the MultiLabelMarginLoss doesn’t work, loss become 0 in 2nd minibatch.
the last loss is 0.08…, cann’t  become smaller.
Train Epoch: 29 (19%)Loss: 0.081794
Train Epoch: 29 (39%)Loss: 0.080127
Train Epoch: 29 (59%)Loss: 0.083426
Train Epoch: 29 (79%)Loss: 0.086233
Train Epoch: 29 (99%)Loss: 0.082037
but for 252(36*7) destinations, for different image, for example 10 images from test set, the model gave a same prediction,just like:
0.0006  0.0006  0.0006  …   0.0891  0.0742  0.1139
0.0006  0.0006  0.0006  …   0.0891  0.0742  0.1139
0.0006  0.0006  0.0006  …   0.0891  0.0742  0.1139
…             ⋱             …
0.0006  0.0006  0.0006  …   0.0891  0.0742  0.1139
0.0006  0.0006  0.0006  …   0.0891  0.0742  0.1139
0.0006  0.0006  0.0006  …   0.0891  0.0742  0.1139
[torch.FloatTensor of size 10x252]
I’m whole confused