mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 13:34:13 +03:00
Various fixes (#20655)
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
Some checks are pending
CI / AMD64 Build (push) Waiting to run
CI / ARM Build (push) Waiting to run
CI / Jetson Jetpack 6 (push) Waiting to run
CI / AMD64 Extra Build (push) Blocked by required conditions
CI / ARM Extra Build (push) Blocked by required conditions
CI / Synaptics Build (push) Blocked by required conditions
CI / Assemble and push default build (push) Blocked by required conditions
This commit is contained in:
parent
eb51eb3c9d
commit
83fa651ada
@ -20,8 +20,8 @@ class OllamaClient(GenAIClient):
|
|||||||
LOCAL_OPTIMIZED_OPTIONS = {
|
LOCAL_OPTIMIZED_OPTIONS = {
|
||||||
"options": {
|
"options": {
|
||||||
"temperature": 0.5,
|
"temperature": 0.5,
|
||||||
"repeat_penalty": 1.15,
|
"repeat_penalty": 1.05,
|
||||||
"presence_penalty": 0.1,
|
"presence_penalty": 0.3,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -214,7 +214,9 @@ export function GroupedClassificationCard({
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!best) {
|
if (!best) {
|
||||||
return group.at(-1);
|
// select an item from the middle of the time series as this usually correlates
|
||||||
|
// to a more representative image than the first or last
|
||||||
|
return group.at(Math.floor(group.length / 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
const bestTyped: ClassificationItemData = best;
|
const bestTyped: ClassificationItemData = best;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user