Skip to content

Commit 7cb3bbd

Browse files
Added missing imports for write function
1 parent a70794d commit 7cb3bbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bbox.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from __future__ import division
22

33
import torch
4+
import random
45

56
import numpy as np
6-
7+
import cv2
78

89
def confidence_filter(result, confidence):
910
conf_mask = (result[:,:,4] > confidence).float().unsqueeze(2)
@@ -99,7 +100,7 @@ def pred_corner_coord(prediction):
99100

100101

101102

102-
def write(x, batches, results):
103+
def write(x, batches, results, colors, classes):
103104
c1 = tuple(x[1:3].int())
104105
c2 = tuple(x[3:5].int())
105106
img = results[int(x[0])]

0 commit comments

Comments
 (0)