tensorgraph icon indicating copy to clipboard operation
tensorgraph copied to clipboard

ERROR parsing training data

Open kikirizki opened this issue 8 years ago • 4 comments

I get error when I run the c++ code ERROR: parsing training data ERROR: parsing testing data terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) Aborted (core dumped) _

I think the error is caused by the wrong MNIST dataset location, where actually I should place the MNIST dataset ?

kikirizki avatar Sep 28 '17 06:09 kikirizki

I got this error too. Please help...

jennyHsiao avatar Oct 20 '17 04:10 jennyHsiao

@kikirizki I found that the data in MNIST_data is zipped in gz format. After I unzip them, It can work!

jennyHsiao avatar Oct 20 '17 04:10 jennyHsiao

I got same error : ERROR: parsing training data ERROR: parsing testing data terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 0) >= this->size() (which is 0) Aborted (core dumped)

After using unzip ubyte formate of MNIST_data in directory tensorflow/tensorflow/loader , I am getting same error. *Here my MNIST_data ubyte formate having 0-9 and A-Z data set.I am using this MNIST_data for training and testing . I generated .pb model and I am using this while predicting.

brijeshg avatar Nov 02 '17 06:11 brijeshg

@brijeshg You should put the unzip ubyte file into MNIST_data folder

jennyHsiao avatar Nov 08 '17 08:11 jennyHsiao