Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
(Ken Cen出品)Generative AI第25部 使用Pytorch編寫 Stable Diffusion 下部
Rating: 5.0 out of 5(2 ratings)
85 students

(Ken Cen出品)Generative AI第25部 使用Pytorch編寫 Stable Diffusion 下部

關於 Stable Diffusion,U-NET,DDPM,TimeSteps,CLIP,VAE,Classifier Free Guidance,Pytorch
Created byKen Cen
Last updated 10/2025
Chinese (Traditional)
Chinese (Traditional) [Auto],

What you'll learn

  • 如何在僅用 Pytorch 編寫 Stable Diffusion 架構和組件
  • 如何用 Pytorch 編寫 DDPM 實現模型學習 Latent Space 數據分佈
  • 如何用 Pytorch 編寫 Diffusion 實現 U-NET 功能
  • 如何用 Stable Diffusion 在 VSCode 按照 Prompt 生成圖片

Course content

3 sections9 lectures5h 55m total length
  • 加入Udemy 全球最大的中文 AI 課程2:16
  • 課程工具準備2:41

    學員將準備課程需要的工具

  • 如何使用uv 作為包管理器和項目管理工具10:53

    學員將學會如何使用uv 作為包管理器和項目管理工具

Requirements

  • 一台電腦

Description

繼續在(Ken Cen出品)Generative AI第24部 使用Pytorch編寫 Stable Diffusion 上部的基礎上,實現整個 Diffusion,擴散過程和 DDPM 實現模型學習 Latent Space 數據分佈過程,這是 Stable Diffusion 中的核心關鍵。


課程不使用其他外部 library,以 Pytorch 作為底層構建 Stable Diffusion 所需一切組件,最終將根據用戶的 prompt 在 VSCode 中生成圖片。


  • 從 U-NET 開始構建,創建 U-NET 內部的Encoder,Bottle Neck, Decoder,了解內容結構

  • 如何讓 U-NET 以用不同參數餵養Encoder,Bottle Neck, Decoder,以及每個組件中,如何搭配 Self-Attention & Cross-Attention 和 Residual

  • 用 Pipeline 組織 CLIP,VAE,U-NET,根據不同的Classifier Free Guidance 輸出不同的雜訊預測,結合 Context 輸入得到 U-NET 的輸出

  • 最終輸入 Stable Diffusion 預訓練模型的權重,按Prompt 生成圖片。


Who this course is for:

  • AI/ML 研究者與工程師
  • 產品經理與創意設計師
  • 數據科學家與視覺工程師
  • 所有對 AI 藝術與創新應用有興趣者