Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Aug 22, 2024
1 parent b919255 commit 211fad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/box.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ float box_iou_kind(box a, box b, IOU_LOSS iou_kind)
{
//IOU, GIOU, MSE, DIOU, CIOU
switch(iou_kind) {
case MSE: assert(0);
case MSE: assert(0);
case IOU: return box_iou(a, b);
case GIOU: return box_giou(a, b);
case DIOU: return box_diou(a, b);
Expand Down
2 changes: 1 addition & 1 deletion src/classifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ void try_classifier(char *datacfg, char *cfgfile, char *weightfile, char *filena
char *input = buff;
while(1){
if(filename){
strncpy(input, filename, 255);
strncpy(input, filename, sizeof buff - 1);
}else{
printf("Enter Image Path: ");
fflush(stdout);
Expand Down

0 comments on commit 211fad5

Please sign in to comment.