Skip to content
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

动植物识别、图片内容理解修改返回结果 #199

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

birham-red-bd
Copy link
Contributor

No description provided.

@@ -169,7 +169,7 @@ def _recognize_w_post_process(self, img_path, img_url, file_urls) -> str:
if img_url in file_urls:
img_url = file_urls['img_url']
req.url = img_url
req.top_num = 6
req.top_num = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的 req.top_nu使用m = 1 是否为用户可配参数?若不是,建议此处使用大写字母变量的方式,归纳这些Magic Number

Copy link
Collaborator

@MrChengmo MrChengmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MrChengmo MrChengmo merged commit 1248add into baidubce:master Mar 20, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants