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

使用fask 包装成api后docker运行发生异常 #25

Closed
viewhang opened this issue Sep 3, 2022 · 1 comment
Closed

使用fask 包装成api后docker运行发生异常 #25

viewhang opened this issue Sep 3, 2022 · 1 comment

Comments

@viewhang
Copy link

viewhang commented Sep 3, 2022

大佬好,我想使用这个库包装成api,本地开发运行是正常的,但是打进docker之后发生了一场
image

调用insightface_paddle 的时候发生了异常
image

为啥这写参数会传递到gunicorn了

@viewhang
Copy link
Author

viewhang commented Sep 5, 2022

已解决:
使用args, unknown = parser.parse_known_args() 替换 args = parser.parse_args()

@viewhang viewhang closed this as completed Sep 5, 2022
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

No branches or pull requests

1 participant