-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bounding boxes plot frontend components #5227
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3590a0a
first iteration
julieg18 a1f080a
Merge branch 'main' into bounding-boxes
julieg18 f16d1bb
fix vscode tests
julieg18 5d5886b
clean up
julieg18 84c48f7
Add frontend tests
julieg18 c8400fd
personal review
julieg18 69530c9
fix windows test
julieg18 c2b3552
fix bug in storybooks
julieg18 12695c7
Rename labels to classes
julieg18 d4b5f54
minor css cleanup
julieg18 28cff74
type change
julieg18 1ecec8f
Move bounding box class legend into its own collapsible row (#5240)
julieg18 3150a57
Clean up naming and handle missing bb colors
julieg18 5999e1d
Store bounding box plot coordinates in single obj (#5241)
julieg18 940a736
Merge branch 'main' into bounding-boxes
julieg18 45c88b3
Add backend logic for bounding box plots (#5250)
julieg18 511dfea
rename dvc img output from boxes to annotations
julieg18 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const colorsList = [ | ||
'#945dd6', | ||
'#13adc7', | ||
'#f46837', | ||
'#48bb78', | ||
'#4299e1', | ||
'#ed8936', | ||
'#f56565' | ||
] as const | ||
|
||
export type Color = (typeof colorsList)[number] | ||
|
||
export const copyOriginalColors = (): Color[] => [...colorsList] | ||
|
||
const boundingBoxColorsList = [ | ||
'#ff3838', | ||
'#ff9d97', | ||
'#ff701f', | ||
'#ffb21d', | ||
'#cfd231', | ||
'#48f90a', | ||
'#92cc17', | ||
'#3ddb86', | ||
'#1a9334', | ||
'#00d4bb', | ||
'#2c99a8', | ||
'#00c2ff', | ||
'#344593', | ||
'#6473ff', | ||
'#0018ec', | ||
'#8438ff', | ||
'#520085', | ||
'#cb38ff', | ||
'#ff95c8', | ||
'#ff37c7' | ||
] as const | ||
|
||
export type BoundingBoxColor = (typeof boundingBoxColorsList)[number] | ||
|
||
export const getBoundingBoxColor = (ind: number): BoundingBoxColor => | ||
boundingBoxColorsList[ind % boundingBoxColorsList.length] |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DVC spec has been changed from
boxes
toannotations
. I've updated the code accordingly.