Build Free AI Sketch2Picture Tool using Stable Diffusion & Gradio

Build your own AI Sketch2Picture Tool using Gradio & Stable Diffusion. I’m calling this Shaka Laka Boom Boom with AI with reference to a popular Indian TV Series for Kids in the same name where a Kid gets a Magic Pencil which can be used to generate anything realistic from a pencil sketch

In this tutorial you’ll learn:

1. How to do Sketch2Picture Tool using Stable Diffusion
2. Build a Gradio App to do live Sketch2Picture Tool using Gradio & Stable Diffusion

Code – https://colab.research.google.com/drive/1qw5tqSDjswi8LzS3NVnv3Fpm7Ntg4Td4?usp=sharing

#aiart #dalle

12 Comments

  1. Very informative video.
    You remember your video where you used a package called “bitsandbytes” to make Bloom run on low end GPUs, do you have any idea if bitsandbytes works with Stable Diffusion or is there any similar alternative that works with it?

  2. Hey nice concept!!! thanks for sharing it.
    I keep encountering this issue when I run it. can I please have some help on getting it to work?
    ImportError Traceback (most recent call last)

    <ipython-input-48-5e6e0fac1643> in <module>

    3 from PIL import Image

    4 #from image_to_image import StableDiffusionImg2ImgPipeline, preprocess

    —-> 5 from diffusers import StableDiffusionImg2ImgPipeline

    ImportError: cannot import name 'StableDiffusionImg2ImgPipeline' from 'diffusers' (/usr/local/lib/python3.7/dist-packages/diffusers/__init__.py)

  3. RuntimeError: Failed to import transformers.models.clip.feature_extraction_clip because of the following error (look up to see its traceback):

    module 'PIL.Image' has no attribute 'Resampling'

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2024 AI Art Video Tutorials