Prototype: ML Assisted labeling using superpixels#860
Draft
IgorSusmelj wants to merge 4 commits into
Draft
Conversation
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- Use useSegmentationMaskBrush (renamed from useInstanceSegmentationBrush) and keep main's requestLabel class-picker flow instead of the removed DEFAULT-label auto-creation - Map SLIC tool onto the unified segmentation_mask annotation type (instance/semantic split was removed on main) - Wire deleteAnnotation and SelectClassDialog into SampleSlicRect - Update thunk-based useAnnotation/useAnnotationLabels usage - Port finishBrush options (deferDrawingReset, skipImageRefetch, refreshAnnotations) and return-value tests to useSegmentationMaskBrush.test.ts Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Extract the SLIC algorithms (clustering, boundaries, hierarchical merging, mask helpers) into the @lightly-ai/slic package (Rust/WASM with automatic pure-JS fallback, ~1.5-1.8x faster than the previous in-repo implementation). The app keeps only the DOM-side adapter: image loading/downscaling, data-URL rendering, dev URL rewriting, level presets, and per-image caching. Consumed as a local file: dependency on ../slic-package for now; switch to a published npm version once the package stabilizes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
SlicResult now carries the package's CSR pixel-index buffers and only materializes labelPixelIndexes lazily on first access, so mask building in the SLIC tool iterates typed arrays instead of nested JS arrays. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
f79d74a to
a75240b
Compare
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.
What has changed and why?
This is a prototype for ML assisted labeling using superpixels (SLIC algorithm).
superpixel-labeling.mp4
How has it been tested?
Did you update CHANGELOG.md?