Comments (6)
Hi,
Thank you so much for your work!
I have just tested your code with an image of 510x339 pixel but I got an error
x = x.view(b, h // window_size, window_size, w // window_size, window_size, c) RuntimeError: shape '[1, 42, 8, 63, 8, 1]' is invalid for input of size 172890
Therefore, I cropped that image to 128x128 pixel and it works as normal. The reason to choose the size of 128x128 comes from your example image "airport_285.png" in your source code.
Could you please check and fix this problem?
Thank you for your help!
Hi, many thanks for your interest. This error is due to the window-based self-attention, where we need to split the image to several windows, such as window_size = 8 in Line 906
In other words, if the image size is not divisible by 8, it will report this error. I suggest resampling or cropping your images to avoid this. Or you can retrain TTST with appropriate settings.
from ttst.
Thank you for your explanations!
I got it.
Also, the current pre-trained model you open is "scale-up-x4" version. So, can I extract the HR image with non-scale (x1)?
For example, like extracting output before reconstruction layer.
If yes, could you please let me know clearly how to get non-scaled HR image?
from ttst.
Thank you for your explanations!
I got it.
Also, the current pre-trained model you open is "scale-up-x4" version. So, can I extract the HR image with non-scale (x1)? For example, like extracting output before reconstruction layer.
If yes, could you please let me know clearly how to get non-scaled HR image?
I don't quite understand the meaning of non-scale, does it mean that the feature size is the same as the input low resolution image?
from ttst.
Hi,
Non-scale means the input and output image should have the same size.
For example, when I run the prediction code, given the LR input image with size of 128x128, the pre-trained model outputs the HR image with the size of 512x512 (scaled up to x4).
However, in my application, I only want to make LR image more clear without changing its size. It means, the LR and HR image must have the same size at 128x128.
In this case, can I get HR output image with the same size as LR input image from your pre-trained model?
from ttst.
Hi,
Non-scale means the input and output image should have the same size.
For example, when I run the prediction code, given the LR input image with size of 128x128, the pre-trained model outputs the HR image with the size of 512x512 (scaled up to x4).
However, in my application, I only want to make LR image more clear without changing its size. It means, the LR and HR image must have the same size at 128x128.
In this case, can I get HR output image with the same size as LR input image from your pre-trained model?
In this case, our pre-trained model cannot handle it. The SR problem involves an increase in image size.
from ttst.
I got it.
Thank you!
from ttst.
Related Issues (8)
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 ttst.