Comments (5)
Hi @Syllables01,
Not sure I follow so LMK if I missed the point.
- The Generator has 1 convolution layer with stride 2 and all the others have no stride (=1) ==> The image is downscaled by 2 (except for boundaries effects but they should be minor). I don't understand how you get such a small image. What happens for an image from the dataset (~1024x1024) ?
- WDYM by
The output size of Generator is 32*32
Are you referring to the image or the kernel?
from kernelgan.
I mean that as for the kernel generator, it should imitate downscale X2. However, in the original code, when sending input image of shape 6464, the shape of the kernel generator is not 3232. Should I alter padding so that the kernel generator imitates downscale X2?
from kernelgan.
No!
The Kernel is independent of the image size.
The kernel is the function that downscales the image - it convolves the image and since it does it with a stride, the resulting image is smaller.
You chose how big of a kernel you want. Previous research shows that 13x13 captures most of the downscaling effect, in scale factor 2, so that is the default (physically, the kernel is large but mathematically - 13x13 should suffice)
from kernelgan.
Thanks.
I know that the Kernel is independent of the image size. The function "train" in train.py estimates the image-specific "kernel" by chosen patches. However, when sending an 6464 patch into the downscale generator, the output size is not 3232. If the generator imitates the downscaling operation by the factor 2, why does this situation happen?
Looking forward to your reply!
from kernelgan.
If you are referring to the training phase - as far as I remember, it trains on a crop and not the entire image, to reduce runtime (and since it doesn't need such a large amount of patches for each forward-backward step).
But you should verify what I said in the code
from kernelgan.
Related Issues (20)
- X4 kernel specs in DIV2KRK HOT 1
- It seems like a bug?
- UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize HOT 5
- RuntimeError: cuDNN error: CUDNN_STATUS_BAD_PARAM HOT 2
- network parameter asking HOT 6
- Why do you swap axis? HOT 2
- why not directly save the params of Generator for downscaling? why not non-linear? HOT 3
- Question about the DownScaleLoss HOT 1
- About DIV2KRK HOT 1
- Questions about generator networks HOT 2
- How do you generate such an image? HOT 8
- How do you visualize the ".mat" files HOT 3
- There was a problem with training in another data set HOT 1
- How to gain the PSNR and SSIM HOT 2
- What's the meaning of "input-dir" and "input_img_path"
- Is your training data set the same as your test set HOT 2
- Why there needs flip orperation when calculate the kernel ? HOT 1
- No file .mat HOT 1
- ValueError: shapes (512,512,1) and (3,) not aligned: 1 (dim 2) != 3 (dim 0) HOT 2
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 kernelgan.