Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slash on Linux #34

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ The training log, trained model, and reconstrcuted HSI will be available in `MST

### 5.2 Testing

#### The testing scripts in real dataset should be updated >>>

```python
cd MST/real/test_code/

Expand Down Expand Up @@ -481,6 +483,7 @@ python test.py --template dauhst --outf ./exp/dauhst_9stg/ --method dauhst_9stg

- The reconstrcuted HSI will be output into `MST/real/test_code/exp/`

#### The testing scripts in real dataset should be updated <<<

### 5.3 Visualization

Expand Down
12 changes: 6 additions & 6 deletions visualization/show_line.m
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
%% plot color pics
clear; clc;
load(['simulation_results\results\','truth','.mat']);
load(['simulation_results/results/','truth','.mat']);

load(['simulation_results\results\','hdnet','.mat']);
load(['simulation_results/results/','hdnet','.mat']);
pred_block_hdnet = pred;

load(['simulation_results\results\','mst_s','.mat']);
load(['simulation_results/results/','mst_s','.mat']);
pred_block_mst_s = pred;

load(['simulation_results\results\','mst_m','.mat']);
load(['simulation_results/results/','mst_m','.mat']);
pred_block_mst_m = pred;

load(['simulation_results\results\','mst_l','.mat']);
load(['simulation_results/results/','mst_l','.mat']);
pred_block_mst_l = pred;

load(['simulation_results\results\','mst_plus_plus','.mat']);
load(['simulation_results/results/','mst_plus_plus','.mat']);
pred_block_mst_plus_plus = pred;

lam28 = [453.5 457.5 462.0 466.0 471.5 476.5 481.5 487.0 492.5 498.0 504.0 510.0...
Expand Down
6 changes: 3 additions & 3 deletions visualization/show_real.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
clear; clc;
close all

load('real_results\results\mst.mat');
load('real_results/results/mst.mat');
x_result_1 = flip(flip(squeeze(pred(1, :, :, :)),1),2);
x_result_2 = flip(flip(squeeze(pred(2, :, :, :)),1),2);
x_result_3 = flip(flip(squeeze(pred(3, :, :, :)),1),2);
x_result_4 = flip(flip(squeeze(pred(4, :, :, :)),1),2);
x_result_5 = flip(flip(squeeze(pred(5, :, :, :)),1),2);

save_file = 'real_results\rgb_results\mst\';
save_file = 'real_results/rgb_results/mst/';
mkdir(save_file);

frame = 1;
Expand All @@ -25,4 +25,4 @@
dispCubeAshwin(recon(:,:,img_nb),intensity,lam28(img_nb), [] ,col_num,row_num,0,1,name);
end
frame = frame+1;
end
end
4 changes: 2 additions & 2 deletions visualization/show_simulation.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%% plot color pics
clear; clc;
load('simulation_results\results\mst_s.mat');
save_file = 'simulation_results\rgb_results\mst_s\';
load('simulation_results/results/mst_s.mat');
save_file = 'simulation_results/rgb_results/mst_s/';
mkdir(save_file);

close all;
Expand Down