diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 694bcb21b3..783edf308b 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -27,6 +27,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released - The warning about a mismatch between the scale of a pre-computed mesh and the dataset scale's factor now also considers all supported mags of the active segmentation layer. This reduces the false posive rate regarding this warning. [#7921](https://github.com/scalableminds/webknossos/pull/7921/) - It is no longer allowed to edit annotations of other organizations, even if they are set to public and to others-may-edit. [#7923](https://github.com/scalableminds/webknossos/pull/7923) - When proofreading segmentations, the user can now interact with super-voxels directly in the data viewports. Additionally, proofreading is significantly faster because the segmentation data doesn't have to be re-downloaded after each merge/split operation. [#7654](https://github.com/scalableminds/webknossos/pull/7654) +- Because of the way our models are trained, AI analysis and training is disabled for 2D and ND datasets, as well as for color layers with data type uInt24. [#7957](https://github.com/scalableminds/webknossos/pull/7957) ### Fixed - Fixed a bug that allowed the default newly created bounding box to appear outside the dataset. In case the whole bounding box would be outside it is created regardless. [#7892](https://github.com/scalableminds/webknossos/pull/7892) diff --git a/frontend/javascripts/oxalis/view/action-bar/starting_job_modals.tsx b/frontend/javascripts/oxalis/view/action-bar/starting_job_modals.tsx index 0cd3a0ac2e..d0ff22ccb9 100644 --- a/frontend/javascripts/oxalis/view/action-bar/starting_job_modals.tsx +++ b/frontend/javascripts/oxalis/view/action-bar/starting_job_modals.tsx @@ -514,7 +514,8 @@ function StartJobForm(props: StartJobFormProps) { const dataset = useSelector((state: OxalisState) => state.dataset); const tracing = useSelector((state: OxalisState) => state.tracing); const activeUser = useSelector((state: OxalisState) => state.activeUser); - const layers = chooseSegmentationLayer ? getSegmentationLayers(dataset) : getColorLayers(dataset); + const colorLayers = getColorLayers(dataset); + const layers = chooseSegmentationLayer ? getSegmentationLayers(dataset) : colorLayers; const allLayers = getDataLayers(dataset); const defaultBBForLayers: UserBoundingBox[] = layers.map((layer, index) => { return { @@ -539,6 +540,13 @@ function StartJobForm(props: StartJobFormProps) { outputSegmentationLayerName: string; }) => { const selectedLayer = layers.find((layer) => layer.name === layerName); + if (selectedLayer?.elementClass === "uint24") { + const errorMessage = + "AI analysis jobs can not be started for color layers with the data type uInt24. Please select a color layer with another data type."; + Toast.error(errorMessage); + console.error(errorMessage); + return; + } const selectedBoundingBox = userBoundingBoxes.find((bbox) => bbox.id === boundingBoxId); if ( selectedLayer == null || @@ -608,6 +616,7 @@ function StartJobForm(props: StartJobFormProps) { ); }) .map((layer) => getReadableNameOfVolumeLayer(layer, tracing) || layer.name); + return (