fix(lab): overlay full route semantic masks

This commit is contained in:
DCCONSTRUCTIONS
2026-08-29 14:14:38 +03:00
parent cd16ea28a6
commit 88e47fc39a
2 changed files with 13 additions and 10 deletions
@@ -159,16 +159,18 @@ function FullRouteReviewEvidence({
{mode === "source" ? "SOURCE" : `${mode === "city" ? "EoMT CITY" : "DDRNet NATURE"} · КАДР ${sequence}/${review.frameCount}`} {mode === "source" ? "SOURCE" : `${mode === "city" ? "EoMT CITY" : "DDRNet NATURE"} · КАДР ${sequence}/${review.frameCount}`}
</div> </div>
{layer && semantic ? ( {layer && semantic ? (
<RecordedEvidenceSemanticMaskOverlay <div className="m48-clip-player__overlay">
src={vegetationFullRouteMaskUrl(resultId, mode as "city" | "vegetation", maskSequence)} <RecordedEvidenceSemanticMaskOverlay
prefetchSrcs={prefetchSrcs} src={vegetationFullRouteMaskUrl(resultId, mode as "city" | "vegetation", maskSequence)}
imageWidth={review.width} prefetchSrcs={prefetchSrcs}
imageHeight={review.height} imageWidth={review.width}
classes={semantic.classes} imageHeight={review.height}
palette={semantic.palette} classes={semantic.classes}
opacity={0.76} palette={semantic.palette}
ariaLabel={`${layer.name} semantic prediction`} opacity={0.76}
/> ariaLabel={`${layer.name} semantic prediction`}
/>
</div>
) : null} ) : null}
</> </>
)} )}
@@ -384,6 +384,7 @@ test("vegetation realtime LAB and archival benchmark use separate admitted instr
assert.match(resultSource, /RAVNOVES004TREE mixed route review/); assert.match(resultSource, /RAVNOVES004TREE mixed route review/);
assert.match(resultSource, /RAVNOVES004TREE full recorded review/); assert.match(resultSource, /RAVNOVES004TREE full recorded review/);
assert.match(resultSource, /LaboratoryRecordedClipPlayer/); assert.match(resultSource, /LaboratoryRecordedClipPlayer/);
assert.match(resultSource, /className="m48-clip-player__overlay"/);
assert.match(resultSource, /linkedTgsResultId/); assert.match(resultSource, /linkedTgsResultId/);
assert.match(benchmarkSource, /M48MaskComparisonVisual/); assert.match(benchmarkSource, /M48MaskComparisonVisual/);
assert.doesNotMatch(benchmarkSource, /M49TgsFullShadowEvidence/); assert.doesNotMatch(benchmarkSource, /M49TgsFullShadowEvidence/);