fix: change fps output type from INT to FLOAT

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-28 11:05:35 +01:00
parent d0c9a72782
commit 30631c0cb4
+2 -2
View File
@@ -105,7 +105,7 @@ class PrismAudioFeatureExtractor:
}, },
} }
RETURN_TYPES = ("PRISMAUDIO_FEATURES", "INT") RETURN_TYPES = ("PRISMAUDIO_FEATURES", "FLOAT")
RETURN_NAMES = ("features", "fps") RETURN_NAMES = ("features", "fps")
FUNCTION = "extract_features" FUNCTION = "extract_features"
CATEGORY = PRISMAUDIO_CATEGORY CATEGORY = PRISMAUDIO_CATEGORY
@@ -135,7 +135,7 @@ class PrismAudioFeatureExtractor:
print(f"[PrismAudio] Using cached features: {cached_path}") print(f"[PrismAudio] Using cached features: {cached_path}")
loader = PrismAudioFeatureLoader() loader = PrismAudioFeatureLoader()
features, = loader.load_features(cached_path) features, = loader.load_features(cached_path)
return (features, round(fps)) return (features, float(fps))
# Save frames to temp file (lossless .npy, no codec roundtrip) # Save frames to temp file (lossless .npy, no codec roundtrip)
import time import time