Skip to content

Logic while training FFDNET #22

@AnasShahzad1996

Description

@AnasShahzad1996

In your file model_train.m, you multiply the sigmas with an array of random numbers. Since randn produces negative numbers such as -3.14, the sigma will exceed 75 in the image. My question is that why do you multiply the sigmas with that array

K = randi(8);
labels = imdb.HRlabels(:,:,:,batch);
labels = data_augmentation(labels,K);
sigma_max = 75;
sigmas = (rand(1,size(labels,4))*sigma_max)/255;
<-------------- This line! ------------------>
new_arr = bsxfun(@times,randn(size(labels)), reshape(sigmas,[1,1,1,size(labels,4)]));
inputs = labels + new_arr;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions