Skip to content

Commit

Permalink
Version for initial FSRCNN
Browse files Browse the repository at this point in the history
add report
  • Loading branch information
yippp committed Mar 6, 2018
1 parent 578af12 commit b72b431
Show file tree
Hide file tree
Showing 397 changed files with 426 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ ENV/
.mypy_cache/
*.xml
*.iml
*.jpg
*.bmp
*.pth

*.yip-PC
389 changes: 389 additions & 0 deletions Report.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ def __init__(self, image_dir):

def __getitem__(self, index):
input_image = load_img(self.image_filenames[index])
x_re = floor((input_image.size[0] / 2) + 3)
x = (x_re - 3) * 2
x_re = floor((input_image.size[0] - 1) / 3 + 5)
x = (x_re - 5) * 3 + 1
if x != input_image.size[0]:
x = floor(x)
y_re = floor((input_image.size[0] / 2) + 3)
y = (y_re - 3) * 2
y_re = floor((input_image.size[1] - 1) / 3 + 5)
y = (y_re - 5) * 3 + 1
if y != input_image.size[1]:
y = floor(y)

Expand All @@ -62,7 +62,7 @@ def __getitem__(self, index):
target = input_image.copy()
target = self.to_tensor(target)

self.resize = Resize((x_re - 7, y_re - 7))
self.resize = Resize((x_re, y_re))
input_image = self.resize(input_image)
input_image = self.to_tensor(input_image)

Expand Down
23 changes: 23 additions & 0 deletions dataset/train/data_aug.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
clear;
%% To do data augmentation
folder = '91-images';
savepath = '91-images-aug/';

filepaths = dir(fullfile(folder,'*.bmp'));

for i = 1 : length(filepaths)
filename = filepaths(i).name;
[add, im_name, type] = fileparts(filepaths(i).name);
image = imread(fullfile(folder, filename));

for angle = 0: 90 :270
im_rot = rot90(image, angle);
imwrite(im_rot, [savepath im_name, '_rot' num2str(angle) '.bmp']);

for scale = 0.6 : 0.1 :0.9
im_down = imresize(im_rot, scale, 'bicubic');
imwrite(im_down, [savepath im_name, '_rot' num2str(angle) '_s' num2str(scale*10) '.bmp']);
end

end
end
Binary file added logs/no123/network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/first_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/first_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/first_50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/first_diff_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/first_diff_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/first_diff_50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/first_layer_initial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/individualImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/last_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/last_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/last_50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/last_diff_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/last_diff_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/last_diff_50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/last_layer_initial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/loss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/set14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd191-res/set5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added logs/no123/sqrtd91-res/first_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd91-res/first_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd91-res/first_50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd91-res/first_diff_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd91-res/first_diff_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd91-res/first_diff_50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logs/no123/sqrtd91-res/first_layer_initial.png
Binary file added logs/no123/sqrtd91-res/individualImage.png
Binary file added logs/no123/sqrtd91-res/last_1.png
Binary file added logs/no123/sqrtd91-res/last_100.png
Binary file added logs/no123/sqrtd91-res/last_50.png
Binary file added logs/no123/sqrtd91-res/last_diff_1.png
Binary file added logs/no123/sqrtd91-res/last_diff_100.png
Binary file added logs/no123/sqrtd91-res/last_diff_50.png
Binary file added logs/no123/sqrtd91-res/last_layer_initial.png
Binary file added logs/no123/sqrtd91-xavier/Set14.png
Binary file added logs/no123/sqrtd91-xavier/Set5.png
Binary file not shown.
Binary file added logs/no123/sqrtd91-xavier/first_1.png
Binary file added logs/no123/sqrtd91-xavier/first_100.png
Binary file added logs/no123/sqrtd91-xavier/first_50.png
Binary file added logs/no123/sqrtd91-xavier/first_diff_1.png
Binary file added logs/no123/sqrtd91-xavier/first_diff_100.png
Binary file added logs/no123/sqrtd91-xavier/first_diff_50.png
Binary file added logs/no123/sqrtd91-xavier/first_layer_initial.png
Binary file added logs/no123/sqrtd91-xavier/individualImage.png
Binary file added logs/no123/sqrtd91-xavier/last_1.png
Binary file added logs/no123/sqrtd91-xavier/last_100.png
Binary file added logs/no123/sqrtd91-xavier/last_50.png
Binary file added logs/no123/sqrtd91-xavier/last_diff_1.png
Binary file added logs/no123/sqrtd91-xavier/last_diff_100.png
Binary file added logs/no123/sqrtd91-xavier/last_diff_50.png
Binary file added logs/no123/sqrtd91-xavier/last_layer_initial.png
Binary file added logs/no123/sqrtd91-xavier/loss.png
Binary file not shown.
Binary file added logs/no123/sqrtd91/first_1.png
Binary file added logs/no123/sqrtd91/first_100.png
Binary file added logs/no123/sqrtd91/first_50.png
Binary file added logs/no123/sqrtd91/first_diff_1.png
Binary file added logs/no123/sqrtd91/first_diff_100.png
Binary file added logs/no123/sqrtd91/first_diff_50.png
Binary file added logs/no123/sqrtd91/first_layer_initial.png
Binary file added logs/no123/sqrtd91/individualImage.png
Binary file added logs/no123/sqrtd91/last_1.png
Binary file added logs/no123/sqrtd91/last_100.png
Binary file added logs/no123/sqrtd91/last_50.png
Binary file added logs/no123/sqrtd91/last_diff_1.png
Binary file added logs/no123/sqrtd91/last_diff_100.png
Binary file added logs/no123/sqrtd91/last_diff_50.png
Binary file added logs/no123/sqrtd91/last_layer_initial.png
Binary file added logs/no123/sqrtd91/loss.png
Binary file added logs/no123/sqrtd91/set14.png
Binary file added logs/no123/sqrtd91/set5.png
Binary file added logs/no4/CLoss0.0001/first_1.png
Binary file added logs/no4/CLoss0.0001/first_100.png
Binary file added logs/no4/CLoss0.0001/first_50.png
Binary file added logs/no4/CLoss0.0001/first_diff_1.png
Binary file added logs/no4/CLoss0.0001/first_diff_100.png
Binary file added logs/no4/CLoss0.0001/first_diff_50.png
Binary file added logs/no4/CLoss0.0001/first_layer_initial.png
Binary file added logs/no4/CLoss0.0001/individualImage.png
Binary file added logs/no4/CLoss0.0001/last_1.png
Binary file added logs/no4/CLoss0.0001/last_100.png
Binary file added logs/no4/CLoss0.0001/last_50.png
Binary file added logs/no4/CLoss0.0001/last_diff_1.png
Binary file added logs/no4/CLoss0.0001/last_diff_100.png
Binary file added logs/no4/CLoss0.0001/last_diff_50.png
Binary file added logs/no4/CLoss0.0001/last_layer_initial.png
Binary file added logs/no4/CLoss0.001/first_1.png
Binary file added logs/no4/CLoss0.001/first_100.png
Binary file added logs/no4/CLoss0.001/first_50.png
Binary file added logs/no4/CLoss0.001/first_diff_1.png
Binary file added logs/no4/CLoss0.001/first_diff_100.png
Binary file added logs/no4/CLoss0.001/first_diff_50.png
Binary file added logs/no4/CLoss0.001/first_layer_initial.png
Binary file added logs/no4/CLoss0.001/individualImage.png
Binary file added logs/no4/CLoss0.001/last_1.png
Binary file added logs/no4/CLoss0.001/last_100.png
Binary file added logs/no4/CLoss0.001/last_50.png
Binary file added logs/no4/CLoss0.001/last_diff_1.png
Binary file added logs/no4/CLoss0.001/last_diff_100.png
Binary file added logs/no4/CLoss0.001/last_diff_50.png
Binary file added logs/no4/CLoss0.001/last_layer_initial.png
Binary file added logs/no4/CLoss0.01/first_1.png
Binary file added logs/no4/CLoss0.01/first_100.png
Binary file added logs/no4/CLoss0.01/first_50.png
Binary file added logs/no4/CLoss0.01/first_diff_1.png
Binary file added logs/no4/CLoss0.01/first_diff_100.png
Binary file added logs/no4/CLoss0.01/first_diff_50.png
Binary file added logs/no4/CLoss0.01/first_layer_initial.png
Binary file added logs/no4/CLoss0.01/individualImage.png
Binary file added logs/no4/CLoss0.01/last_1.png
Binary file added logs/no4/CLoss0.01/last_100.png
Binary file added logs/no4/CLoss0.01/last_50.png
Binary file added logs/no4/CLoss0.01/last_diff_1.png
Binary file added logs/no4/CLoss0.01/last_diff_100.png
Binary file added logs/no4/CLoss0.01/last_diff_50.png
Binary file added logs/no4/CLoss0.01/last_layer_initial.png
Binary file added logs/no4/L2/first_1.png
Binary file added logs/no4/L2/first_100.png
Binary file added logs/no4/L2/first_50.png
Binary file added logs/no4/L2/first_diff_1.png
Binary file added logs/no4/L2/first_diff_100.png
Binary file added logs/no4/L2/first_diff_50.png
Binary file added logs/no4/L2/first_layer_initial.png
Binary file added logs/no4/L2/individualImage.png
Binary file added logs/no4/L2/last_1.png
Binary file added logs/no4/L2/last_100.png
Binary file added logs/no4/L2/last_50.png
Binary file added logs/no4/L2/last_diff_1.png
Binary file added logs/no4/L2/last_diff_100.png
Binary file added logs/no4/L2/last_diff_50.png
Binary file added logs/no4/L2/last_layer_initial.png
Binary file added logs/no4/huber0.00001/first_1.png
Binary file added logs/no4/huber0.00001/first_100.png
Binary file added logs/no4/huber0.00001/first_50.png
Binary file added logs/no4/huber0.00001/first_diff_1.png
Binary file added logs/no4/huber0.00001/first_diff_100.png
Binary file added logs/no4/huber0.00001/first_diff_50.png
Binary file added logs/no4/huber0.00001/first_layer_initial.png
Binary file added logs/no4/huber0.00001/individualImage.png
Binary file added logs/no4/huber0.00001/last_1.png
Binary file added logs/no4/huber0.00001/last_100.png
Binary file added logs/no4/huber0.00001/last_50.png
Binary file added logs/no4/huber0.00001/last_diff_1.png
Binary file added logs/no4/huber0.00001/last_diff_100.png
Binary file added logs/no4/huber0.00001/last_diff_50.png
Binary file added logs/no4/huber0.00001/last_layer_initial.png
Binary file added logs/no4/huber0.6/first_1.png
Binary file added logs/no4/huber0.6/first_100.png
Binary file added logs/no4/huber0.6/first_50.png
Binary file added logs/no4/huber0.6/first_diff_1.png
Binary file added logs/no4/huber0.6/first_diff_100.png
Binary file added logs/no4/huber0.6/first_diff_50.png
Binary file added logs/no4/huber0.6/first_layer_initial.png
Binary file added logs/no4/huber0.6/individualImage.png
Binary file added logs/no4/huber0.6/last_1.png
Binary file added logs/no4/huber0.6/last_100.png
Binary file added logs/no4/huber0.6/last_50.png
Binary file added logs/no4/huber0.6/last_diff_1.png
Binary file added logs/no4/huber0.6/last_diff_100.png
Binary file added logs/no4/huber0.6/last_diff_50.png
Binary file added logs/no4/huber0.6/last_layer_initial.png
Binary file added logs/no4/huber0.9/first_1.png
Binary file added logs/no4/huber0.9/first_100.png
Binary file added logs/no4/huber0.9/first_50.png
Binary file added logs/no4/huber0.9/first_diff_1.png
Binary file added logs/no4/huber0.9/first_diff_100.png
Binary file added logs/no4/huber0.9/first_diff_50.png
Binary file added logs/no4/huber0.9/first_layer_initial.png
Binary file added logs/no4/huber0.9/individualImage.png
Binary file added logs/no4/huber0.9/last_1.png
Binary file added logs/no4/huber0.9/last_100.png
Binary file added logs/no4/huber0.9/last_50.png
Binary file added logs/no4/huber0.9/last_diff_1.png
Binary file added logs/no4/huber0.9/last_diff_100.png
Binary file added logs/no4/huber0.9/last_diff_50.png
Binary file added logs/no4/huber0.9/last_layer_initial.png
Binary file added logs/no4/loss.png
Binary file added logs/no4/network.png
Binary file added logs/no4/set14.png
Binary file added logs/no4/set5.png
Binary file added logs/no56/N2-10-4/finetune-real-bicubic/loss.png
Binary file added logs/no56/N2-10-4/finetune-real-bicubic/set14.png
Binary file added logs/no56/N2-10-4/finetune-real-bicubic/set5.png
Binary file added logs/no56/N2-10-4/finetune/first_1.png
Binary file added logs/no56/N2-10-4/finetune/first_100.png
Binary file added logs/no56/N2-10-4/finetune/first_50.png
Binary file added logs/no56/N2-10-4/finetune/first_diff_1.png
Binary file added logs/no56/N2-10-4/finetune/first_diff_100.png
Binary file added logs/no56/N2-10-4/finetune/first_diff_50.png
Binary file added logs/no56/N2-10-4/finetune/individualImage.png
Binary file added logs/no56/N2-10-4/finetune/last_1.png
Binary file added logs/no56/N2-10-4/finetune/last_100.png
Binary file added logs/no56/N2-10-4/finetune/last_50.png
Binary file added logs/no56/N2-10-4/finetune/last_diff_1.png
Binary file added logs/no56/N2-10-4/finetune/last_diff_100.png
Binary file added logs/no56/N2-10-4/finetune/last_diff_50.png
Binary file added logs/no56/N2-10-4/finetune/last_layer_initial.png
Binary file added logs/no56/N2-10-4/first_1.png
Binary file added logs/no56/N2-10-4/first_100.png
Binary file added logs/no56/N2-10-4/first_50.png
Binary file added logs/no56/N2-10-4/first_diff_1.png
Binary file added logs/no56/N2-10-4/first_diff_100.png
Binary file added logs/no56/N2-10-4/first_diff_50.png
Binary file added logs/no56/N2-10-4/first_layer_initial.png
Binary file added logs/no56/N2-10-4/individualImage.png
Binary file added logs/no56/N2-10-4/last_1.png
Binary file added logs/no56/N2-10-4/last_100.png
Binary file added logs/no56/N2-10-4/last_50.png
Binary file added logs/no56/N2-10-4/last_diff_1.png
Binary file added logs/no56/N2-10-4/last_diff_100.png
Binary file added logs/no56/N2-10-4/last_diff_50.png
Binary file added logs/no56/N2-10-4/last_layer_initial.png
Binary file added logs/no56/N2-14-4/finetune/first_1.png
Binary file added logs/no56/N2-14-4/finetune/first_100.png
Binary file added logs/no56/N2-14-4/finetune/first_50.png
Binary file added logs/no56/N2-14-4/finetune/first_diff_1.png
Binary file added logs/no56/N2-14-4/finetune/first_diff_100.png
Binary file added logs/no56/N2-14-4/finetune/first_diff_50.png
Binary file added logs/no56/N2-14-4/finetune/individualImage.png
Binary file added logs/no56/N2-14-4/finetune/last_1.png
Binary file added logs/no56/N2-14-4/finetune/last_100.png
Binary file added logs/no56/N2-14-4/finetune/last_50.png
Binary file added logs/no56/N2-14-4/finetune/last_diff_1.png
Binary file added logs/no56/N2-14-4/finetune/last_diff_100.png
Binary file added logs/no56/N2-14-4/finetune/last_diff_50.png
Binary file added logs/no56/N2-14-4/finetune/last_layer_initial.png
Binary file added logs/no56/N2-14-4/first_1.png
Binary file added logs/no56/N2-14-4/first_100.png
Binary file added logs/no56/N2-14-4/first_50.png
Binary file added logs/no56/N2-14-4/first_diff_1.png
Binary file added logs/no56/N2-14-4/first_diff_100.png
Binary file added logs/no56/N2-14-4/first_diff_50.png
Binary file added logs/no56/N2-14-4/first_layer_initial.png
Binary file added logs/no56/N2-14-4/individualImage.png
Binary file added logs/no56/N2-14-4/last_1.png
Binary file added logs/no56/N2-14-4/last_100.png
Binary file added logs/no56/N2-14-4/last_50.png
Binary file added logs/no56/N2-14-4/last_diff_1.png
Binary file added logs/no56/N2-14-4/last_diff_100.png
Binary file added logs/no56/N2-14-4/last_diff_50.png
Binary file added logs/no56/N2-14-4/last_layer_initial.png
Binary file added logs/no56/N2-8-3/finetune/first_1.png
Binary file added logs/no56/N2-8-3/finetune/first_100.png
Binary file added logs/no56/N2-8-3/finetune/first_50.png
Binary file added logs/no56/N2-8-3/finetune/first_diff_1.png
Binary file added logs/no56/N2-8-3/finetune/first_diff_100.png
Binary file added logs/no56/N2-8-3/finetune/first_diff_50.png
Binary file added logs/no56/N2-8-3/finetune/first_layer_initial.png
Binary file added logs/no56/N2-8-3/finetune/individualImage.png
Binary file added logs/no56/N2-8-3/finetune/last_1.png
Binary file added logs/no56/N2-8-3/finetune/last_100.png
Binary file added logs/no56/N2-8-3/finetune/last_50.png
Binary file added logs/no56/N2-8-3/finetune/last_diff_1.png
Binary file added logs/no56/N2-8-3/finetune/last_diff_100.png
Binary file added logs/no56/N2-8-3/finetune/last_diff_50.png
Binary file added logs/no56/N2-8-3/finetune/last_layer_initial.png
Binary file added logs/no56/N2-8-3/first_1.png
Binary file added logs/no56/N2-8-3/first_100.png
Binary file added logs/no56/N2-8-3/first_50.png
Binary file added logs/no56/N2-8-3/first_diff_1.png
Binary file added logs/no56/N2-8-3/first_diff_100.png
Binary file added logs/no56/N2-8-3/first_diff_50.png
Loading

0 comments on commit b72b431

Please sign in to comment.