Calculating the loss for each class in Multiclass segmentation with weights

前端 未结 0 441
梦毁少年i
梦毁少年i 2021-01-07 07:03

Calculating the loss with pytorch is easy using the reduction feature:

criterion = nn.CrossEntropyLoss(weight=cw, reduc         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题