mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-07 02:18:07 +01:00
Classification Model UI (#18571)
* Setup basic training structure * Build out route * Handle model configs * Add image fetch APIs * Implement model training screen with dataset selection * Implement viewing of training images * Adjust directories * Implement viewing of images * Add support for deleting images * Implement full deletion * Implement classification model training * Improve naming * More renaming * Improve layout * Reduce logging * Cleanup
This commit is contained in:
committed by
Blake Blackshear
parent
ac7fb29b32
commit
1c75ff59f1
18
web/src/pages/ClassificationModel.tsx
Normal file
18
web/src/pages/ClassificationModel.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { useOverlayState } from "@/hooks/use-overlay-state";
|
||||
import { CustomClassificationModelConfig } from "@/types/frigateConfig";
|
||||
import ModelSelectionView from "@/views/classification/ModelSelectionView";
|
||||
import ModelTrainingView from "@/views/classification/ModelTrainingView";
|
||||
|
||||
export default function ClassificationModelPage() {
|
||||
// training
|
||||
|
||||
const [model, setModel] = useOverlayState<CustomClassificationModelConfig>(
|
||||
"classificationModel",
|
||||
);
|
||||
|
||||
if (model == undefined) {
|
||||
return <ModelSelectionView onClick={setModel} />;
|
||||
}
|
||||
|
||||
return <ModelTrainingView model={model} />;
|
||||
}
|
||||
Reference in New Issue
Block a user