This commit is contained in:
Josh Hawkins 2025-11-24 23:13:09 +00:00 committed by GitHub
commit 1e3123c7c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 45 additions and 28 deletions

View File

@ -2,7 +2,7 @@ variable "AMDGPU" {
default = "gfx900"
}
variable "ROCM" {
default = "7.1"
default = "7.1.0"
}
variable "HSA_OVERRIDE_GFX_VERSION" {
default = ""

View File

@ -232,7 +232,7 @@ When your browser runs into problems playing back your camera streams, it will l
- **mse-decode**
- What it means: The browser reported a decoding error while trying to play the stream, which usually is a result of a codec incompatibility or corrupted frames.
- What to try: Ensure your camera/restream is using H.264 video and AAC audio (these are the most compatible). If your camera uses a non-standard audio codec, configure `go2rtc` to transcode the stream to AAC. Try another browser (some browsers have stricter MSE/codec support) and, for iPhone, ensure you're on iOS 17.1 or newer.
- What to try: Check the browser console for the supported and negotiated codecs. Ensure your camera/restream is using H.264 video and AAC audio (these are the most compatible). If your camera uses a non-standard audio codec, configure `go2rtc` to transcode the stream to AAC. Try another browser (some browsers have stricter MSE/codec support) and, for iPhone, ensure you're on iOS 17.1 or newer.
- Possible console messages from the player code:

View File

@ -1753,7 +1753,7 @@ def create_trigger_embedding(
body.data, (base64.b64encode(thumbnail).decode("ASCII"))
)
if embedding is None:
if not embedding:
return JSONResponse(
content={
"success": False,
@ -1888,7 +1888,7 @@ def update_trigger_embedding(
body.data, (base64.b64encode(thumbnail).decode("ASCII"))
)
if embedding is None:
if not embedding:
return JSONResponse(
content={
"success": False,

View File

@ -53,6 +53,7 @@
"selectOrExport": "Select or Export",
"toast": {
"success": "Successfully started export. View the file in the exports page.",
"view": "View",
"error": {
"failed": "Failed to start export: {{error}}",
"endTimeMustAfterStartTime": "End time must be after start time",

View File

@ -61,7 +61,8 @@
"header": {
"zones": "Zones",
"ratio": "Ratio",
"area": "Area"
"area": "Area",
"score": "Score"
}
},
"annotationSettings": {

View File

@ -87,7 +87,7 @@ export default function ReviewCard({
position: "top-center",
action: (
<a href="/export" target="_blank" rel="noopener noreferrer">
<Button>View</Button>
<Button>{t("export.toast.view")}</Button>
</a>
),
});

View File

@ -148,7 +148,9 @@ export default function Step3ChooseExamples({
// Step 3: Kick off training
await axios.post(`/classification/${step1Data.modelName}/train`);
toast.success(t("wizard.step3.trainingStarted"));
toast.success(t("wizard.step3.trainingStarted"), {
closeButton: true,
});
setIsTraining(true);
},
[step1Data, step2Data, t],

View File

@ -314,11 +314,10 @@ function GeneralFilterButton({
<PlatformAwareDialog
trigger={trigger}
content={content}
contentClassName={
isDesktop
? "scrollbar-container h-auto max-h-[80dvh] overflow-y-auto"
: "max-h-[75dvh] overflow-hidden p-4"
}
contentClassName={cn(
"scrollbar-container h-auto overflow-y-auto",
isDesktop ? "max-h-[80dvh]" : "px-4",
)}
open={open}
onOpenChange={(open) => {
if (!open) {
@ -510,11 +509,10 @@ function SortTypeButton({
<PlatformAwareDialog
trigger={trigger}
content={content}
contentClassName={
isDesktop
? "scrollbar-container h-auto max-h-[80dvh] overflow-y-auto"
: "max-h-[75dvh] overflow-hidden p-4"
}
contentClassName={cn(
"scrollbar-container h-auto overflow-y-auto",
isDesktop ? "max-h-[80dvh]" : "px-4",
)}
open={open}
onOpenChange={(open) => {
if (!open) {

View File

@ -97,7 +97,7 @@ export default function ExportDialog({
position: "top-center",
action: (
<a href="/export" target="_blank" rel="noopener noreferrer">
<Button>View</Button>
<Button>{t("export.toast.view")}</Button>
</a>
),
});

View File

@ -106,7 +106,9 @@ export default function MobileReviewSettingsDrawer({
position: "top-center",
action: (
<a href="/export" target="_blank" rel="noopener noreferrer">
<Button>View</Button>
<Button>
{t("export.toast.view", { ns: "components/dialog" })}
</Button>
</a>
),
},

View File

@ -44,8 +44,8 @@ export default function PlatformAwareDialog({
return (
<Drawer open={open} onOpenChange={onOpenChange}>
<DrawerTrigger asChild>{trigger}</DrawerTrigger>
<DrawerContent className="max-h-[75dvh] overflow-hidden px-4">
{content}
<DrawerContent className="max-h-[75dvh] overflow-hidden">
<div className={contentClassName}>{content}</div>
</DrawerContent>
</Drawer>
);

View File

@ -94,12 +94,19 @@ function MSEPlayer({
console.error(
`${camera} - MSE error '${error}': ${description} See the documentation: https://docs.frigate.video/configuration/live/#live-player-error-messages`,
);
if (mseCodecRef.current) {
// eslint-disable-next-line no-console
console.error(`${camera} - MSE codec in use: ${mseCodecRef.current}`);
console.error(
`${camera} - Browser negotiated codecs: ${mseCodecRef.current}`,
);
// eslint-disable-next-line no-console
console.error(`${camera} - Supported codecs: ${CODECS.join(", ")}`);
}
onError?.(error);
},
// we know that these deps are correct
// eslint-disable-next-line react-hooks/exhaustive-deps
[camera, onError],
);

View File

@ -136,11 +136,10 @@ export default function ExploreSettings({
<PlatformAwareDialog
trigger={trigger}
content={content}
contentClassName={
isDesktop
? "scrollbar-container h-auto max-h-[80dvh] overflow-y-auto"
: "max-h-[75dvh] overflow-hidden p-4"
}
contentClassName={cn(
"scrollbar-container h-auto overflow-y-auto",
isDesktop ? "max-h-[80dvh]" : "px-4",
)}
open={open}
onOpenChange={(open) => {
setOpen(open);

View File

@ -808,6 +808,7 @@ function FaceAttemptGroup({
if (resp.status == 200) {
toast.success(t("toast.success.trainedFace"), {
position: "top-center",
closeButton: true,
});
onRefresh();
}

View File

@ -104,12 +104,14 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
if (modelState == "complete") {
toast.success(t("toast.success.trainedModel"), {
position: "top-center",
closeButton: true,
});
setWasTraining(false);
refreshDataset();
} else if (modelState == "failed") {
toast.error(t("toast.error.trainingFailed"), {
position: "top-center",
closeButton: true,
});
setWasTraining(false);
}
@ -182,6 +184,7 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
setWasTraining(true);
toast.success(t("toast.success.trainingModel"), {
position: "top-center",
closeButton: true,
});
}
})
@ -193,6 +196,7 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
toast.error(t("toast.error.trainingFailedToStart", { errorMessage }), {
position: "top-center",
closeButton: true,
});
});
}, [model, t]);

View File

@ -219,7 +219,9 @@ export default function EventView({
position: "top-center",
action: (
<a href="/export" target="_blank" rel="noopener noreferrer">
<Button>View</Button>
<Button>
{t("export.toast.view", { ns: "components/dialog" })}
</Button>
</a>
),
},