-
Notifications
You must be signed in to change notification settings - Fork 234
Xrdmatch #1234
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
Xrdmatch #1234
Conversation
|
Thanks for your contribution! |
|
数据和模型链接为通过网盘分享的文件:saved_models_ppsci等2个文件 |
mkdocs.yml
Outdated
| # setup_commands: | ||
| # - import sys | ||
| # - sys.path.append("../") | ||
| paths: [../ppsci] | ||
| selection: | ||
| new_path_syntax: true | ||
| # selection: | ||
| # new_path_syntax: true |
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.
请不要修改无关代码
ppsci/arch/vgg.py
Outdated
| x = self.features(x) | ||
| x = paddle.flatten(x, 1) | ||
| if self.classifier is None: | ||
| # 动态推断flatten后的特征维度 |
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.
代码中的注释请统一使用英文
ppsci/arch/vgg.py
Outdated
| def vgg(config="vgg16", pretrained=False, pretrained_path=None, **kwargs): | ||
| model = VGG(config=config, **kwargs) | ||
| return 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.
这个函数无用,删除
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.
注释统一使用英文
docs/zh/examples/xrdmatch.md
Outdated
| ### 环境要求 | ||
|
|
||
| ```bash | ||
| pip install paddlepaddle ppsci numpy pandas scikit-learn tqdm |
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.
这个案例只需要使用cpu的paddle运行吗?不需要装-gpu版的?
|
由于这个后续涉及项目后面进行了一步模型集成学习,从而保留了较多的模型,但是这一步不是文章中的关键,从而舍弃了。由于训练数据较小,采取cpu即可,从而我直接设置的cpu,不过改成cuda是可以运行的。 |
|
参考其他案例 整理一下文档,提供运行的命令 |
PR types
PR changes
Describe