diff --git a/README.md b/README.md index e9214d9..985fb16 100755 --- a/README.md +++ b/README.md @@ -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/ @@ -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 diff --git a/visualization/show_line.m b/visualization/show_line.m index a429935..8d1d072 100644 --- a/visualization/show_line.m +++ b/visualization/show_line.m @@ -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... diff --git a/visualization/show_real.m b/visualization/show_real.m index 9c921c7..3ee3e97 100644 --- a/visualization/show_real.m +++ b/visualization/show_real.m @@ -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; @@ -25,4 +25,4 @@ dispCubeAshwin(recon(:,:,img_nb),intensity,lam28(img_nb), [] ,col_num,row_num,0,1,name); end frame = frame+1; -end \ No newline at end of file +end diff --git a/visualization/show_simulation.m b/visualization/show_simulation.m index a6497df..6a115f1 100644 --- a/visualization/show_simulation.m +++ b/visualization/show_simulation.m @@ -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;