GuoShi28 / CBDNet

Code for "Toward Convolutional Blind Denoising of Real Photographs", CVPR 2019
Apache License 2.0
501 stars 92 forks source link

there is a error when I run Test_Patchs.m , How to solve this problem? #3

Open ACEaaaaa opened 6 years ago

ACEaaaaa commented 6 years ago

Test_Patches Warning: Name is nonexistent or not a directory: utilities In path (line 109) In addpath (line 86) In Test_Patches (line 2) Error using dagnn.Layer/load (line 200) No property ignoreAverage for a layer of type dagnn.Loss. Error in dagnn.DagNN.loadobj (line 28) block.load(struct(s.layers(l).block)) ; Error in Test_Patches (line 22) net = dagnn.DagNN.loadobj(net) ;

GuoShi28 commented 6 years ago

@ACEaaaaa, Hi, There are two things you need to confirm. (1) load model correctly. load('.\models\CBDNet.mat'); need to change to load('./models/CBDNet.mat'); for linux. (2) compile MatconvNet correctly. If you have other questions, please feel free to contact me.

AceCoooool commented 6 years ago

@ACEaaaaa I think this is due to matconvnet's version. (You can check /matconvnet-1.0-betaxx/matlab/+dagnn/Loss.m, whether there is property of ignoreAverage = false --- For example, beta20 without this property)~

ACEaaaaa commented 6 years ago

@ACEaaaaa, Hi, There are two things you need to confirm. (1) load model correctly. load('.\models\CBDNet.mat'); need to change to load('./models/CBDNet.mat'); for linux. (2) compile MatconvNet correctly. If you have other questions, please feel free to contact me.

My computer system is windows. When I run Test_Patchs in a linux environment. It can running successfully.