Giter Site home page Giter Site logo

Run time error report about deepcl HOT 10 CLOSED

hughperkins avatar hughperkins commented on June 12, 2024
Run time error report

from deepcl.

Comments (10)

hughperkins avatar hughperkins commented on June 12, 2024

Ok. Can you confirm the md5 checksum of the datafiles please? On my machine I have the following checksums:

$ md5sum /mnist/*
67e63534a144e1be3db6c9bfca1a9ece  /mnist/model.txt
85a9c3dba219af50242a99220c272481  /mnist/output.dat
5422ae00443ee2294976a2c283dba551  /mnist/out.txt
9d835bc9f2ddd0fc6dfa6cead8cb4e00  /mnist/t10k-cat.mat
1c91e98bb03fcf9bb35e98a74dd1027c  /mnist/t10k-dat.mat
2646ac647ad5339dbf082846283269ea  /mnist/t10k-images-idx3-ubyte
27ae3e4e09519cfbb04c329615203637  /mnist/t10k-labels-idx1-ubyte
c4f731158903901b4b5999ccab5f4bd8  /mnist/train-cat.mat
c9b44655a5d1a77a49aae0f4be446d30  /mnist/train.dat
8740d0f1d641fac583a09d38f7fa7a6d  /mnist/train-dat.mat
6bbc9ace898e44ae57da46a324031adb  /mnist/train-images-idx3-ubyte
6bbc9ace898e44ae57da46a324031adb  /mnist/train-images.idx3-ubyte
a25bea736e30d166cdddb491f175f624  /mnist/train-labels-idx1-ubyte
a25bea736e30d166cdddb491f175f624  /mnist/train-labels.idx1-ubyte

from deepcl.

 avatar commented on June 12, 2024

I do not know the other files' use. The md5 checksums of the mnist data I download from [1] are:

2646ac647ad5339dbf082846283269ea ./mnist/t10k-images.idx3-ubyte
27ae3e4e09519cfbb04c329615203637 ./mnist/t10k-labels.idx1-ubyte
6bbc9ace898e44ae57da46a324031adb ./mnist/train-images.idx3-ubyte
a25bea736e30d166cdddb491f175f624 ./mnist/train-labels.idx1-ubyte

[1] http://yann.lecun.com/exdb/mnist/

from deepcl.

hughperkins avatar hughperkins commented on June 12, 2024

Hmmm... well those md5 checksums look correct. Guess I need to fire up a win box... In case you're wondering, it does definitely run on my own ubuntu 64-bit box:

deepcl_train datadir=/mnist trainfile=train-images-idx3-ubyte validatefile=t10k-images-idx3-ubyt
...
after epoch 1 13134 ms
 training loss: 19359.6
 train accuracy: 53898/60000 89.83%
test accuracy: 9697/10000 96.97%
after tests 713 ms
record epoch=1
wrote weights to file, filesize 173KB

after epoch 2 12740 ms
 training loss: 5911.4
 train accuracy: 58161/60000 96.935%
test accuracy: 9814/10000 98.14%
after tests 713 ms
record epoch=2
wrote weights to file, filesize 173KB

from deepcl.

hughperkins avatar hughperkins commented on June 12, 2024

Hmmm. Well. I confirm I get the same error message on Windows.

forward try kernel 1
   ... seems valid
ForwardAuto: kernel 1 0ms
clblas teardown
Something went wrong: Label 28 exceeds number of softmax planes 10

Can you paste a dummy message into this thread, so that it stays in my 'notifications' please? (otherwise it falls out of my 'horizon')

from deepcl.

 avatar commented on June 12, 2024

Thank you very much!

from deepcl.

hughperkins avatar hughperkins commented on June 12, 2024

Oh, I see what's happening. Basically, the filename of hte labels file is determined by doing:

    string labelsFilePath = replace(imagesFilePath, "-images-idx3-ubyte", "-labels-idx1-ubyte");

You can call this hacky ;-) And it is. Anyway, it fails, if the filenames are using . instead of -, in between images and idx3. I will simply add a new line:

    string labelsFilePath = replace(imagesFilePath, "-images-idx3-ubyte", "-labels-idx1-ubyte");
    labelsFilePath = replace(labelsFilePath, "-images.idx3-ubyte", "-labels-idx1-ubyte");

That should probalby fix it

from deepcl.

hughperkins avatar hughperkins commented on June 12, 2024

Addressed in b32766f . Can you pull down the latest version, and retry?

from deepcl.

hughperkins avatar hughperkins commented on June 12, 2024

(Hmmm, probably would be better if MnistLoader replaced "images" with "labels" and "idx3" with "idx1". Anyway, I think the current version should work for you now?)

from deepcl.

 avatar commented on June 12, 2024

Yes, it works. Thank you very much! 👍 :-)

from deepcl.

hughperkins avatar hughperkins commented on June 12, 2024

Cool :-)

from deepcl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.