Comments (2)
Hi! We have previously discussed this on EE discord, I removed this re-parametrization because it tries to optimizer eval_conv
, which torch can't:
2023-12-11 03:47:37,177 WARNING: Params conv_1.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,177 WARNING: Params conv_1.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,177 WARNING: Params block_1.c1_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,177 WARNING: Params block_1.c1_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,177 WARNING: Params block_1.c2_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,177 WARNING: Params block_1.c2_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,177 WARNING: Params block_1.c3_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,177 WARNING: Params block_1.c3_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,177 WARNING: Params block_2.c1_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_2.c1_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_2.c2_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_2.c2_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_2.c3_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_2.c3_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_3.c1_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_3.c1_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_3.c2_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_3.c2_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_3.c3_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_3.c3_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_4.c1_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,178 WARNING: Params block_4.c1_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_4.c2_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_4.c2_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_4.c3_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_4.c3_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_5.c1_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_5.c1_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_5.c2_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_5.c2_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_5.c3_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_5.c3_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_6.c1_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_6.c1_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_6.c2_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,179 WARNING: Params block_6.c2_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,180 WARNING: Params block_6.c3_r.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,180 WARNING: Params block_6.c3_r.eval_conv.bias will not be optimized.
2023-12-11 03:47:37,180 WARNING: Params conv_2.eval_conv.weight will not be optimized.
2023-12-11 03:47:37,180 WARNING: Params conv_2.eval_conv.bias will not be optimized.
While it doesn't prevent training, I would rather not have such issues. In the official code, the author used a bool flag (self.training), but even when setting it to true torch still sends it to the optimizer. So because we were just testing this network and eval_conv doesn't affect training (only inference), I didn't dig much further.
We should ask the authors if they have a good solution for this. Thanks for reporting.
edit: made an issue on SPAN repo
from neosr.
from neosr.
Related Issues (20)
- wrapper around train.py, ... scripts and release on pypi
- `train_realesrgan.yml` is named "train_esrgan" HOT 1
- imwrite raise IOError when trying to write an image where the filename contains unicode characters HOT 2
- How to save a model fully in pth? Not state dict HOT 3
- Document which architectures have been modified and are incompatible with the original architecture HOT 4
- Add tile option HOT 2
- Modifications for CRAFT, SwinIR, and DCTLAS are not detectable HOT 8
- Automatically remove old checkpoints and visualizations HOT 4
- and again rgb_mean HOT 1
- assets HOT 3
- dataset_enlarge_ratio description HOT 1
- Mismatched resume state issue HOT 1
- All architectures with `rgb_mean = (0.5, 0.5, 0.5)` are incompatible HOT 9
- Python version problem HOT 4
- Question regarding net_d HOT 4
- model zoo HOT 1
- can not start train HOT 3
- GPU memory not fixed when training HOT 1
- ValueError at 79 epoch HOT 3
- NaN errors occurring constantly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neosr.