mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-28 17:53:51 +02:00
Plus Settings: add base model and name
This commit is contained in:
parent
6a487a5dc7
commit
3c9984c69a
@ -565,6 +565,10 @@
|
|||||||
"modelType": "Model Type",
|
"modelType": "Model Type",
|
||||||
"trainDate": "Train Date",
|
"trainDate": "Train Date",
|
||||||
"baseModel": "Base Model",
|
"baseModel": "Base Model",
|
||||||
|
"plusModelType": {
|
||||||
|
"baseModel": "Base Model",
|
||||||
|
"userModel": "User Model"
|
||||||
|
},
|
||||||
"supportedDetectors": "Supported Detectors",
|
"supportedDetectors": "Supported Detectors",
|
||||||
"dimensions": "Dimensions",
|
"dimensions": "Dimensions",
|
||||||
"cameras": "Cameras",
|
"cameras": "Cameras",
|
||||||
|
@ -408,6 +408,7 @@ export interface FrigateConfig {
|
|||||||
id: string;
|
id: string;
|
||||||
trainDate: string;
|
trainDate: string;
|
||||||
baseModel: string;
|
baseModel: string;
|
||||||
|
isBaseModel: boolean;
|
||||||
supportedDetectors: string[];
|
supportedDetectors: string[];
|
||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
|
@ -26,6 +26,8 @@ import {
|
|||||||
type FrigatePlusModel = {
|
type FrigatePlusModel = {
|
||||||
id: string;
|
id: string;
|
||||||
type: string;
|
type: string;
|
||||||
|
name: string;
|
||||||
|
isBaseModel: boolean;
|
||||||
supportedDetectors: string[];
|
supportedDetectors: string[];
|
||||||
trainDate: string;
|
trainDate: string;
|
||||||
baseModel: string;
|
baseModel: string;
|
||||||
@ -336,6 +338,10 @@ export default function FrigatePlusSettingsView({
|
|||||||
frigatePlusSettings.model.id
|
frigatePlusSettings.model.id
|
||||||
].trainDate,
|
].trainDate,
|
||||||
).toLocaleString() +
|
).toLocaleString() +
|
||||||
|
" " +
|
||||||
|
availableModels[frigatePlusSettings.model.id]
|
||||||
|
.name +
|
||||||
|
" " +
|
||||||
" (" +
|
" (" +
|
||||||
availableModels[frigatePlusSettings.model.id]
|
availableModels[frigatePlusSettings.model.id]
|
||||||
.width +
|
.width +
|
||||||
@ -366,7 +372,15 @@ export default function FrigatePlusSettingsView({
|
|||||||
{new Date(
|
{new Date(
|
||||||
model.trainDate,
|
model.trainDate,
|
||||||
).toLocaleString()}{" "}
|
).toLocaleString()}{" "}
|
||||||
({model.baseModel})
|
{model.name} ({model.baseModel}) (
|
||||||
|
{model.isBaseModel
|
||||||
|
? t(
|
||||||
|
"frigatePlus.modelInfo.plusModelType.baseModel",
|
||||||
|
)
|
||||||
|
: t(
|
||||||
|
"frigatePlus.modelInfo.plusModelType.userModel",
|
||||||
|
)}
|
||||||
|
)
|
||||||
<div>
|
<div>
|
||||||
{t(
|
{t(
|
||||||
"frigatePlus.modelInfo.supportedDetectors",
|
"frigatePlus.modelInfo.supportedDetectors",
|
||||||
|
Loading…
Reference in New Issue
Block a user