Skip to content

Add demo video and full frame render option#12

Merged
lexiyutou merged 6 commits into
mainfrom
fun/demo_video
Jun 8, 2026
Merged

Add demo video and full frame render option#12
lexiyutou merged 6 commits into
mainfrom
fun/demo_video

Conversation

@lexiyutou

Copy link
Copy Markdown
Collaborator

This pull request introduces a new video demo for PRIMA Stage 1 inference and adds a shell script for easy execution. It also improves the renderer to handle image normalization more robustly in full-frame rendering mode. The main changes are grouped below.


New Features:

  • Added demo_video.py script to perform PRIMA Stage 1 inference on each frame of a video, including Detectron2-based animal detection, rendering options, mesh export, and flexible CLI arguments.
  • Added demo_video.sh shell script as a usage example to run the video demo with default parameters and checkpoint paths.

Renderer Improvements:

  • Updated prima/utils/renderer.py to handle cases where the input image to the renderer is already a NumPy array (not a file path), ensuring proper normalization to the [0, 1] range for full-frame rendering.

@lexiyutou lexiyutou merged commit 0c4251e into main Jun 8, 2026
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