-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
Description
Bug Description
I get the following inference results from DL Streamer. The model tested fine on Geti with 96% accuracy.
- Normal image: 70% normal
{"objects":[{"classification_layer_name:output1":{"confidence":0.6993954181671143,"label":"Normal","model":{"name":"Model6"}},"h":471,"tensors":[{"confidence":0.6993954181671143,"label":"Normal","layer_name":"output1","layout":"ANY","model_name":"Model6","name":"classification_layer_name:output1","precision":"FP32"}],"w":640,"x":0,"y":0}],"resolution":{"height":471,"width":640},"timestamp":0} - Anomaly image: 99% normal
{"objects":[{"classification_layer_name:output1":{"confidence":0.9920363426208496,"label":"Normal","model":{"name":"Model6"}},"h":506,"tensors":[{"confidence":0.9920363426208496,"label":"Normal","layer_name":"output1","layout":"ANY","model_name":"Model6","name":"classification_layer_name:output1","precision":"FP32"}],"w":640,"x":0,"y":0}],"resolution":{"height":506,"width":640},"timestamp":0} - Totally different image: 100% normal
System Setup
Processor: MTL-H 155H
OS: Ubuntu 24.04 LTS
DL Streamer: main branch 9 June 2025
PADIM model from Geti 2.10.1
Model XML: model-xml.txt
Reproducible Steps
Build Docker Image
$ sudo snap install docker
$ cd /home/eka/Workspace/
$ git clone https://github.com/open-edge-platform/edge-ai-libraries.git
$ cd /home/eka/Workspace/edge-ai-libraries/libraries/dl-streamer/thirdparty
$ rm -r spdlog
$ git clone https://github.com/gabime/spdlog.git
$ cd spdlog
$ git checkout -b 6fa3601
$ cd /home/eka/Workspace/edge-ai-libraries/libraries/dl-streamer
$ sudo docker build \
-f /home/eka/Workspace/edge-ai-libraries/libraries/dl-streamer/docker/devel/ubuntu24/dlstreamer_dev_ubuntu24.Dockerfile \
-t dlstreamer:main-dev-ubuntu24 .
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
dlstreamer main-dev-ubuntu24 2ec360ae4177 17 minutes ago 7.83GB
Run Docker Container
$ sudo docker run \
-v "/home/eka/Workspace/geti/datasets/anomaly/inference/a.jpg":/home/dlstreamer/intel/dl_streamer/datasets/a.jpg \
-v "/home/eka/Workspace/geti/datasets/anomaly/inference/n.jpg":/home/dlstreamer/intel/dl_streamer/datasets/n.jpg \
-v "/home/eka/Workspace/geti/models/PADIM_2v2_FP16/PADIM_2v2_FP16/deployment/Anomaly classification/model/model.xml":/home/dlstreamer/intel/dl_streamer/models/intel/geti-anomaly-detection/padim/FP16/geti-anomaly-detection.xml \
-v "/home/eka/Workspace/geti/models/PADIM_2v2_FP16/PADIM_2v2_FP16/deployment/Anomaly classification/model/model.bin":/home/dlstreamer/intel/dl_streamer/models/intel/geti-anomaly-detection/padim/FP16/geti-anomaly-detection.bin \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--net=host \
--privileged \
--user root \
--device /dev/dri \
-it --rm \
dlstreamer:main-dev-ubuntu24
Run Inference
# cd /home/dlstreamer/dlstreamer/samples/gstreamer/gst_launch/geti_deployment
# export MODELS_PATH="/home/dlstreamer/intel/dl_streamer/models/"
# bash geti_sample.sh \
anomaly-detection \
intel/geti-anomaly-detection/padim/FP16/geti-anomaly-detection.xml \
CPU \
ie \
/home/dlstreamer/intel/dl_streamer/datasets/a.jpg \
json
a.jpg is the image with anomaly. Following result shows 99% Normal.
# cat output.json
{"objects":[{"classification_layer_name:output1":{"confidence":0.9920363426208496,"label":"Normal","model":{"name":"Model6"}},"h":506,"tensors":[{"confidence":0.9920363426208496,"label":"Normal","layer_name":"output1","layout":"ANY","model_name":"Model6","name":"classification_layer_name:output1","precision":"FP32"}],"w":640,"x":0,"y":0}],"resolution":{"height":506,"width":640},"timestamp":0}
Root Cause Analysis
No response