ERROR READING FPS: self.all_stream_fps[stream_index].update_fps() KeyError: 'stream2'

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) AGX ORIN
• DeepStream Version6.2
I’m trying to read the FPS across 4 input sources. However it shows the below error"
File “/home/orin/Desktop/DeepStream/pipeline2.py”, line 195, in sgie_sink_pad_buffer_probe
perf_data.update_fps(stream_index)
File “/home/orin/Desktop/DeepStream/sources/deepstream_python_apps/apps/Multi/common/FPS.py”, line 67, in update_fps
self.all_stream_fps[stream_index].update_fps()
KeyError: ‘stream2’

There may be a problem with your pipeline, or with your stream2. Since this part is open source, you can add some log and debug yourself first.

running 2 input sources work well even with 4 input sources. This issue only raised when calculating the FPS. FPS can measure with 2 input sources “stream0” “stream1” however it doesn’t measure more than these 2 so it shows an error in stream2

I tried that with 4 streams using our demo deepstream-test3. It worked well. You can try that with the command below.

python3 deepstream_test_3.py -i file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.mp4 file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.mp4 file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.mp4  file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.mp4  --pgie nvinfer -c config_infer_primary_peoplenet.txt --no-display --silent

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.