Skip to content

Commit

Permalink
Hot-Fix: 수정 process 함수 정의 및 호출
Browse files Browse the repository at this point in the history
  • Loading branch information
semnisem committed Nov 24, 2024
1 parent 6c07124 commit c282680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/AIProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def combine_alpha(self, image_rgb):
else:
return image_rgb

def process(self, img_bytes, user_inputs, user_labels, extension='jpg'):
def process(self, img_bytes, user_inputs, extension='jpg'):
""" local test 용도 Vs. server test 용도 구분 """
### local 용도
# img_path = img_bytes
Expand Down
3 changes: 1 addition & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ async def processShape(request: Request):
# aiProcessor = AIProcessor(yolo_path='/Users/semin/models/yolo11_best.pt', sam_path='/Users/semin/models/mobile_sam.pt') # local
aiProcessor = AIProcessor(yolo_path="../models/yolo11_best.pt", sam_path="../models/mobile_sam.pt") # server
img_input_bytes, img_mask_bytes, img_output_bytes, one, two = aiProcessor.process(img_bytes=corrected_img_bytes,
user_points=point_list,
user_labels=label_list)
user_inputs=point_list)
logger.info("AI 필기 제거 프로세스 완료")

upload_image_to_s3(img_input_bytes, paths["input_path"])
Expand Down

0 comments on commit c282680

Please sign in to comment.