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

This commit is contained in:
Nicolas Mowen 2025-10-24 15:38:35 -06:00 committed by GitHub
parent eb51eb3c9d
commit 83fa651ada
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -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,
}, },
} }

View File

@ -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;