Commit f4e6a6c7 authored by lidc's avatar lidc
Browse files

修改错误number of rows must be a positive integer,not 4.0,该错误在v100上不会出现

parent 9086775f
......@@ -872,7 +872,7 @@ def plot_images(imgs, targets, paths=None, fname='images.png'):
fig = plt.figure(figsize=(10, 10))
bs, _, h, w = imgs.shape # batch size, _, height, width
bs = min(bs, 16) # limit plot to 16 images
ns = np.ceil(bs ** 0.5) # number of subplots
ns = int(np.ceil(bs ** 0.5)) # number of subplots
for i in range(bs):
boxes = xywh2xyxy(targets[targets[:, 0] == i, 2:6]).T
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment