Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CatDogRecognition example fails with NPE #7

Open
swpalmer opened this issue Feb 13, 2021 · 0 comments
Open

CatDogRecognition example fails with NPE #7

swpalmer opened this issue Feb 13, 2021 · 0 comments

Comments

@swpalmer
Copy link

After label and training files are accessed successfully, there is an attempt to access a null File.

INFO: Creating neural network...
Exception in thread "main" java.lang.NullPointerException
at java.base/java.io.FileInputStream.(FileInputStream.java:145)
at java.base/java.io.FileReader.(FileReader.java:75)
at deepnetts.util.FileIO.createFromJson(FileIO.java:196)
at javax.visrec.ri.spi.BufferedImageClassifierFactory.create(BufferedImageClassifierFactory.java:47)
at javax.visrec.spi.ClassifierFactoryService.createNeuralNetImageClassifier(ClassifierFactoryService.java:55)
at javax.visrec.ml.classification.NeuralNetImageClassifier$Builder.build(NeuralNetImageClassifier.java:167)
at jsr381.example.CatDogRecognition.main(CatDogRecognition.java:35)

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

No branches or pull requests

1 participant