mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 00:59:28 -04:00
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:
4 files changed
+8
-4
No files matched your search
@@ -7,7 +7,6 @@ option java_outer_classname = "LocalAIBackend";
|
||||
|
||||
package backend;
|
||||
|
||||
|
||||
service Backend {
|
||||
rpc Health(HealthMessage) returns (Reply) {}
|
||||
rpc Free(HealthMessage) returns (Result) {}
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user