Skip to content

Commit

Permalink
add clarification comment for sources
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Dec 17, 2024
1 parent cd8eaee commit 5d6f683
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/packages/looker/src/worker/disk-overlay-decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ export const decodeOverlayOnDisk = async (
let source = sources[`${field}.${overlayPathField}`];

if (typeof overlayCollectionProcessingParams !== "undefined") {
// example: for detections, we need to access the source from the parent label
// like: if field is "prediction_masks", we're trying to get "predictiion_masks.detections[INDEX].mask"
source =
sources[
`${field}.${overlayCollectionProcessingParams.cls}[${overlayCollectionProcessingParams.idx}].${overlayPathField}`
`${field}.${overlayCollectionProcessingParams.cls.toLocaleLowerCase()}[${
overlayCollectionProcessingParams.idx
}].${overlayPathField}`
];
}

Expand Down

0 comments on commit 5d6f683

Please sign in to comment.