Skip to content

CatDogRecognition example fails with NPE #7

Description

@swpalmer

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions