• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Application fails to get file list

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm currently working on an Android application (written in Java) using Google ML and TensorFlow. The application is centered around object detection during a live camera stream using the device camera, and uses a TensorFlow Lite model as a custom library to source file lists from. My issue is that I ran the application to see if it would print the list size, and the application launches just fine; camera preview works, app doesn't crash. However, I'm only to be met with this error;

Logcat:


According to my research, some results state that that the file path or root is flawed in some capacity. However, I have the .tflite model placed within my asset folder, which leads me to wonder why exactly I'm receiving these errors and how I can work on resolving them. My Log.d("TAG", "onSuccess" + detectedObjects.size()); in my code below is supposed to print the object list size, but is clearly not.

MainActivity.java:


Also, just for clarification, my application name is ObjectDetection, this would be the file path of just how the .tflite model is placed within my asset folder; ObjectDetection > app > src > main > assets > ClassifierModel.tflite
 
Mason Buchanan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it helps, the exact TensorFlow Lite model that I'm using is called "mobilenet_v1_0.75_192_quantized_1_metadata_1.tflite"
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic