Comments (4)
It is for even-size kernels. Currently, the alignment only supports ever-sized kerkers. For example, when kernel size is 6, this gives a local mesh grid of [-2.5, -1.5, -0.5, 0.5, 1.5, 2.5]^2.
In this case, add (self.kernel_size-1)//2+0.5=2.5 transform the local mesh grid to 0~5. We then add it on p_0 to obtain global mesh coordinates.
from dcsr.
It is for even-size kernels. Currently, the alignment only supports ever-sized kerkers. For example, when kernel size is 6, this gives a local mesh grid of [-2.5, -1.5, -0.5, 0.5, 1.5, 2.5]^2. In this case, add (self.kernel_size-1)//2+0.5=2.5 transform the local mesh grid to 0~5. We then add it on p_0 to obtain global mesh coordinates.
But if you add (self.kernel_size-1)//2+0.5
, the range of global mesh coordinate becomes 1~h. It lies between 0~h-1 if we add (self.kernel_size-1)//2-0.5
. Isn't it the global mesh coordinate that should be in range 0~h-1?
from dcsr.
It is for even-size kernels. Currently, the alignment only supports ever-sized kerkers. For example, when kernel size is 6, this gives a local mesh grid of [-2.5, -1.5, -0.5, 0.5, 1.5, 2.5]^2. In this case, add (self.kernel_size-1)//2+0.5=2.5 transform the local mesh grid to 0~5. We then add it on p_0 to obtain global mesh coordinates.
But if you add
(self.kernel_size-1)//2+0.5
, the range of global mesh coordinate becomes 1h. It lies between 0h if we add(self.kernel_size-1)//2-0.5
. Isn't it the global mesh coordinate that should be in range 0~h-1?
Yes, or you may also modify the range of p_0 to [0, h-1].
from dcsr.
Ok, Thanks for the answer!
from dcsr.
Related Issues (20)
- How much memory does (train)test need(for CUFED5)? HOT 1
- question on dcsr.py HOT 5
- Question on patch_size HOT 1
- About 4x start HOT 5
- Train on the CUFED5 HOT 4
- Hi,
- Question about 4X SR on CUFED5 HOT 7
- Sorry I'm asking stupid questions again HOT 3
- About patch_select HOT 2
- Pretrained model on CUFED5 HOT 2
- About CameraFusion dataset HOT 4
- train,val and test
- Hi,Can you provide the testset CUFED5 for the pre-train model?
- RuntimeError: CUDA error: device-side assert triggered HOT 11
- About quick start on 4k start HOT 2
- Question on evaluation in the main paper HOT 2
- Question on network architecture HOT 4
- Question on SRA Loss implementation HOT 2
- cannot reproduce 8k result as shown in the paper HOT 5
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 dcsr.