Error on MacOS (all defaults)
cbg342 opened this issue · 0 comments
Found 0 images in /Users/cameronglass/stable-diffusion-webui/outputs, pattern *.jpg, *.png
Converted 0 images to audio
Found 2 images in /Users/cameronglass/stable-diffusion-webui/outputs/riffusionOut, pattern *.jpg, *.png
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/gradio/routes.py", line 337, in run_predict
output = await app.get_blocks().process_api(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/gradio/blocks.py", line 1015, in process_api
result = await self.call_function(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/gradio/blocks.py", line 833, in call_function
prediction = await anyio.to_thread.run_sync(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/Users/cameronglass/stable-diffusion-webui/extensions/sd-webui-riffusion/scripts/riffusion.py", line 345, in convert_audio
output_files.append(convert_audio_file(image, image_dir))
File "/Users/cameronglass/stable-diffusion-webui/extensions/sd-webui-riffusion/scripts/riffusion.py", line 326, in convert_audio_file
wav_bytes, duration_s = riffusion.wav_bytes_from_spectrogram_image(image_file)
File "/Users/cameronglass/stable-diffusion-webui/extensions/sd-webui-riffusion/scripts/riffusion.py", line 162, in wav_bytes_from_spectrogram_image
Sxx = self.spectrogram_from_image(
File "/Users/cameronglass/stable-diffusion-webui/extensions/sd-webui-riffusion/scripts/riffusion.py", line 217, in spectrogram_from_image
data = data[::-1, :, 0]
IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed