Skip to content

How to run two machine learning models in one CV application? #184

Answered by Corallo
ThenoobMario asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, yes it is possible.

You would have to add another -m flag here:
https://github.com/AxisCommunications/acap-computer-vision-sdk-examples/blob/main/object-detector-python/docker-compose.yml#L28
so that it looks like:
entrypoint: ["/opt/app/acap_runtime/acapruntime", "-m", "${MODEL_PATH}", "-m", "${MODEL_PATH_2}", "-j", "${INFERENCE_CHIP}"]
You define the new model path here:
https://github.com/AxisCommunications/acap-computer-vision-sdk-examples/blob/main/object-detector-python/config/env.aarch64.artpec8
And add the model to this docker file:
https://github.com/AxisCommunications/acap-computer-vision-sdk-examples/blob/main/object-detector-python/Dockerfile.model

Then, in your applicatio…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ThenoobMario
Comment options

@Corallo
Comment options

@ThenoobMario
Comment options

Answer selected by Corallo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants