Beispiel #1
0
 def setuploss(this):
     this.criterion_CE = nn.CrossEntropyLoss().cuda()
     this.url = neko_unknown_ranking_loss()
     this.cosloss = neko_cos_loss().cuda()
     this.wcls = 1
     this.wsim = 0
     this.wmar = 0
Beispiel #2
0
 def setuploss(this):
     this.criterion_CE = nn.CrossEntropyLoss().cuda()
     this.cosloss = neko_cos_loss().cuda()