From b8c0ef63631cfd10e57bb9a9d9ce71b2f602bfe0 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 22 Apr 2025 12:27:04 -0400 Subject: [PATCH] IoU tweaks --- app/static/app/js/components/Map.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/static/app/js/components/Map.jsx b/app/static/app/js/components/Map.jsx index 45878a2c..af358a0f 100644 --- a/app/static/app/js/components/Map.jsx +++ b/app/static/app/js/components/Map.jsx @@ -33,7 +33,7 @@ import { _ } from '../classes/gettext'; import UnitSelector from './UnitSelector'; import { unitSystem, toMetric } from '../classes/Units'; -const IOU_THRESHOLD = 0.3; +const IOU_THRESHOLD = 0.7; class Map extends React.Component { static defaultProps = { @@ -928,7 +928,7 @@ _('Example:'), if (stored){ // Only show annotations for top-most tasks - if (this.ious[task.id] >= IOU_THRESHOLD){ + if (this.ious[task.id] >= 0.01){ PluginsAPI.Map.toggleAnnotation(layer, false); } }