mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Setup basic training structure
This commit is contained in:
parent
eb1fe9fe20
commit
28da85ae3d
21
web/src/pages/ClassificationModel.tsx
Normal file
21
web/src/pages/ClassificationModel.tsx
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import { FrigateConfig } from "@/types/frigateConfig";
|
||||||
|
import ModelSelectionView from "@/views/classification/ModelSelectionView";
|
||||||
|
import ModelTrainingView from "@/views/classification/ModelTrainingView";
|
||||||
|
import { useState } from "react";
|
||||||
|
import useSWR from "swr";
|
||||||
|
|
||||||
|
export default function ClassificationModelPage() {
|
||||||
|
const { data: config } = useSWR<FrigateConfig>("config", {
|
||||||
|
revalidateOnFocus: false,
|
||||||
|
});
|
||||||
|
|
||||||
|
// training
|
||||||
|
|
||||||
|
const [model, setModel] = useState();
|
||||||
|
|
||||||
|
if (model == undefined) {
|
||||||
|
return <ModelSelectionView />;
|
||||||
|
}
|
||||||
|
|
||||||
|
return <ModelTrainingView />;
|
||||||
|
}
|
||||||
1
web/src/views/classification/ModelSelectionView.tsx
Normal file
1
web/src/views/classification/ModelSelectionView.tsx
Normal file
@ -0,0 +1 @@
|
|||||||
|
export default function ModelSelectionView() {}
|
||||||
1
web/src/views/classification/ModelTrainingView.tsx
Normal file
1
web/src/views/classification/ModelTrainingView.tsx
Normal file
@ -0,0 +1 @@
|
|||||||
|
export default function ModelTrainingView() {}
|
||||||
Loading…
Reference in New Issue
Block a user