Skip to content

Problem loading custom model #61

@Corallo

Description

@Corallo

Hi, I have the same issue when I loaded my own tflite model.
I have already replaced the path to my model in the Dockerfile.model and env.aarch64.artpec8:

Dockerfile.model:

# Get custom model
ADD ./models/yolov4/train-608_best.tflite models/
ADD ./models/yolov4/labels.txt models/

env.aarch64.artpec8:

MODEL_PATH=/models/train-608_best.tflite
OBJECT_LIST_PATH=/models/labels.txt
INFERENCE_SERVER_IMAGE=axisecp/acap-runtime:aarch64-containerized
INFERENCE_SERVER_ARGS="-m /models/train-608_best.tflite -j 12" 

There is the error I encountered:
image

error message:

ERROR in Inference: Failed to load model train-608_best.tflite (Could not load model: Asynchronous connection has been closed)

<_InactiveRpcError of RPC that terminated with:
object-detector-python_1 | status = StatusCode.UNAVAILABLE
object-detector-python_1 | details = "failed to connect to all addresses"
object-detector-python_1 | debug_error_string = "{"created":"@1659425957.027178280","description":"Failed to pick subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3217,"referenced_errors":[{"created":"@1659425957.027173640","description":"failed to connect to all addresses","file":"src/core/lib/transport/error_utils.cc","file_line":165,"grpc_status":14}]}"

Environment

  • Axis device model: P3265-LVE
  • Axis device firmware version: 10.11.76 (also tried 10.10.73 but didn't work)
  • SDK VERSION: 1.2.1
  • docker daemon with Compose: 1.2.3

Please help me, thanks in advance.

Originally posted by @JENNSHIUAN in #50 (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