OFA support input image resolution and output grid size

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.6
[*] DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
[*] Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
[*] other

SDK Manager Version
[*] 1.9.2.10884
other

Host Machine Version
[*] native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

i run nvmedia sample app flowsense – The test application demonstrates the optical flow pipeline.
when input 19201080 image and calculate 1x1 grid optical flow, the cost time is about 10 second/frame
when input 1920
1080 image and calculate 2x2 grid optical flow, the cost time is about 23 millsecond/frame.
Is OFA not support 1x1 grid optical flow for 1920*1080 input image?

  1. input 1920*1080, yuv400 gridSize 1x1, high quality preset, profile time about 10 second/frame
    ./flow_sense -input fisheye_1920_1080_yuv400.yuv -width 1920 -height 1080 -chromaFormat 0 -o flow.bin -co cost.bin -gridSize 0 -profile 2 -preset 0 -nframes 3
    extension: yuv
    extension: yuv
    NvMOfa creation successful
    NvMOfa initialization successful
    sync object allocation successful
    Input and Output Pyramid creation successful
    Surface registration successful
    Reading the input image files successful
    NvMOfa process frame successful
    Waiting on post fence
    PrintProfileData: Time in us sw time 2128 hw time 0 sync wait time 10031837
    Output surface write successful for frame Num 0
    Reading the input image files successful
    NvMOfa process frame successful
    Waiting on post fence
    PrintProfileData: Time in us sw time 236 hw time 0 sync wait time 10053861
    Output surface write successful for frame Num 1
    Reading the input image files successful
    NvMOfa process frame successful
    Waiting on post fence
    PrintProfileData: Time in us sw time 182 hw time 0 sync wait time 10047395
    Output surface write successful for frame Num 2
    NvMOfa Optical Flow Estimation finish!

  2. input 1920*1080, yuv400 gridSize 1x1, high performance preset, profile time about 10 second/frame
    ./flow_sense -input fisheye_1920_1080_yuv400.yuv -width 1920 -height 1080 -chromaFormat 0 -o flow.bin -co cost.bin -gridSize 0 -profile 2 -preset 1 -nframes 3
    extension: yuv
    extension: yuv
    NvMOfa creation successful
    NvMOfa initialization successful
    sync object allocation successful
    Input and Output Pyramid creation successful
    Surface registration successful
    Reading the input image files successful
    NvMOfa process frame successful
    Waiting on post fence
    PrintProfileData: Time in us sw time 1952 hw time 0 sync wait time 10079365
    Output surface write successful for frame Num 0
    Reading the input image files successful
    NvMOfa process frame successful
    Waiting on post fence
    PrintProfileData: Time in us sw time 276 hw time 0 sync wait time 10049323
    Output surface write successful for frame Num 1
    Reading the input image files successful
    NvMOfa process frame successful
    Waiting on post fence
    PrintProfileData: Time in us sw time 218 hw time 0 sync wait time 10052101
    Output surface write successful for frame Num 2
    NvMOfa Optical Flow Estimation finish!

  3. input 1920*1080, yuv400 gridSize 1x1, high quality preset, profile time about 23 millsecond/frame
    ./flow_sense -input fisheye_1920_1080_yuv400.yuv -width 1920 -height 1080 -chromaFormat 0 -o flow.bin -co cost.bin -gridSize 1 -profile 2 -preset 0 -nframes 3
    extension: yuv
    extension: yuv
    NvMOfa creation successful
    NvMOfa initialization successful
    sync object allocation successful
    Input and Output Pyramid creation successful
    Surface registration successful
    Reading the input image files successful
    NvMOfa process frame successful
    Waiting on post fence
    PrintProfileData: Time in us sw time 904 hw time 0 sync wait time 23109
    Output surface write successful for frame Num 0
    Reading the input image files successful
    NvMOfa process frame successful
    Waiting on post fence
    PrintProfileData: Time in us sw time 237 hw time 0 sync wait time 23098
    Output surface write successful for frame Num 1
    Reading the input image files successful
    NvMOfa process frame successful
    Waiting on post fence
    PrintProfileData: Time in us sw time 227 hw time 0 sync wait time 23085
    Output surface write successful for frame Num 2
    NvMOfa Optical Flow Estimation finish!

This forum is for developers in NVIDIA DRIVE™ AGX SDK Developer Program who using DRIVE AGX Orin platform on autonomous driving project. We will need you to use your account with corporate or university email address.

Sorry for any inconvenience.
Thanks

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