CBDNet icon indicating copy to clipboard operation
CBDNet copied to clipboard

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

Open ACEaaaaa opened this issue 5 years ago • 3 comments

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) ;

ACEaaaaa avatar Sep 18 '18 13:09 ACEaaaaa

@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.

GuoShi28 avatar Sep 18 '18 13:09 GuoShi28

@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)~

AceCoooool avatar Sep 19 '18 02:09 AceCoooool

@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.

ACEaaaaa avatar Sep 19 '18 09:09 ACEaaaaa