mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-16 18:16:44 +03:00
Cleanup
This commit is contained in:
parent
4bca29fbe7
commit
8c318699c4
@ -17,7 +17,6 @@ import { useNavigate } from "react-router-dom";
|
|||||||
import { getTranslatedLabel } from "@/utils/i18n";
|
import { getTranslatedLabel } from "@/utils/i18n";
|
||||||
|
|
||||||
type ClassificationCardProps = {
|
type ClassificationCardProps = {
|
||||||
className?: string;
|
|
||||||
imgClassName?: string;
|
imgClassName?: string;
|
||||||
data: ClassificationItemData;
|
data: ClassificationItemData;
|
||||||
threshold?: ClassificationThreshold;
|
threshold?: ClassificationThreshold;
|
||||||
@ -28,7 +27,6 @@ type ClassificationCardProps = {
|
|||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
};
|
};
|
||||||
export function ClassificationCard({
|
export function ClassificationCard({
|
||||||
className,
|
|
||||||
imgClassName,
|
imgClassName,
|
||||||
data,
|
data,
|
||||||
threshold,
|
threshold,
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export default function ClassificationModelWizardDialog({
|
|||||||
const { t } = useTranslation(["views/classificationModel"]);
|
const { t } = useTranslation(["views/classificationModel"]);
|
||||||
|
|
||||||
// step management
|
// step management
|
||||||
const [currentStep, setCurrentStep] = useState(0);
|
const [currentStep, _] = useState(0);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
|
|||||||
@ -940,7 +940,6 @@ function FaceGrid({
|
|||||||
>
|
>
|
||||||
{sortedFaces.map((image: string) => (
|
{sortedFaces.map((image: string) => (
|
||||||
<ClassificationCard
|
<ClassificationCard
|
||||||
className="gap-2 rounded-lg bg-card p-2"
|
|
||||||
key={image}
|
key={image}
|
||||||
data={{
|
data={{
|
||||||
name: pageToggle,
|
name: pageToggle,
|
||||||
|
|||||||
@ -637,7 +637,6 @@ function DatasetGrid({
|
|||||||
{classData.map((image) => (
|
{classData.map((image) => (
|
||||||
<ClassificationCard
|
<ClassificationCard
|
||||||
key={image}
|
key={image}
|
||||||
className="w-60 gap-4 rounded-lg bg-card p-2"
|
|
||||||
imgClassName="size-auto"
|
imgClassName="size-auto"
|
||||||
data={{
|
data={{
|
||||||
filename: image,
|
filename: image,
|
||||||
@ -799,7 +798,6 @@ function StateTrainGrid({
|
|||||||
{trainData?.map((data) => (
|
{trainData?.map((data) => (
|
||||||
<ClassificationCard
|
<ClassificationCard
|
||||||
key={data.filename}
|
key={data.filename}
|
||||||
className="w-60 gap-2 rounded-lg bg-card p-2"
|
|
||||||
imgClassName="size-auto"
|
imgClassName="size-auto"
|
||||||
data={data}
|
data={data}
|
||||||
threshold={threshold}
|
threshold={threshold}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user