Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio2audio errors : st.cache is deprecated + missing 1 required positional argument: 'init_image' #156

Open
Katmoget opened this issue Oct 28, 2023 · 0 comments

Comments

@Katmoget
Copy link

Katmoget commented Oct 28, 2023

Hi
I get the following errors when trying to use audio-to-audio in playground


2023-10-28 09:30:37.155 st.cache is deprecated. Please use one of Streamlit's new caching commands,
st.cache_data or st.cache_resource.

More information in our docs.
Fetching 15 files: 100%|...........................................| 15/15 [00:00<?, ?it/s]
You have passed a non-standard module <function load_stable_diffusion_img2img_pipeline.. at 0x000001E19002FC70>. We cannot verify whether it has the correct type
2023-10-28 09:30:41.658 Uncaught app exception
Traceback (most recent call last):
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\legacy_caching\caching.py", line 679, in get_or_create_cached_value
return_value = _read_from_cache(
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\legacy_caching\caching.py", line 436, in _read_from_cache
raise e
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\legacy_caching\caching.py", line 421, in _read_from_cache
return _read_from_mem_cache(
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\legacy_caching\caching.py", line 338, in _read_from_mem_cache
raise CacheKeyNotFoundError("Key not found in mem cache")
streamlit.runtime.legacy_caching.caching.CacheKeyNotFoundError: Key not found in mem cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
exec(code, module.dict)
File "D:\riffusion\riffusion\streamlit\playground.py", line 34, in
render()
File "D:\riffusion\riffusion\streamlit\playground.py", line 29, in render
module.render()
File "D:\riffusion\riffusion\streamlit\tasks\audio_to_audio.py", line 272, in render
image = streamlit_util.run_img2img(
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\legacy_caching\caching.py", line 716, in wrapped_func
return get_or_create_cached_value()
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\legacy_caching\caching.py", line 697, in get_or_create_cached_value
return_value = non_optional_func(*args, **kwargs)
File "D:\riffusion\riffusion\streamlit\util.py", line 383, in run_img2img
result = pipeline(
File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
TypeError: StableDiffusionImg2ImgPipeline.call() missing 1 required positional argument: 'init_image'


Using magic mix : the files are created however I still get the cache error.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant