Comments (8)
@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.
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.
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=sharingOriginally 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.
Related:
colab.research.google.com/drive/1cuzz-TcAXsqlCPqqa8U7LltMmeZuBYkh?usp=sharing
from stablediffusion.
Should work now, make sure you check the box "redownload original model" when choosing V2
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.
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.
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_iVvv2qosROriginally posted by @uservar in AUTOMATIC1111/stable-diffusion-webui#5011 (comment)
from stablediffusion.
Alternatively, run stable_diffusion.ipynb
.
from stablediffusion.
Related Issues (20)
- Forbidden Embedded
- error when building docker HOT 1
- xformers installs overwrites torch with 2.2.1 HOT 1
- ERROR: Cannot activate python venv, aborting...
- Stable diffusion does not start
- Repo
- Missing imports
- x4-upscaler get very bad results
- Unable to Locate 'imwatermark' Module HOT 1
- ControlNet wot working after update
- RuntimeError: Input type (c10::Half) and bias type (float) should be the same
- FutureWarning: 'resume_download' error
- How to use DDPM to convert a low-resolution image into a high-resolution image?
- [algorithm suggestion] "Foveated" image representation when sampling?
- Generated images
- Switching between Inpaint maked and not masked is broken
- update to 3.0
- English Resume
- English Resume
- Parameterization "v" Related Questions in LoRA Training
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 stablediffusion.