Skip to content

Commit

Permalink
Some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolya committed Mar 30, 2019
1 parent 1481b72 commit 8977d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ def prep_display(dets_out, img, gt, gt_masks, h, w, undo_transform=True, class_c
classes, scores, boxes = [x[:args.top_k].cpu().numpy() for x in t[:3]]

if classes.shape[0] == 0:
print('Warning: No detections found.')
return (img_gpu * 255).byte().cpu().numpy()

def get_color(j):
Expand Down Expand Up @@ -698,6 +697,7 @@ def savevideo(net:Yolact, in_path:str, out_path:str):

vid.release()
out.release()
print()


def evaluate(net:Yolact, dataset, train_mode=False):
Expand Down

0 comments on commit 8977d62

Please sign in to comment.