How to load the FaceDetect model in deepstream testapp1

• Hardware Platform (Jetson / GPU) : Jetson Xavier NX
• DeepStream Version: 6.2
• JetPack Version (valid for Jetson only):5.1

Hai ,
i need to run FaceDetect in jetson xavier NX to detect faces in deepstream testapp1 ,For that i have downloaded the model
The downloaded zip contains model.etlt and int8_calibration.txt files.
I am just confused what all changes i need to make in this configuration file to work.
I had tried multiple times but failed

THESE ARE TH CHANGES I HAVE MADE IN THE CONFIGURATION FILE…WHAT I NEED TO DO WITH THE TEXT FILE ALONG WITH THE MODEL PLEASE HELP

[property]
gpu-id=0
net-scale-factor=0.0039215697906911373
#model-file=…/…/…/…/samples/models/Primary_Detector/resnet10.caffemodel
#proto-file=…/…/…/…/samples/models/Primary_Detector/resnet10.prototxt
tlt-encoded-model=./model.etlt
model-engine-file=./resnet10.caffemodel_b1_gpu0_int8.engine
labelfile-path=…/…/…/…/samples/models/Primary_Detector/labels.txt
#int8-calib-file=…/…/…/…/samples/models/Primary_Detector/cal_trt.bin
force-implicit-batch-dim=1
batch-size=1
network-mode=1
num-detected-classes=1
interval=0
gie-unique-id=1
output-blob-names=conv2d_bbox;conv2d_cov/Sigmoid
#scaling-filter=0
#scaling-compute-hw=0
cluster-mode=2

[class-attrs-all]
pre-cluster-threshold=0.2
topk=20
nms-iou-threshold=0.5

-------------------------------------------------------------------------------------------------------------------------------------------
THANKS IN ADVANCE

You can refer the link below: config_infer_primary_facenet.txt
Just change the facenet.etlt to model.etlt.

Thanksss
I have another question. I want to use DeepStream for iris detection, specifically the round part inside the eye. I would like to perform custom training using NVIDIA TAO. Could you please suggest which pretrained model I should use for training?
image
Or is it possible to train a model in TAO without using pretrained model(From scratch)

hi the code has the referred to facenet engine file which i didn’t find in the respiratory
model-engine-file=…/…/models/faciallandmark/facenet.etlt_b1_gpu0_int8.engine
where can i find this file?

As per FaceDetect TAO page that the model is supported for DS 6.0, can it still work with 6.2?

About this question, please open a new topic on the TAO Forum. Thanks

1 Like

The model-engine-file will be automatically generated during the first run. Anout the paremeters of the config file, you can refer to the link below:
https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvinfer.html#id2
And yes, it still work with DS6.2.

I’m trying to do something similar to Test-1 sample. so i have only to add the below line as it is and it will be auto generated?
file=…/…/models/faciallandmark/facenet.etlt_b1_gpu0_int8.engine
and if i’m using another TRT file with another name than facenet.etlt i have to modify the line to
file=…/…/FileName.etlt_b1_gpu0_int8.engine

But axnet the engine file has dependency on the platform where it generated.

Please refer to the link I attached, the name is related to the configuration of many other parameters. You can comment out this field and wait for the engine file to be generated.

This is the config file
model-file=/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_tao_apps/models/faciallandmark/facenet.etlt
#proto-file=…/…/…/…/samples/models/Primary_Detector/resnet10.prototxt
model-engine-file=/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_tao_apps/models/faciallandmark/facenet.etlt_b1_gpu0_int8.engine
labelfile-path=/opt/nvidia/deepstream/deepstream-6.2/samples/models/tao_pretrained_models/deepstream_tao_apps/configs/facial_tao/labels_facenet.txt
int8-calib-file=/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_tao_apps/models/faciallandmark/int8_calibration.txt

and i’m getting the below error

You should make sure there is facenet.etlt file in the /opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_tao_apps/models/faciallandmark/ path. Please read the README of deepstream_tao_apps. We suggest that you do not modify the configuration file first and follow the instructions to run that app.

yes it exists in the folder.
I already did but since i wanted the input to use the USB camera i wanted to write over test-1

Hi @axnet , could you open a new topic and describe the detailed information of your environment about your problem? The problem you encountered is not the same as this topic.