chore(motion): tidy proto, imports and usecase guess; add weights licence

Remove a stray blank line in backend.proto and group the imports in
pkg/motion/validation.go. Decide the motion usecase guess from the
backend capability registry instead of a hardcoded backend name, so
variant builds of the backend resolve too. Declare the weights licence
in the gallery entry, as stated on the model card.

Assisted-by: Claude Code:claude-sonnet-5-5
This commit is contained in:
Ettore Di Giacinto committed 2026-10-13 08:27:24 +00:00
1 parent 958add2336
commit 4ebff15e76
4 files changed
+8 -4

No files matched your search

-1
View File
@@ -7,7 +7,6 @@ option java_outer_classname = "LocalAIBackend";
package backend;
service Backend {
rpc Health(HealthMessage) returns (Reply) {}
rpc Free(HealthMessage) returns (Result) {}
+5 -2
View File
@@ -2359,8 +2359,11 @@ func (c *ModelConfig) GuessUsecases(u ModelConfigUsecase) bool {
if u&FLAG_UPSCALE != 0 {
return false
}
if u&FLAG_MOTION != 0 && c.Backend != "gemxcpp" {
return false
if u&FLAG_MOTION != 0 {
// Motion is declared by the backend registry, never inferred from templates.
if cap := GetBackendCapability(c.Backend); cap == nil || !slices.Contains(cap.PossibleUsecases, UsecaseMotion) {
return false
}
}
// Backends that are clearly not text-generation
nonTextGenBackends := []string{
+1
View File
@@ -73402,6 +73402,7 @@
url: "github:mudler/LocalAI/gallery/virtual.yaml@master"
urls:
- https://huggingface.co/LocalAI-io/GEM-X-GGUF
license: nvidia-open-model-license
description: |
Live human motion capture with GEM-X on CPU/Vulkan. Streams SOMA-77 or
SMPL-24 poses through /api/motion; no body mesh or SAM3D dependency.
+2 -1
View File
@@ -3,8 +3,9 @@ package motion
import (
"fmt"
motionpb "github.com/mudler/LocalAI/pkg/motion/proto"
"math"
motionpb "github.com/mudler/LocalAI/pkg/motion/proto"
)
// ValidateFrame bounds allocation and rejects invalid subject boxes before a