Commit 421d6843 authored by sunxx1's avatar sunxx1
Browse files

Merge branch 'main' into 'main'

错误修改和路径对应(删除多余的重名文件夹)

See merge request dcutoolkit/deeplearing/dlexamples_new!21
parents 9086775f 2a379c65
......@@ -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