From cbf78e20702302b69987caf53f619b619ec38af4 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 20 Oct 2025 17:03:32 -0600 Subject: [PATCH] Tweaks --- .../classification/ModelTrainingView.tsx | 26 ++----------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/web/src/views/classification/ModelTrainingView.tsx b/web/src/views/classification/ModelTrainingView.tsx index 3370927a3..438c4e7eb 100644 --- a/web/src/views/classification/ModelTrainingView.tsx +++ b/web/src/views/classification/ModelTrainingView.tsx @@ -757,7 +757,6 @@ function TrainGrid({ selectedImages={selectedImages} onClickImages={onClickImages} onRefresh={onRefresh} - onDelete={onDelete} /> ); } @@ -780,10 +779,7 @@ function StateTrainGrid({ selectedImages, onClickImages, onRefresh, - onDelete, }: StateTrainGridProps) { - const { t } = useTranslation(["views/classificationModel"]); - const threshold = useMemo(() => { return { recognition: model.threshold, @@ -817,7 +813,7 @@ function StateTrainGrid({ image={data.filename} onRefresh={onRefresh} > - + ))} @@ -833,7 +829,6 @@ type ObjectTrainGridProps = { selectedImages: string[]; onClickImages: (images: string[], ctrl: boolean) => void; onRefresh: () => void; - onDelete: (ids: string[]) => void; }; function ObjectTrainGrid({ model, @@ -843,10 +838,7 @@ function ObjectTrainGrid({ selectedImages, onClickImages, onRefresh, - onDelete, }: ObjectTrainGridProps) { - const { t } = useTranslation(["views/classificationModel"]); - // item data const groups = useMemo(() => { @@ -966,22 +958,8 @@ function ObjectTrainGrid({ image={data.filename} onRefresh={onRefresh} > - + - - - { - e.stopPropagation(); - onDelete([data.filename]); - }} - /> - - - {t("button.deleteClassificationAttempts")} - - )}