fix bytes

This commit is contained in:
游雁 2024-12-10 17:43:58 +08:00
parent 22b928dd3f
commit 92586a4a90

View File

@ -138,7 +138,10 @@ def load_audio_text_image_video(
def load_bytes(input):
# input = validate_frame_rate(input)
try:
input = validate_frame_rate(input)
except:
pass
middle_data = np.frombuffer(input, dtype=np.int16)
middle_data = np.asarray(middle_data)
if middle_data.dtype.kind not in "iu":