Add raster tile segmentation handoff
This commit is contained in:
@@ -31,6 +31,7 @@ export function useSegmentationWorkflow({
|
||||
const [segmentationModelError, setSegmentationModelError] = useState<string | null>(null)
|
||||
const [selectedSegmentationDatasetId, setSelectedSegmentationDatasetId] = useState('')
|
||||
const [selectedSegmentationModelId, setSelectedSegmentationModelId] = useState('segmentation-placeholder')
|
||||
const [segmentationTileManifestPath, setSegmentationTileManifestPath] = useState('')
|
||||
const [segmentationConfidenceThreshold, setSegmentationConfidenceThreshold] = useState(0.5)
|
||||
const [runningSegmentation, setRunningSegmentation] = useState(false)
|
||||
const [segmentationRunResult, setSegmentationRunResult] = useState<SegmentationRunResponse | null>(null)
|
||||
@@ -137,6 +138,7 @@ export function useSegmentationWorkflow({
|
||||
dataset_id: datasetId,
|
||||
model_id: selectedSegmentationModelId,
|
||||
confidence_threshold: segmentationConfidenceThreshold,
|
||||
tile_manifest_path: segmentationTileManifestPath.trim() || null,
|
||||
parameters_json: parameters,
|
||||
})
|
||||
setSegmentationRunResult(result)
|
||||
@@ -186,6 +188,7 @@ export function useSegmentationWorkflow({
|
||||
setSegmentationItems([])
|
||||
setSegmentationGeoJson(null)
|
||||
setSegmentationRunResult(null)
|
||||
setSegmentationTileManifestPath('')
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -195,6 +198,7 @@ export function useSegmentationWorkflow({
|
||||
selectedSegmentationDatasetId,
|
||||
selectedSegmentationModelId,
|
||||
selectedSegmentationModel,
|
||||
segmentationTileManifestPath,
|
||||
segmentationConfidenceThreshold,
|
||||
runningSegmentation,
|
||||
segmentationRunResult,
|
||||
@@ -218,6 +222,7 @@ export function useSegmentationWorkflow({
|
||||
resetSegmentationForProject,
|
||||
setSelectedSegmentationDatasetId,
|
||||
setSelectedSegmentationModelId,
|
||||
setSegmentationTileManifestPath,
|
||||
setSegmentationConfidenceThreshold,
|
||||
setSelectedSegmentationRunId,
|
||||
setSegmentationClassFilter,
|
||||
|
||||
Reference in New Issue
Block a user