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

[Enhancement] Simplify Config and Builder #2897

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

juncaipeng
Copy link
Collaborator

PR types

Others

PR changes

Others

Description

简化Config和Builder,Config只保存配置信息,Builder创建各种组件。

@juncaipeng juncaipeng changed the title Simplify Config and Builder [Enhancement] Simplify Config and Builder Jan 6, 2023
Copy link
Member

@Bobholamovic Bobholamovic left a comment

Choose a reason for hiding this comment

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

点赞!

这次解耦很彻底,算是解决了一个顽疾,我个人认为可以比肩#1719

conversation 留了一些小意见~

另外有一个想法,在此先记录:考虑到为 Buider 的子类添加类方法是很有规律的(每个组件几乎都需要经过一套相似的流程),后续可考虑用 Metaclass 简化实现。

paddleseg/utils/utils.py Outdated Show resolved Hide resolved
paddleseg/cvlibs/builder.py Outdated Show resolved Hide resolved
paddleseg/cvlibs/builder.py Show resolved Hide resolved
Copy link
Member

@Bobholamovic Bobholamovic left a comment

Choose a reason for hiding this comment

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

LGTM.

@juncaipeng juncaipeng merged commit d061b60 into PaddlePaddle:develop Jan 9, 2023
@juncaipeng juncaipeng deleted the config_builder branch January 9, 2023 06:06
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