Skip to content

deeplab tflite and mobilenet ssd cannot run serially #8971

@WindowsDriver

Description

@WindowsDriver

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am using the ltensorflow-lite-1.15.0.aar (for android device)
  • I am reporting the issue to the correct repository. (Model Garden official or research directory)
  • I checked to make sure that this issue has not been filed already.

1. The entire URL of the file you are using

mobilenet ssd model
http://download.tensorflow.org/models/object_detection/ssdlite_mobiledet_cpu_320x320_coco_2020_05_19.tar.gz
deeplab model
http://download.tensorflow.org/models/deeplabv3_mnv2_pascal_train_aug_2018_01_29.tar.gz

2. Describe the bug

Run Deeplab tflite model run successfully
Run mobilenet ssd model success separately
Run two models serially in a loop, for example: first run the SSD model, check the picture, close the model; then run the Deeplab model, check the picture, close the model; run the SSD model, check, close, and run the Deeplab model.....
The program will stop at the place where the Deeplab model is initialized. Sometimes it appears in one hour, sometimes it appears in 5 hours; this stop does not report an error or throw an exception.
A clear and concise description of what the bug is.

3. Steps to reproduce

  1. Convert the SSD and Deeplab models to tflite and put them on the android device.
  2. Initialize the SSD mobilenet model, perform target detection, and close the model
  3. Initialize the Deeplab model, perform segmentation, and close the model
  4. The second and third steps run alternately.
    At some point, a bug will appear, and the time of occurrence is uncertain.
    Steps to reproduce the behavior.

4. Expected behavior

It can run normally without stopping; or throw an exception when there is no result for a long time.

5. Additional context

no error log,
It just stops at the place where the model is initialized, no errors are reported or exceptions are thrown, and the program does not stop, just like entering an infinite loop, completely unresponsive

6. System information

android :
OS:Android 6.0
compileSdkVersion 25

defaultConfig {
    minSdkVersion 21
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    ndk {
        abiFilters 'armeabi-v7a'
    }
}

Metadata

Metadata

Labels

models:researchmodels that come under research directorytype:bugBug in the code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions