Skip to content

Commit

Permalink
[Image Explorer] CanvasTools Image Loading support for Object Detecti…
Browse files Browse the repository at this point in the history
…on (#2097)

* bbox vott template ckpt

* canvastools image load ckpt

* loading image from scratch ckpt

* canvastools image loading support

* coordinate fixes

* regiondata call + path fix

* code cleanup

* image loading ckpt

* callback image loading support

* lint fixes

* disabling internal imports for vott

* file refactor lint fix

* auto lint fixes

* lint fixes

* image dims arg for frontend bbox

* lint fixes

* lint fixes

* image dimension support

* canvas module added

* comment fix

* async image loading support

* lint fixes

* lint fixes

* max-lines lint fixes

* lint fixes
  • Loading branch information
Advitya17 authored Jun 13, 2023
1 parent 88f2c26 commit f55e4be
Show file tree
Hide file tree
Showing 9 changed files with 219 additions and 168 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
]
}
],
"no-alert": ["error"]
"no-alert": ["error"],
"import/no-internal-modules": "off"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export const fridgeObjectDetection: IDataset = {
features: [
[96.30899737412763],
[95.32630225415797],
[1003762680516188],
[92000130390912],
[100.3762680516188],
[92.000130390912],
[95.33849179841164]
],
images: fridgeObjectDetectionImages,
Expand All @@ -40,11 +40,11 @@ export const fridgeObjectDetection: IDataset = {
],
[
[
2, 47.880287170410156, 1465001831054688, 212.69313049316406,
2, 47.880287170410156, 146.5001831054688, 212.69313049316406,
513.9315795898438, 0.9914382696151733
],
[
4, 322.61370849609375, 1733768920898438, 455.5107421875,
4, 322.61370849609375, 173.3768920898438, 455.5107421875,
498.9791564941406, 0.9787105917930603
]
],
Expand All @@ -54,8 +54,8 @@ export const fridgeObjectDetection: IDataset = {
412.123779296875, 0.9933412671089172
],
[
3, 52.82023239135742, 3065950927734375, 363.34197998046875,
420689697265625, 0.979895830154419
3, 52.82023239135742, 306.5950927734375, 363.34197998046875,
420.689697265625, 0.979895830154419
]
],
[
Expand All @@ -64,7 +64,7 @@ export const fridgeObjectDetection: IDataset = {
507.566650390625, 0.9822636246681213
],
[
4, 98.31806182861328, 172.11666870117188, 2242011108398438,
4, 98.31806182861328, 172.11666870117188, 224.2011108398438,
483.5189208984375, 0.9667745232582092
]
]
Expand Down
1 change: 1 addition & 0 deletions libs/core-ui/src/lib/Interfaces/IDataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface IDataset {
index?: string[];
object_detection_true_y?: number[][][];
object_detection_predicted_y?: number[][][];
imageDimensions?: Array<[number, number]>;
}

// TODO Remove DatasetSummary when possible
Expand Down
Loading

0 comments on commit f55e4be

Please sign in to comment.