Skip to content

Commit

Permalink
Update detect.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcz007 committed Mar 29, 2024
1 parent b4c304c commit c4be286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodes/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def run(self,image,confidence,model,type="YOLO-World",target_label="",debug="on"
# 创建一个黑色图
mask = Image.new("L", image.size)
mask=pil2tensor(mask)
masks_total.append(mask)
grids_total.append((0,0,image.size[0],image.size[1]))
masks_total.append([mask])
grids_total.append([(0,0,image.size[0],image.size[1])])
names_total.append(['-'])
# masks = result.masks # Masks object for segmentation masks outputs
# keypoints = result.keypoints # Keypoints object for pose outputs
Expand Down

0 comments on commit c4be286

Please sign in to comment.