-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fix usage of channel_order in loading.py #271
Conversation
@innerlee Please note that |
Codecov Report
@@ Coverage Diff @@
## master #271 +/- ##
==========================================
- Coverage 79.95% 79.94% -0.02%
==========================================
Files 159 159
Lines 7939 7942 +3
Branches 1176 1177 +1
==========================================
+ Hits 6348 6349 +1
- Misses 1447 1449 +2
Partials 144 144
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
edit: sorry no. Its imfrombytes. Yes please add the option to RandomLoadResizeBg, it is safe since there is no config actually uses it yet. |
@Yshuo-Li This bug |
Okay, will do |
LIIF uses |
@ckkelvinchan since this change will affect the checkpoint, do you want to re-train one? |
I am reproducing GLEAN, so I may need to do it later. I suggest changing the configuration files for BasicVSR and IconVSR back to |
Hello @ckkelvinchan , thank you for your awesome work. Will this change affect the optical flow estimated by SPyNet ? According to this code, SPyNet takes an image with |
The SPyNet we used takes RGB as inputs. This is slightly different from the one you mentioned. That's why we did not change it to |
OK. Thank you. |
* Fix usage of channel_order in loading.py * Add channel_order to RandomLoadResizeBg * Update weights for rgb order
In the previous version,
LoadImageFromFileList
andLoadPairedImageFromFile
did not usechannel_order
inmmcv.imfrombytes
. Therefore, the input is still inbgr
order even ifchannel_order='rgb
is specified in the configuration file.This PR adds the argument to the function. The default value is
bgr
, and hence it does not affect the existing codes.