-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[FastDeploy] support ppdet with fastdeploy on many hardwares #7950
Conversation
Thanks for your contribution! |
import ast | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument( | ||
"--model", required=True, help="Path of PaddleSeg model.") |
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.
- 笔误:PaddleSeg->PaddleDetection
- 建议改为--model_dir,与套件内其他使用习惯一致
parser.add_argument( | ||
"--model", required=True, help="Path of PaddleSeg model.") | ||
parser.add_argument( | ||
"--image", type=str, required=True, help="Path of test image file.") |
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.
建议改为--image_file或者--image_dir与套件其他地方习惯一致
|
||
# settting for runtime | ||
runtime_option = build_option(args) | ||
model = fd.vision.detection.PPYOLOE( |
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.
这个PPYOLOE不需要根据不同模型来变化吗?
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.
关于这点,现在是在文档中进行说明。后续将会升级为,根据对arch关键字,直接通过读config文件来判断模型是否被支持,到时应该就只要一个类进行了,类似fastdeploy.vision.detection.PaddleDetectionModel这样子
No description provided.