Skip to content

Commit

Permalink
remove checking overlay path in process overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Jan 22, 2025
1 parent 7fde08d commit e66e518
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/packages/looker/src/processOverlays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,11 @@ const processOverlays = <State extends BaseState>(
// todo: find a better approach / place for this.
// for instance, this won't work in detection overlay, where
// we might want the bounding boxes but masks might not have been loaded
if (
overlay instanceof SegmentationOverlay &&
overlay.label.mask_path &&
!overlay.label.mask
) {
if (overlay instanceof SegmentationOverlay && !overlay.label.mask) {
continue;
}

if (
overlay instanceof HeatmapOverlay &&
overlay.label.map_path &&
!overlay.label.map
) {
if (overlay instanceof HeatmapOverlay && !overlay.label.map) {
continue;
}

Expand Down

0 comments on commit e66e518

Please sign in to comment.