Comments (3)
I got the same problem too. If you dont need RGB pics, just comment out those columns. It works. Hope this could helpful for u fig1 = disp_rgb(ref); saveas(fig1, strcat(file_name,'/pavia_ref_', num2str(count, '%02d'),'.png')); saveas(fig2, strcat(file_name,'/pavia_lr_', num2str(count, '%02d'),'.png'));
from hypertransformer.
@hibryce @who15
@hibryce Thanks for the answer, this should work. If you still want to visualize RGB image you can use following function.
For pavia:
function xrgb = get_rgb(x)
R=60;
G=30;
B=10;
xr = x(:,:,R);
xg = x(:,:,G);
xb = x(:,:,B);
xrgb = cat(3, xr, xg, xb)/max(x, [], "all");
end
For chikusei:
function xrgb = get_rgb(x)
R=61;
G=35;
B=10;
xr = x(:,:,R);
xg = x(:,:,G);
xb = x(:,:,B);
xrgb = cat(3, xr, xg, xb)/max(x, [], "all");
end
from hypertransformer.
@wgcban @hibryce thanks for the answer!
from hypertransformer.
Related Issues (12)
- the problem of dataset HOT 3
- Sir, I have some problems in reproducing your paper. HOT 1
- Having trouble reproduce the score in botswana4 dataset HOT 6
- Sir! I think there are careless mistakes in 180 and 183 lines of train.py HOT 1
- Sir! A question about Eq. 7 and its coding implementation. HOT 2
- A problem when reproduced HyperTransformer code HOT 11
- how to determine the parameters in process_xxx.m HOT 1
- clerical errors in essays
- A problem when reproduced on large scale factor super-resolution
- Regarding the issues of parameters in the config_HSIT.json file, the number of heads in multi-head attention, and the calculation of metrics. HOT 2
- KeyError: 'multi_scale_loss' on training the backbone
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 hypertransformer.