Comments (5)
This is an issue with not pinning dependencies. If you recently installed riffussion, chances are you have a version with breaking changes.
Try changing the requirements.txt
Instead of
diffusers>=0.9.0
Pin it to 0.9.0:
diffusers=0.9.0
I had issues with torch , torchaudio and torchvision too because there's a breaking change on 2.1.x (released recently), have to pin those to 2.0.1
from riffusion.
Could it be this problem: #148 or an installation issue?
from riffusion.
Yes first I get A:\anaconda3\envs\riffusion\riffusion\riffusion\riffusion_pipeline.py:14: FutureWarning: Importing DiffusionPipeline
or ImagePipelineOutput
from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.
from diffusers.pipeline_utils import DiffusionPipeline
text_encoder\model.safetensors not found
You have passed a non-standard module <function load_stable_diffusion_pipeline.. at 0x00000129EE22AEE0>. We cannot verify whether it has the correct type
A:\anaconda3\envs\riffusion\lib\site-packages\diffusers\pipelines\stable_diffusion\pipeline_stable_diffusion.py:181: FutureWarning: The configuration file of the unet has set the default sample_size
to smaller than 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the following:
- CompVis/stable-diffusion-v1-4
- CompVis/stable-diffusion-v1-3
- CompVis/stable-diffusion-v1-2
- CompVis/stable-diffusion-v1-1
- runwayml/stable-diffusion-v1-5
- runwayml/stable-diffusion-inpainting
you should change 'sample_size' to 64 in the configuration file. Please make sure to update the config accordingly as leavingsample_size=32
in the config might lead to incorrect results in future versions. If you have downloaded this checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for theunet/config.json
file
then
TypeError: 'bool' object is not iterable
Traceback:
File "A:\anaconda3\envs\riffusion\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "A:\anaconda3\envs\riffusion\riffusion\riffusion\streamlit\playground.py", line 34, in
render()
File "A:\anaconda3\envs\riffusion\riffusion\riffusion\streamlit\playground.py", line 29, in render
module.render()
File "A:\anaconda3\envs\riffusion\riffusion\riffusion\streamlit\tasks\text_to_audio.py", line 95, in render
image = streamlit_util.run_txt2img(
File "A:\anaconda3\envs\riffusion\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 211, in wrapper
return cached_func(*args, **kwargs)
File "A:\anaconda3\envs\riffusion\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 240, in call
return self._get_or_create_cached_value(args, kwargs)
File "A:\anaconda3\envs\riffusion\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 266, in _get_or_create_cached_value
return self._handle_cache_miss(cache, value_key, func_args, func_kwargs)
File "A:\anaconda3\envs\riffusion\lib\site-packages\streamlit\runtime\caching\cache_utils.py", line 320, in _handle_cache_miss
computed_value = self._info.func(*func_args, **func_kwargs)
File "A:\anaconda3\envs\riffusion\riffusion\riffusion\streamlit\util.py", line 174, in run_txt2img
output = pipeline(
File "A:\anaconda3\envs\riffusion\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "A:\anaconda3\envs\riffusion\lib\site-packages\diffusers\pipelines\stable_diffusion\pipeline_stable_diffusion.py", line 764, in call
do_denormalize = [not has_nsfw for has_nsfw in has_nsfw_concept]
from riffusion.
same error
TypeError: 'bool' object is not iterable
from riffusion.
This is an issue with not pinning dependencies. If you recently installed riffussion, chances are you have a version with breaking changes.
Try changing the requirements.txt
Instead of
diffusers>=0.9.0
Pin it to 0.9.0:
diffusers=0.9.0
I had issues with torch , torchaudio and torchvision too because there's a breaking change on 2.1.x (released recently), have to pin those to 2.0.1
Hello everyone!
I followed your steps and it worked. For anyone that needs the commands to fix a fresh installation and already installed the requirements.txt and supposing you are working with NVIDIA GPU:
pip uninstall diffusers
pip install diffusers==0.9.0
pip uninstall torch torchvision torchaudio
pip install torch==2.0.1+cu118 torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
Thank you @justanothernguyen !
David Martin Rius
from riffusion.
Related Issues (20)
- Hello gentleman,download checkpoint to where? HOT 1
- 'bool' object is not iterable HOT 8
- Where do I download these models? HOT 2
- How to make my own model? HOT 2
- Dependencies in `requirements.txt` have module conflicts. HOT 2
- Generate a music longer than 5 seconds? HOT 2
- audio2audio errors : `st.cache` is deprecated + missing 1 required positional argument: 'init_image'
- https://www.riffusion.com/about is down
- diffusers was upgraded and something need to be change?
- help, how to fix this problem? HOT 1
- ModuleNotFoundError: No module named 'diffusers.pipeline_utils' HOT 1
- Riffusion.com HOT 1
- __init__() got an unexpected keyword argument 'max_iter' HOT 7
- INFO:werkzeug:WARNING HOT 1
- RuntimeWarning: invalid value encountered in cast
- Prompt and setting of txt2img task
- ValueError: jaxlib.xla_extension.ArrayImpl
- OSError: riffusion/riffusion-model-v1 does not appear to have a file named model_index.json.
- About the language of the lyrics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riffusion.