Comments (12)
Yes, it does~
from spsr.
oh,but I saw the requires_grad = False of weight_h and weight_v written in the /model/SPSR_model.py code, why is that?
from spsr.
We use a convolutional layer with fixed kernels to extract gradient maps, which is the reason why we set require_grad=False for weight_h and weight_v. However, the parameters of the gradient branch are updated by back-propagation as normal.
from spsr.
Therefore, in the process of back propagation, the pixel value of image is optimized rather than the weight of the filter?
from spsr.
Yes.
from spsr.
Thank you very much! I also want to know that the gradient branch is passed into the SR branch using torch.cat((grad,sr),dim=1), what is the difference between this (grad+sr)?
from spsr.
The former is concatenation in dimensions while the latter is addition in values.
from spsr.
oh, no~ I mean to use torch.cat((grad,sr),dim=1) and (grad+sr) and then send it to the convolutional layer. What is the difference?
from spsr.
I think concatenation is better since it may contain the situation of addition. However, I think both are reasonable and you can have a try to see which is better.
from spsr.
Great! thank you for your reply !My idea is that the gradient contains the high frequency information of the image. After the gradient branch completed, we should be added the output gradient to SR, which is used the (grad+SR) operation, to enhance the high frequency information of sr , so restoring the sharpness of the image. As you said, the concatenation may contain the situation of addition, it's okay to use the concatenation.
from spsr.
:-)
from spsr.
@Florrie-Giu did you try with addition (grad+SR), I was also thinking in a similar direction.
Adding will increase the high freq details and thus improve the sharpness
from spsr.
Related Issues (20)
- 模型的训练是如何安排的? HOT 3
- RuntimeError: stack expects each tensor to be equal size, but got [3, 0, 0] at entry 0 and [3, 164, 0] at entry 1
- 关于梯度图 HOT 2
- About evaluation toolbox configuration. HOT 1
- 关于root中的path HOT 3
- I am running out of memory on gpu HOT 3
- Errors accur when using evaluation tool box HOT 1
- Cannot reproduce the reported performance using the pretrained checkpoint HOT 1
- 训练时预处理的lmdb部分报错 HOT 1
- 您好,我在运行您的代码的时候遇到一个问题,期待您的答复,谢谢。在运行时,可以正常训练,但是验证时,会爆显存RuntimeError:CUDA out of memory。请问是什么原因呢 HOT 4
- Test with multiple GPUs HOT 3
- blank image HOT 6
- CUDA Out Of Memory on 4900th iteration. HOT 2
- waring HOT 2
- get a Error while run generate_dataset.py.
- question about test HOT 3
- Evaluation code modification suggestion
- 关于使用工具箱测试自己的模型 HOT 1
- create model.py is not inside models folder
- About HR_size and CUDA memory
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 spsr.