Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Can't get the Deep Learning sample application to work properly #141

Open
dev0p0 opened this issue Sep 22, 2015 · 13 comments
Open

Can't get the Deep Learning sample application to work properly #141

dev0p0 opened this issue Sep 22, 2015 · 13 comments

Comments

@dev0p0
Copy link

dev0p0 commented Sep 22, 2015

I have downloaded the "deep learning with accord.net" sample application, but when I execute the .exe file I only get the loading image and nothing is actually loaded. I mean is it supposed to connect to the Internet to get the picture of the numbers? or is it supposed to generate the picture for the numbers itself?

@cesarsouza
Copy link
Member

cesarsouza commented Sep 28, 2015

Hi there,

The database comes with the application itself. Please make sure to actually extract the contents of the zip file to a folder in your computer. If you downloaded the application as a zip file and simple double-click it, it might be the case that not all files were uncompressed by the time the application needs them.

@pmbrito
Copy link

pmbrito commented Oct 24, 2015

Hello,
I also downloaded the deep learning with accord.net sample and I tried to compile the sources and change the database to match a knn classification problem that I'm solving.

My development settings are : windows ultimate x64, VS Community 2015. I open the solution but it had the properties panel with the resources and settings invalidated and all references were with a yellow exclamation triangle.

So I created a new project/solution and imported everything. I can run the sample but the bindings are not working, so I had to modify the code to remove the bindings.

What I want to ask, is if you are using some extension, I saw this comment :

// The PropertyChanged event doesn't needs to be explicitly raised
// from this application. The event raising is handled automatically
// by the NotifyPropertyWeaver VS extension using IL injection.

And what development settings are you using?

Thanks,

PB

@ghost
Copy link

ghost commented Aug 18, 2016

The sample database is formatted in optdigits-tra.txt.

I get stuck in the image loading process, too. Any suggestion?

@zgrkpnr
Copy link

zgrkpnr commented Aug 18, 2016

@mechenghn If you check those text files, you may see that label numbers have a space before them. In my case, that was the issue.

@ghost
Copy link

ghost commented Aug 25, 2016

@zgrkpnr : how did you solve it, if you have done?

@FireDragonGameStudio
Copy link
Contributor

Hy, I have the same problem, that the base data is not loaded! I already removed the spaces, as suggested by @zgrkpnr, but that didn't help. Any suggestions, what went wrong?

@cesarsouza
Copy link
Member

Hi @FireDragonGameStudio,

Have you fully uncompressed the .zip to a separate folder, and run it from there?

Regards,
Cesar

@cesarsouza
Copy link
Member

I am in the process of repackaging all sample applications, I might be able to go through the Deep Learning one soon.

@FireDragonGameStudio
Copy link
Contributor

Hy @cesarsouza ,
thank you for your reply. Yes, I double checked it, everything was extracted. I looked into the code and saw, that the data is actually loaded (the load method of optdigits.cs is called), but there is no reponse or possibility to start the learning process via the UI (pls see the attached screenshot). Hopefully that helps a litte. :) In addition to get it up and running, I had to replace the icons, as there was no appbar_play, etc. available in XAML Oo

accord net_deeplearning

@FireDragonGameStudio
Copy link
Contributor

As is mentioned in the previous post #1013 even a simplified version of the DeepNeuralNetworking is not working properly. Is this maybe related to this issue?

@cesarsouza
Copy link
Member

cesarsouza commented Nov 28, 2017

Hi @FireDragonGameStudio,

Thanks for the input! But that's definitely not the case, I've just executed the sample application from the Samples solution and this is what I just got:

image

I had finished to update all sample applications in the wiki and website pages a few days ago. Would you like to give it a them a try to confirm whether it is working? If there is an issue, I believe it should be something related to the user locale. Most of my tests are actually done using the fr-FR and pt-BR locales. In both of those, commas are used as the decimal separator and dots as the thousands separators. It could be that some of the files in the sample application contain decimal/thousand separators which are interpreted in a different way in the en-US or other locales than in my current tests, and thus I didn't encounter those issues in my tests (yet).

To use the sample application I've:

Then the following screen appeared:

image

As the next steps, I've:

  • Started by hitting the big play button;
  • Clicked the second hidden layer (written 10);
  • Clicked "Use supervised learning";
  • Clicked the play button again;
  • Clicked the down arrow next to the "Optdigits dataset" label;

and I got:

image

PS: you can get slightly better results if you mark the "fine-tune entire network" and click the play button again

If you would like, please let me know if you (or anyone else who would like to try) finds the issue while following these instructions!

Hope it helps,
Cesar

@FireDragonGameStudio
Copy link
Contributor

FireDragonGameStudio commented Nov 29, 2017

Hy @cesarsouza ,
I downloaded the last version and followed your instructions. Works perfect, thank you! :)

Best regards :)

@dev0p0
Copy link
Author

dev0p0 commented Nov 29, 2017

@cesarsouza
It seems to be working ok now, let me just play with it a little bit and see if it keeps up ;) thank you so much for the fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants