mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 06:23:42 +00:00
Fix bugs
This commit is contained in:
parent
885eef6026
commit
9160c5168e
@ -75,6 +75,7 @@ class ClassificationTrainingProcess(FrigateProcess):
|
||||
logger.info(f"Kicking off classification training for {self.model_name}.")
|
||||
dataset_dir = os.path.join(CLIPS_DIR, self.model_name, "dataset")
|
||||
model_dir = os.path.join(MODEL_CACHE_DIR, self.model_name)
|
||||
os.makedirs(model_dir, exist_ok=True)
|
||||
num_classes = len(
|
||||
[
|
||||
d
|
||||
|
||||
@ -67,7 +67,15 @@ export default function ModelSelectionView({
|
||||
}
|
||||
|
||||
if (classificationConfigs.length == 0) {
|
||||
return <NoModelsView onCreateModel={() => setNewModel(true)} />;
|
||||
return (
|
||||
<>
|
||||
<ClassificationModelWizardDialog
|
||||
open={newModel}
|
||||
onClose={() => setNewModel(false)}
|
||||
/>
|
||||
<NoModelsView onCreateModel={() => setNewModel(true)} />;
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user