I'm trying to use this pre-trained model in Java. I'm using Intellij Idea and I've added library dependency of TensorFlow and Added OpenCV via project structure.
2023-12-01 11:19:51.689467: W tensorflow/core/framework/op_kernel.cc:1651] OP_REQUIRES failed at conv_ops.cc:491 : Invalid argument: input depth must be evenly divisible by filter depth: 1 vs 3
Exception in thread "main" java.lang.IllegalArgumentException: input depth must be evenly divisible by filter depth: 1 vs 3
[[{{node InceptionResnetV1/Conv2d_1a_3x3/convolution}}]]
at org.tensorflow.Session.run(Native Method)
at org.tensorflow.Session.access$100(Session.java:48)
at org.tensorflow.Session$Runner.runHelper(Session.java:326)
at org.tensorflow.Session$Runner.run(Session.java:276)
at DirectTensorflowTest.main(DirectTensorflowTest.java:111)
Someone Guide me how can I successfully use this model in java using Tensorflow?
I'm trying to use this pre-trained model in Java. I'm using Intellij Idea and I've added library dependency of TensorFlow and Added OpenCV via project structure.
libraryDependency += "org.tensorflow" % "tensorflow" % "1.15.0"
I've downloaded the VGGFace2 pre-trained model, and trying to use its .pb file and find face embeddings.
Code:
I've taken some help from https://github.com/davidsandberg/facenet/issues/659 but still getting error:
Someone Guide me how can I successfully use this model in java using Tensorflow?