1 of 31

生成式人工智慧導論

06穩定擴散

鄭傳脩

國立臺北科技大學資訊工程系

2 of 31

使用模型

P.2

01

章節 01

3 of 31

Civitai

Checkpoint:based66_v30

P.3

4 of 31

Civitai

Lora: chibi-laugh

P.4

5 of 31

Civitai

Lora: boldline

P.5

6 of 31

雲端運行

02

P.6

7 of 31

Civitai

Civitai,一個開放模型下載的網站,可以上去下載任意你想要的模型

創建帳號後,點擊頭像->Account Settings

P.7

8 of 31

Civitai

移到最下面,找到API Keys,選擇Add API Key

P.8

9 of 31

Civitai

隨意命名,API Key出現的時候也記得要複製

P.9

10 of 31

Colab

點此開啟Colab連

將Civitai Api貼上

P.10

11 of 31

Colab

安裝Comfy UI所需要的套件

P.11

12 of 31

Colab

下載checkpoint和lora,有提供範例的,也可自行去civitai上找尋自己想要的

P.12

13 of 31

Colab

下載checkpoint(Based66_V30)

P.13

14 of 31

Colab

lora同checkpoint

P.14

15 of 31

Colab

下載完後執行啟動ComfyUI網頁

P.15

16 of 31

Colab

確認執行階段後點擊連結

P.16

17 of 31

Colab

點擊Enter site

P.17

18 of 31

Colab

成功進入ComfyUI

P.18

19 of 31

Colab

P.19

20 of 31

Colab

匯入剛剛下載的工作流

P.20

21 of 31

Colab

P.21

安裝遺失套件

22 of 31

Colab

P.22

安裝遺失套件後重新整理網頁

23 of 31

Colab

P.23

安裝遺失套件後重新整理網頁

24 of 31

Colab

P.24

更改種子生成器為randomize

25 of 31

Colab

P.25

按下運行開始生成影片

26 of 31

Colab

P.26

生成完畢後回到Colab找到生成的影片

27 of 31

Sample

P.27

28 of 31

繳交資訊

03

P.28

29 of 31

Regulations

  • You should finish your homework on your own. 
  • Do not share your codes with any living creatures. 
  • Your HW will get 0 pt if you violate any of the above rules. 
  • Professor & TAs preserve the rights to change the rules & grades.

P.29

30 of 31

助教聯絡資訊

章節07

05

P.30

31 of 31

助教聯絡資訊

  • TA Email
    • 鄭傳脩 t113598022@ntut.org.tw
    • Email 標題請按照此格式(X為作業編號) : [-hwX-學號]

P.31