JackyTung / tensorgraph

The tensorgraph is a example show how to generate, load graph from tensorflow
Other
37 stars 20 forks source link

ERROR parsing training data #4

Open kikirizki opened 7 years ago

kikirizki commented 7 years ago

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 ?

jennyHsiao commented 6 years ago

I got this error too. Please help...

jennyHsiao commented 6 years ago

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

brijeshg commented 6 years ago

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.

jennyHsiao commented 6 years ago

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