Video segmentation example cvat#415
Open
Varfalamei wants to merge 6 commits into
Open
Conversation
… CVAT example New example: drop a long first-person video into a folder; the pipeline samples frames (ffmpeg fps=1 -> perceptual-hash dedup), runs SAM3 open-vocabulary text-prompt segmentation (person), and uploads box+polygon pre-annotations to CVAT for review. Reuses the SAM3->CVAT tail from sam_cvat verbatim; the new part is the video ingest + frame sampling front stage.
…out system ffmpeg)
…: one task per video split into jobs of N frames Adds a backward-compatible segment_size param to CVATStep, passed to the CVAT TaskWriteRequest so a task is split into jobs of N frames. robots_ego_cvat scopes the CVAT batch by video_id (one task per video), sets SEGMENT_SIZE (jobs) and a large FILES_BATCH, and defaults SAMPLE_FPS to 0.2 (1 frame/5s).
…AM3 segmentation -> CVAT)
…ont renders the pipeline graph, table browser and per-stage run triggers
…setup skill - infer_image: downscale frames to SAM_MAX_INFER_SIDE (default 640) before SAM3 and map detections back to full-res coords (CVAT still gets the full-res frame); on OOM retry at 512/384 and skip the frame as a last resort so one frame never kills the run; empty_cache between frames - config: set PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True before importing torch so it applies to both CLI and UI-triggered runs; add SAM_MAX_INFER_SIDE knob - models: take HF_TOKEN from the env instead of persisting it to disk (works on read-only home dirs) - README: GPU-memory/OOM section, HF_HOME note, and a datapipe-api-vs-CLI run-log collision warning; ffmpeg now optional (imageio-ffmpeg fallback) - add setup-video-segmentation-cvat skill - commit the .env.example template (was gitignored, unlike sibling examples)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.