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 FeedbackBlock #345

Merged
merged 4 commits into from
Jun 9, 2021
Merged

[Feature] Add FeedbackBlock #345

merged 4 commits into from
Jun 9, 2021

Conversation

Yshuo-Li
Copy link
Collaborator

For DIC

@codecov
Copy link

codecov bot commented May 31, 2021

Codecov Report

Merging #345 (85dc906) into master (f61bd77) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #345      +/-   ##
==========================================
+ Coverage   80.01%   80.10%   +0.09%     
==========================================
  Files         181      182       +1     
  Lines        9536     9581      +45     
  Branches     1391     1397       +6     
==========================================
+ Hits         7630     7675      +45     
  Misses       1716     1716              
  Partials      190      190              
Flag Coverage Δ
unittests 80.08% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmedit/models/backbones/sr_backbones/dic_net.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f61bd77...85dc906. Read the comment docs.

mmedit/models/backbones/sr_backbones/dic_net.py Outdated Show resolved Hide resolved
mmedit/models/backbones/sr_backbones/dic_net.py Outdated Show resolved Hide resolved
mid_channels,
kernel_size=1), nn.PReLU(init=prelu_init)))

self.last = nn.Sequential(
Copy link
Member

Choose a reason for hiding this comment

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

self.conv_last

mmedit/models/backbones/sr_backbones/dic_net.py Outdated Show resolved Hide resolved
mmedit/models/backbones/sr_backbones/dic_net.py Outdated Show resolved Hide resolved
@ckkelvinchan
Copy link
Member

There are some other locations using tuple in torch.cat (Lines 92, 106)

super().__init__()

stride = upscale_factor
padding = 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Move L26 and L28 to __init__'s arguments.

"""Reset 'self.need_reset' to 'True'.
"""

self.need_reset = True
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please explain briefly about this reset mechanism? What is it used for

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The control function of the feedback channels.

I have checked the repo and found that it was not used now, so I will delete this function.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if need reset, the feedback data (last_hidden) will be replaced by x

@innerlee
Copy link
Contributor

innerlee commented Jun 9, 2021

echos kelvin. Please rename ".first" and ".last" to other names. This has happend multiple times. They are not good names.

@innerlee innerlee merged commit 623b59a into open-mmlab:master Jun 9, 2021
@Yshuo-Li Yshuo-Li deleted the fb branch June 10, 2021 03:20
Yshuo-Li added a commit to Yshuo-Li/mmediting that referenced this pull request Jul 15, 2022
* [Feature] Add FeedbackBlock

* Update

* Update

* Fix

Co-authored-by: liyinshuo <[email protected]>
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.

3 participants