Coder Social home page Coder Social logo

woctezuma / stable-diffusion-colab Goto Github PK

View Code? Open in Web Editor NEW
309.0 6.0 80.0 50 KB

Colab notebook for Stable Diffusion Hyper-SDXL.

Home Page: https://github.com/Stability-AI/generative-models

License: MIT License

Jupyter Notebook 100.00%
colab colab-notebook colaboratory stable-diffusion huggingface-diffusers diffusion diffusion-models text-to-image text-to-image-generation text-to-image-synthesis

stable-diffusion-colab's Introduction

Stable Diffusion Hyper-SDXL - Colab

The goal of this repository is to provide a Colab notebook to run the text-to-image Stable Diffusion Hyper-SDXL model.

Usage

Results

Astronaut on Mars Astronaut on Mars Astronaut on Mars

Different results obtained with the text prompt: "a photo of an astronaut riding a horse on Mars" using Stable Diffusion XL.

Pikachu in Paris Pikachu in Paris Pikachu in Paris

Different results obtained with the text prompt: "a photo of Pikachu fine dining with a view to the Eiffel Tower" using Stable Diffusion XL.

References

[1] Rombach, Robin, et al. High-resolution image synthesis with latent diffusion models. CVPR 2022. (models & demo)

[2] Karras, Tero, et al. Elucidating the Design Space of Diffusion-Based Generative Models. NeurIPS 2022. (code)

[3] Luo, Simian, et al. Latent Consistency Models: Synthesizing HR Images with Few-Step Inference. arXiv 2023. (code)

[4] Luo, Simian, et al. LCM-LoRA: A Universal Stable-Diffusion Acceleration Module. arXiv 2023.

stable-diffusion-colab's People

Contributors

redromnon avatar tonypepebear avatar woctezuma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

stable-diffusion-colab's Issues

No module named 'triton'" / CUDA Error

Thanks for making this.

I have two issue:

  1. I get this error:
"WARNING:root:A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'"

But I was able to generate images without any issue.

  1. After generating the image, there's no way to free up GPU memory and getting cuda memory error when trying to generate more high resolution images. someone suggested this:
from numba import cuda
import torch 
device = cuda.get_current_device()
device.reset()

and it did empty the gpu memory but somehow detach the cuda device from the notebook!

CUDA error: invalid argument
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

Getting an error on the pipe.enable_xformers_memory_efficient_attention() step

Getting this error on the pipe.enable_xformers_memory_efficient_attention() step:

RuntimeError                              Traceback (most recent call last)
[<ipython-input-5-4f0f5a2b85ee>](https://localhost:8080/#) in <module>
     12     )
     13 pipe = pipe.to(device)
---> 14 pipe.enable_xformers_memory_efficient_attention()
     15 
     16 if model_id.endswith('-base'):

15 frames
[/usr/local/lib/python3.8/dist-packages/xformers/ops.py](https://localhost:8080/#) in no_such_operator(*args, **kwargs)
     44 def _get_xformers_operator(name: str):
     45     def no_such_operator(*args, **kwargs):
---> 46         raise RuntimeError(
     47             f"No such operator xformers::{name} - did you forget to build xformers with `python setup.py develop`?"
     48         )

RuntimeError: No such operator xformers::efficient_attention_forward_cutlass - did you forget to build xformers with `python setup.py develop`?

Any advice? Thanks

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.