 

#  Tutorial on Stable Diffusion model came out in ML from Scratch seminar series! 

 





November 02, 2022

 

 

   ![Lovely_Cat_generated_per_stable_diffusion](/sites/g/files/omnuum11221/files/styles/hwp_1_1__360x360_scale/public/binxuw/files/stablediffusion_fromscratch_resize.png?itok=NfnGAEvY) 

 

Official [Github repo](https://github.com/DrugowitschLab/ML-from-scratch-seminar/tree/master/StableDiffusion) in ML from Scratch seminar series.

- Lecture Slides ([slides ](/file_url/136)/ [PPTX](/files/binxuw/files/stable_diffusion_a_tutorial_johnedited.pptx)): Concept of diffusion model, and all machine learning components built into stable diffusion.
- Exercise notebooks for the seminar 
    - Playing with Stable Diffusion and inspecting the internal architecture of the models. ([Open in Colab](https://colab.research.google.com/drive/1TvOlX2_l4pCBOKjDI672JcMm4q68sKrA?usp=sharing))
    - Build your own Stable Diffusion UNet model from scratch in a notebook. (with &lt; 300 lines of codes!) ([Open in Colab](https://colab.research.google.com/drive/1mm67_irYu3qU3hnfzqK5yQC38Fd5UFam?usp=sharing))
    - Build a Diffusion model (with UNet + cross attention) and train it to generate MNIST images based on the "text prompt". ([Open in Colab](https://colab.research.google.com/drive/1Y5wr91g5jmpCDiX-RLfWL1eSBWoSuLqO?usp=sharing))



 

 

 



 

 

 Share on:- [     Facebook ](#)
- [     Twitter ](#)
- [     Linkedin ](#)