jetson-voice icon indicating copy to clipboard operation
jetson-voice copied to clipboard

Trying to get tts to load text from a file and size limitations

Open jpcookie opened this issue 2 years ago • 0 comments

i'm interested in creating a wav like you did from the input but it seems to be quite limited on the amount of text it can load. Plus I'm looking for file loading. I tried to do a larger text but got:

[TensorRT] ERROR: 3: [executionContext.cpp::setBindingDimensions::969] Error Code 3: Internal Error (Parameter check failed at: runtime/api/executionContext.cpp::setBindingDimensions::969, condition: profileMaxDims.d[i] >= dimensions.d[i]. Supplied binding dimension [1,80,2378] for bindings[0] exceed min ~ max range at index 2, maximum dimension in profile is 1024, minimum dimension in profile is 1, but supplied dimension is 2378. ) Traceback (most recent call last): File "tts2.py", line 90, in audio = tts(args.text) File "/jetson-voice/jetson_voice/models/tts/tts_engine.py", line 81, in call audio = self.vocoder.execute(mels) File "/jetson-voice/jetson_voice/backends/tensorrt/trt_model.py", line 114, in execute setup_binding(self.bindings[idx], input) File "/jetson-voice/jetson_voice/backends/tensorrt/trt_model.py", line 109, in setup_binding binding.set_shape(input.shape) File "/jetson-voice/jetson_voice/backends/tensorrt/trt_binding.py", line 80, in set_shape raise ValueError(f"failed to set binding '{self.name}' with shape {shape}") ValueError: failed to set binding 'mels' with shape (1, 80, 2378) [TensorRT] INFO: [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +0, now: CPU 2308, GPU 3704 (MiB)

tts2.py is just copying the tts.py and adding a longer string and naming it something else.

How does one increase the size so it's not that limited?

Thanks for the help in advance.

jpcookie avatar Oct 17 '21 22:10 jpcookie