Skip to content

Fix NVOF session recreation on frame-size changes - #39

Merged
jpietek merged 1 commit into
developfrom
fix/nvof-session-resize
Oct 2, 2026
Merged

jpietek merged 1 commit into
developfrom
fix/nvof-session-resize

Conversation

@jpietek

@jpietek jpietek commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

When CUDA frames change resolution, the camera-motion node tried to call nvOFInit again on an initialized handle and failed with NV_OF_STATUS=4. Recreate the NVOF session and its buffers, then seed a fresh reference frame. The existing session is reused for steady dimensions; only the node's stream is drained on replacement.

Validation: rebuilt the CUDA/TensorRT Python module and ran tests/cuda/smoke_camera_motion_resize.py on a Tesla T4. All three transitions (720p → 1080p → 720p → 1080p) passed, with has_prev reset and valid affine estimates on subsequent frames. The same test fails on the previous binary. The test uses eight finite frames and drains EOF before shutdown.

@jpietek
jpietek merged commit 150e843 into develop Oct 2, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants