Repository navigation
Masks: mask.attached for the vehicle carrying the camera; SAM 3 on MPS - #30
Merged
Merged
Conversation
…3 on MPS An attached SAM 3 prompt keeps only instances reaching 60 degrees below the horizon, so "boat" masks the water taxi you ride on and leaves moored boats as scenery. Joins the mask key only when set; existing keys are unchanged. SAM 3 runs on MPS in float32, and setup_mac.sh installs transformers for it. Measured on 8 panoramas of a boat clip; training not yet compared.
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.
mask.attached(SAM 3 only, a subset ofmask.prompts): keeps only instances that reach 60° below the horizon (ATTACHED_LAT_DEG), i.e. the boat/car/bike the camera rides on, and leaves the same kind of object in the scene unmasked. Geometric test, so generic, but measured only on a boat clip.attachedjoins the mask key only when non-empty and is sorted, so existing keys do not move (pinned intest_stages.py7d). Rejected on backends without prompts and when it names a prompt not inprompts.setup_mac.shinstallstransformers==5.5.0(same pin as Linux). NoPREP_APPLEbump: a standard Mac install could not run SAM 3 before, so no shared caches exist.how-it-works.md): measurements from 8 panoramas of a water-taxi clip — 36 moored-boat instances dropped, the taxi kept in every frame; 3.9 s/panorama with three prompts on an M5 Max. Recorded null: training with these masks not yet compared against unmasked.