Code Monkey home page Code Monkey logo

Comments (7)

NA-ID avatar NA-ID commented on May 17, 2024

after i copy and change some line from TheLastBen's Fast SD latest commit it start working. But i need to launch it twice to get it working, since some file only exist after the first launch. Here is how it looks now:

!pip install -q https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.15/xformers-0.0.15.dev0+189828c.d20221207-cp38-cp38-linux_x86_64.whl

!git clone https://github.com/camenduru/stable-diffusion-webui
!git clone https://github.com/deforum-art/deforum-for-automatic1111-webui /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui
!git clone https://github.com/yfszzx/stable-diffusion-webui-images-browser /content/stable-diffusion-webui/extensions/stable-diffusion-webui-images-browser
!git clone https://github.com/camenduru/stable-diffusion-webui-huggingface /content/stable-diffusion-webui/extensions/stable-diffusion-webui-huggingface
%cd /content/stable-diffusion-webui

!wget https://huggingface.co/camenduru/sd15/resolve/main/v1-5-pruned-emaonly.ckpt -O /content/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.ckpt

!sed -i 's@"multiple_tqdm": true,@\"multiple_tqdm": false,@' /content/stable-diffusion-webui/config.json
!sed -i '902s@.*@        self.logvar = self.logvar.to(self.device)@' /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/models/diffusion/ddpm.py
!python launch.py --share --force-enable-xformers

Is there any method to make it start working on first launch?

from stable-diffusion-webui-colab.

camenduru avatar camenduru commented on May 17, 2024

thanks @NA-ID ❤ I will check

from stable-diffusion-webui-colab.

camenduru avatar camenduru commented on May 17, 2024

AUTOMATIC1111/stable-diffusion-webui#3958 (comment)

from stable-diffusion-webui-colab.

camenduru avatar camenduru commented on May 17, 2024

Is there any method to make it start working on first launch?

hi @NA-ID you can use like this

!sed -i -e '''/prepare_environment()/a\ os.system\(f\"""sed -i -e ''\"s/self.logvar\\[t\\]/self.logvar\\[t.item()\\]/g\"'' /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/models/diffusion/ddpm.py""")''' /content/stable-diffusion-webui/launch.py

from stable-diffusion-webui-colab.

camenduru avatar camenduru commented on May 17, 2024

https://github.com/Stability-AI/stablediffusion/blob/d55bcd4d31d0316fcbdf552f2fd2628fdc812500/ldm/models/diffusion/ddpm.py#L903

logvar_t = self.logvar[t].to(self.device) to logvar_t = self.logvar[t.item()].to(self.device)

from stable-diffusion-webui-colab.

camenduru avatar camenduru commented on May 17, 2024

Stability-AI/stablediffusion#119

from stable-diffusion-webui-colab.

camenduru avatar camenduru commented on May 17, 2024

example usages
https://github.com/camenduru/stable-diffusion-webui-colab/blob/main/stable_diffusion_1_5_webui_colab.ipynb
https://github.com/camenduru/stable-diffusion-webui-colab/blob/main/stable_diffusion_v2_webui_colab.ipynb

from stable-diffusion-webui-colab.

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.