Coder Social home page Coder Social logo

Comments (8)

inflamously avatar inflamously commented on August 17, 2024 1

@0xdevalias Hello there, I hope is it fine for you that I kind of created a "minified" version of your colab which works fine with a T4 using xformers.
Sometimes later I might add other tools like Inpainting, Depth and Upscaling.

https://colab.research.google.com/drive/1wzI9nt8dYqq47I1Y-WvOAiO01y7EBoiO?usp=sharing

from stablediffusion.

backnotprop avatar backnotprop commented on August 17, 2024 1

Here is a Colab/Gradio setup to play with the depth model:

https://github.com/backnotprop/Colab-Stable-Diffusion-2-Depth-UI/tree/main

from stablediffusion.

0xdevalias avatar 0xdevalias commented on August 17, 2024 1

Yes, stable_diffusion2 is working now. And the few lines of code to get inference is in here:
https://colab.research.google.com/drive/1Na9x7w7RSbk2UFbcnrnuurg7kFGeqBsa?usp=sharing

Originally posted by @hamzafar in huggingface/diffusers#1388 (comment)

!pip install --upgrade git+https://github.com/huggingface/diffusers.git transformers accelerate scipy
from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
import torch

model_id = "stabilityai/stable-diffusion-2"

# Use the Euler scheduler here instead
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, revision="fp16", torch_dtype=torch.float16)
pipe = pipe.to("cuda")

prompt = "beautiful gaze"

image = pipe(prompt, height=768, width=768).images[0]
image

from stablediffusion.

0xdevalias avatar 0xdevalias commented on August 17, 2024

Related:

colab.research.google.com/drive/1cuzz-TcAXsqlCPqqa8U7LltMmeZuBYkh?usp=sharing

from stablediffusion.

0xdevalias avatar 0xdevalias commented on August 17, 2024

Should work now, make sure you check the box "redownload original model" when choosing V2

https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb

Requires more than 12GB of RAM for now, so free colab probably won't suffice.

Originally posted by @TheLastBen in TheLastBen/fast-stable-diffusion#599 (comment)

from stablediffusion.

0xdevalias avatar 0xdevalias commented on August 17, 2024

I hope is it fine for you that I kind of created a "minified" version of your colab which works fine with a T4 using xformers.

@inflamously It's not my colab, just one I found on another repo and wanted to ensure was linked and accessible here :)

from stablediffusion.

0xdevalias avatar 0xdevalias commented on August 17, 2024

The inpainting model should work now without needing to rename the checkpoint.
For anyone who wants to try it: https://colab.research.google.com/drive/1ayH6PUri-vvTXhaoL3NEZr_iVvv2qosR

Originally posted by @uservar in AUTOMATIC1111/stable-diffusion-webui#5011 (comment)

from stablediffusion.

woctezuma avatar woctezuma commented on August 17, 2024

Alternatively, run stable_diffusion.ipynb. Open In Colab

from stablediffusion.

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.