Intel® Edge Software Hub
Get help on building Edge Software Hub solutions for edge compute node
Announcements
Welcome to the Intel Community! If you like the answer to your question, please mark it as 'Accepted Solution' to help others.

The Edge Software Vision Package for Red Hat Enterprise Linux is now available here.

Learn more about developing on Intel® Hardware and Software here.

can't import training module

fa2233
New Contributor I
516 Views

i copy the pcb file and rename it name also rename all the file under it  and change some content  to produce another module. the EIS still can't  recognize it as a module

Labels (1)
0 Kudos
5 Replies
Jia-Shing_W_Intel
Moderator
505 Views

Did you rebuild the ia_video_analytics Docker image? As the model files are copied into the image at build time, it takes a rebuild to add new ones to a container.

fa2233
New Contributor I
498 Views
fa2233
New Contributor I
496 Views

the ia_video_analytics and ia_video_ingestion has the COPY python floder cmd but  i use ls command  find out that the udfs/python floder not update,don't contain new module

i copy the udfs/python floder to /IEdgeInsights/VideoIngestion and /IEdgeInsights/VideoAnalytics floder and add

"COPY udfs ./common/udfs "
"RUN ls ${GO_WORK_DIR}/common/udfs/python"

two cmd to ia_video_analytics and ia_video_ingestion dockerfile  and now it works 

 

how to slove this without copy this file by myself

Jia-Shing_W_Intel
Moderator
478 Views

Do you happen to have DOCKER_REGISTRY set in .env and have images with the same name tagged both locally as well as on the registry?

REPOSITORY TAG IMAGE ID CREATED SIZE
localhost:5000/ia_video_analytics 2.2 367332056d5d About a minute ago 3.87GB
localhost:5000/ia_common 2.2 98d78122bfdd 6 minutes ago 1.7GB
localhost:5000/ia_data_analytics 2.2 71dde396d2f1 2 hours ago 2.04GB
localhost:5000/ia_dc 2.2 8b5a8f83c8a2 2 hours ago 2.75GB
localhost:5000/ia_influxdbconnector 2.2 b474f0541df7 2 hours ago 1.95GB
localhost:5000/ia_telegraf 2.2 3929d999f8ec 2 hours ago 1.77GB
localhost:5000/ia_grafana 2.2 1e3972270cf6 2 hours ago 1.75GB
localhost:5000/ia_visualizer 2.2 92f4bd81b431 2 hours ago 1.9GB
localhost:5000/ia_video_ingestion 2.2 b672beffe16a 2 hours ago 5.5GB
localhost:5000/ia_etcd_ui 2.2 3285d4431468 2 hours ago 1.63GB
localhost:5000/ia_openvino_base 2.2 562d6f93d5c6 2 hours ago 3.52GB
localhost:5000/ia_eisbase 2.2 abaa0e336fdc 2 hours ago 1.51GB
ia_visualizer 2.2 2f0b68d75912 10 days ago 1.9GB
ia_data_analytics 2.2 2f1d0abf162e 11 days ago 2.04GB
ia_dc 2.2 872e0382abb1 11 days ago 2.75GB
ia_influxdbconnector 2.2 3356b0de1e21 11 days ago 1.94GB
ia_telegraf 2.2 80098e4a861d 11 days ago 1.77GB
ia_grafana 2.2 19efa3db5a4e 11 days ago 1.75GB
ia_video_analytics 2.2 10771f2fca48 11 days ago 3.87GB
ia_video_ingestion 2.2 a16c3d05c636 11 days ago 5.47GB
ia_etcd_ui 2.2 b08456859e27 11 days ago 1.63GB
ia_openvino_base 2.2 60026d4595a2 11 days ago 3.51GB
ia_common 2.2 a3ad79621dc0 11 days ago 1.7GB
ia_eisbase 2.2 3a32db9da4e7 11 days ago 1.51GB
ia_etcd_provision 2.2 0ff4f3a0e1f6 11 days ago 260MB
ia_etcd 2.2 dd130a5bb288 11 days ago 248MB
ubuntu 18.04 2eb2d388e1a2 3 weeks ago 64.2MB
registry 2 2d4f4b5309b1 8 weeks ago 26.2MB
python 3.7-slim 7e61acc68112 6 months ago 179MB

The problem is, it is expected to have this "DOCKER_REGISTRY: ${DOCKER_REGISTRY}" args in each and every service in docker-compose.yml like below. Somehow, it is missing.

ia_eisbase:
  build:
    context: $PWD/../common
    dockerfile: $PWD/../common/dockerfiles/Dockerfile.eisbase
    args:
      UBUNTU_IMAGE_VERSION: ${UBUNTU_IMAGE_VERSION}
      EIS_VERSION: ${EIS_VERSION}
      DOCKER_REGISTRY: ${DOCKER_REGISTRY}
    image: ${DOCKER_REGISTRY}ia_eisbase:${EIS_VERSION}

Because of this, each time you rebuild the images, Docker actually use the local ia_common image to supply the common/udfs directory, which is out of date and doesn't contain the new model files you added.

I'll let the developers know and make sure it's fixed in a coming release. In the meantime, please manually add this DOCKER-REGISTRY argument in each services, like my attachment. Good catch and sorry about the inconvenience.

Jia-Shing_W_Intel
Moderator
475 Views

Correction: for ia_eisbase, you don't need this DOCKER_REGISTRY argument. It's needed only for ia_common and other services.

Reply