Skip to content

Commit

Permalink
HotFix: 버그 수정 입력 필터링 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
semnisem committed Nov 19, 2024
1 parent eaf80e0 commit 03b3890
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/AIProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def object_detection(self, img):
results = self.yolo_model.predict(source=img, imgsz=640, device=self.device,
iou=0.3, conf=0.3)
bbox = results[0].boxes.xyxy.tolist()
logging.info(f'1차 마스킹 - 바운딩 박스 생성 완료, {len(bbox)}개')
return bbox

def segment_from_points(self, image, user_points, user_labels, bbox, save_path=None):
Expand All @@ -70,8 +69,8 @@ def segment_from_points(self, image, user_points, user_labels, bbox, save_path=
point_labels=input_label,
multimask_output=False,
)'''
filtered_points, filtered_labels = self.remove_points_in_bboxes(user_points, user_labels, bbox)
logging.info(f'2차 마스킹 - 사용자 입력 필터링: from {len(user_points)}개 to {len(filtered_points)}개')
# filtered_points, filtered_labels = self.remove_points_in_bboxes(user_points, user_labels, bbox)
# logging.info(f'2차 마스킹 - 사용자 입력 필터링: from {len(user_points)}개 to {len(filtered_points)}개')

# results = self.sam_model.predict(source=image, points=filtered_points, labels=filtered_labels)
results = self.sam_model.predict(source=image, bboxes=[user_points])
Expand Down

0 comments on commit 03b3890

Please sign in to comment.