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

[Feature] Add HRNet_W48_Contrast Model #1484

Merged
merged 9 commits into from
Nov 16, 2021
Merged

[Feature] Add HRNet_W48_Contrast Model #1484

merged 9 commits into from
Nov 16, 2021

Conversation

justld
Copy link
Contributor

@justld justld commented Oct 29, 2021

添加Exploring Cross-Image Pixel Contrast for Semantic Segmentation论文的模型到paddleseg中,并添加了对应的config文件。
1、添加model,HRNetW48Contrast
2、添加PixelContrastCrossEntropyLoss损失函数

@shiyutang
Copy link
Collaborator

precommit 修改格式:#1490 (comment)

@justld justld requested a review from shiyutang November 3, 2021 02:12
@shiyutang shiyutang changed the title 百度论文复现第四期提交 hrnet_w48_contrast 模型 [Feature] Add HRNet_W48_Contrast Model Nov 3, 2021
Copy link
Collaborator

@shiyutang shiyutang left a comment

Choose a reason for hiding this comment

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

所有要求修改已经完成,我会重新训练达到要求精度之后进行合入。Good job~

shiyutang
shiyutang previously approved these changes Nov 9, 2021
paddleseg/models/hrnet_contrast.py Show resolved Hide resolved
paddleseg/models/hrnet_contrast.py Outdated Show resolved Hide resolved
Args:
dim_in (int): The dimensions of input features.
proj_dim (int|optional): The output dimensions of projection head. Default: 256.
proj (str|optional): The type of projection head, only support 'linear' and 'convmlp'. Default: 'convmlp'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Default: 'convmlp'.

paddleseg/models/hrnet_contrast.py Outdated Show resolved Hide resolved
paddleseg/models/hrnet_contrast.py Outdated Show resolved Hide resolved
michaelowenliu
michaelowenliu previously approved these changes Nov 11, 2021
Copy link
Collaborator

@michaelowenliu michaelowenliu left a comment

Choose a reason for hiding this comment

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

@shiyutang 已review完,验证导出功能后可以合入

@michaelowenliu michaelowenliu merged commit 0d88486 into PaddlePaddle:develop Nov 16, 2021
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.

4 participants