-
Notifications
You must be signed in to change notification settings - Fork 1
Feat/deploy deps #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Add paddleocr to requirements
Add PaddleOCR option
|
||
yolo_model = get_yolo_model(model_path='weights/icon_detect/best.pt') | ||
caption_model_processor = get_caption_model_processor(model_name="florence2", model_name_or_path="weights/icon_caption_florence") | ||
# caption_model_processor = get_caption_model_processor(model_name="blip2", model_name_or_path="weights/icon_caption_blip2") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What're your thoughts on whether keeping it or reverting?
bb = [get_xyxy(item) for item in coord] | ||
# print('bounding box!!!', bb) | ||
return (text, bb), is_goal_filtered | ||
return (text, bb), goal_filtering |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the initial purpose of is_goal_filtered?
) -> Tuple[Optional[Image.Image], Text]: | ||
iou_threshold, | ||
use_paddleocr | ||
) -> Optional[Image.Image]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tuple[Optional[Image.Image], Text]:
looks more correct
Thanks @n-sviridenko ! The latest version of this PR is available at microsoft#52 |
No description provided.