mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-09 06:45:40 +03:00
19 lines
598 B
TypeScript
19 lines
598 B
TypeScript
|
|
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} />;
|
||
|
|
}
|