GithubHelp home page GithubHelp logo

Playground doesnt work about riffusion HOT 5 OPEN

gitihobo avatar gitihobo commented on June 1, 2024
Playground doesnt work

from riffusion.

Comments (5)

justanothernguyen avatar justanothernguyen commented on June 1, 2024 3

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.

rsxdalv avatar rsxdalv commented on June 1, 2024

Could it be this problem: #148 or an installation issue?

from riffusion.

gitihobo avatar gitihobo commented on June 1, 2024

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 leaving sample_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 the unet/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.

imVinayPandya avatar imVinayPandya commented on June 1, 2024

same error
TypeError: 'bool' object is not iterable

from riffusion.

davidmartinrius avatar davidmartinrius commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.