mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-22 02:18:32 +01:00
Classification improvements (#19020)
* Move classification training to full process * Sort class images
This commit is contained in:
committed by
Blake Blackshear
parent
528f0d2b1f
commit
28f816b49a
@@ -577,9 +577,14 @@ function DatasetGrid({
|
||||
}: DatasetGridProps) {
|
||||
const { t } = useTranslation(["views/classificationModel"]);
|
||||
|
||||
const classData = useMemo(
|
||||
() => images.sort((a, b) => a.localeCompare(b)),
|
||||
[images],
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="flex flex-wrap gap-2 overflow-y-auto p-2">
|
||||
{images.map((image) => (
|
||||
{classData.map((image) => (
|
||||
<div
|
||||
className={cn(
|
||||
"flex w-60 cursor-pointer flex-col gap-2 rounded-lg bg-card outline outline-[3px]",
|
||||
|
||||
Reference in New Issue
Block a user