IOU loss function

This commit is contained in:
Joseph Redmon
2015-04-24 10:27:50 -07:00
parent feabcc31de
commit 989ab8c38a
8 changed files with 272 additions and 62 deletions

View File

@ -186,6 +186,9 @@ float get_network_cost(network net)
if(net.types[net.n-1] == COST){
return ((cost_layer *)net.layers[net.n-1])->output[0];
}
if(net.types[net.n-1] == DETECTION){
return ((detection_layer *)net.layers[net.n-1])->cost[0];
}
return 0;
}