hughperkins / DeepCL

OpenCL library to train deep convolutional neural networks
Mozilla Public License 2.0
866 stars 200 forks source link

why faileded to open file: ../data/cifar10/train-dat.mat #114

Closed gjcjdghks closed 7 years ago

gjcjdghks commented 7 years ago

first, i made dataset (test-dat.mat, test-cat.mat, train-cat.mat, train-dat.mat ) using cifar-to-mat ./data/cifar (this is commandline). and i input ~/DeepCL$ deepcl_train dataset=cifar10 datadir=./data/cifar10 BUT! failed to open file... what`s the matter?????

Numerio commented 7 years ago

The deepcl_train seems to ignore the datadir argument. So basically it looks always in "../data/cifar10".

To fix your problem do it this way (linux) :

cp cifar-10-batches-bin data/cifar10 -R

The program will look for "../data" that's why you need to cd into build (or in another subdirectory), hope that helps.

Numerio commented 7 years ago

@hughperkins what about inverting the custom parameters order with the presets in train.cpp so that custom variables can be overridden?

hughperkins commented 7 years ago

Sure, sounds good :-) . PR welcome. Preferably with a unit-test, so it's easy for me to check :-)

Numerio commented 7 years ago

Ok, I'll look at it in the next days :)