mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-04 13:47:37 +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",
|
||||
"trainDate": "Train Date",
|
||||
"baseModel": "Base Model",
|
||||
"plusModelType": {
|
||||
"baseModel": "Base Model",
|
||||
"userModel": "User Model"
|
||||
},
|
||||
"supportedDetectors": "Supported Detectors",
|
||||
"dimensions": "Dimensions",
|
||||
"cameras": "Cameras",
|
||||
|
@ -408,6 +408,7 @@ export interface FrigateConfig {
|
||||
id: string;
|
||||
trainDate: string;
|
||||
baseModel: string;
|
||||
isBaseModel: boolean;
|
||||
supportedDetectors: string[];
|
||||
width: number;
|
||||
height: number;
|
||||
|
@ -26,6 +26,8 @@ import {
|
||||
type FrigatePlusModel = {
|
||||
id: string;
|
||||
type: string;
|
||||
name: string;
|
||||
isBaseModel: boolean;
|
||||
supportedDetectors: string[];
|
||||
trainDate: string;
|
||||
baseModel: string;
|
||||
@ -336,6 +338,10 @@ export default function FrigatePlusSettingsView({
|
||||
frigatePlusSettings.model.id
|
||||
].trainDate,
|
||||
).toLocaleString() +
|
||||
" " +
|
||||
availableModels[frigatePlusSettings.model.id]
|
||||
.name +
|
||||
" " +
|
||||
" (" +
|
||||
availableModels[frigatePlusSettings.model.id]
|
||||
.width +
|
||||
@ -366,7 +372,15 @@ export default function FrigatePlusSettingsView({
|
||||
{new Date(
|
||||
model.trainDate,
|
||||
).toLocaleString()}{" "}
|
||||
({model.baseModel})
|
||||
{model.name} ({model.baseModel}) (
|
||||
{model.isBaseModel
|
||||
? t(
|
||||
"frigatePlus.modelInfo.plusModelType.baseModel",
|
||||
)
|
||||
: t(
|
||||
"frigatePlus.modelInfo.plusModelType.userModel",
|
||||
)}
|
||||
)
|
||||
<div>
|
||||
{t(
|
||||
"frigatePlus.modelInfo.supportedDetectors",
|
||||
|
Loading…
Reference in New Issue
Block a user