Leonardo.ai 基本操作 AI Generation Tool

Cheng Lin Tsai
9 min readAug 15, 2023

--

大綱:
1. 介紹
1.1 如何註冊登入?
1.2 登入首頁
2. 文生圖
3. 左側欄位操作
4. 舉例:金飾業
4.1. 文生戒指圖
4.1.1. Flower engagement ring
4.1.2. Engagement ring
4.1.3. Solitaire ring
4.1.4. Wedding band
4.1.5. Cocktail ring
4.2. 草稿上色

1. 介紹

Leonardo.Ai 網站為生成對抗網路(GAN) 和潛在擴散模型 (Stable Diffusion) 為基礎而生的圖像生成 AI 平台。UI 介面相對 Stable Diffusion 友善容易上手,也不用花電腦計算資源,每天有 150 點可以使用。

新註冊用戶有免費 7 天的進階付費功能試用

官網首頁
1. 進入 https://leonardo.ai/ "Leonardo AI" 官網
2. 點擊「Start using Leonardo」或「Create an account」
3. 直接按「Yes, I'm whitelisted.」(已經不用排隊,可以直接註冊使用)
4. 點擊「Login with」使用 Apple / Google / Microsoft 帳號或是 email 註冊
登入首頁
1. 每日有 150 點可以生成圖片,約 150 張 (768 X 768)
2. Home: 首頁
3. Community Feed: 社群分享的影像
4. Personal Feed: 過去個人生成的影像
5. Training & Datasets: 提供照片訓練自己的風格模型
6. Finetuned Models: 微調權重的模型
7. AI Generation Tool: 操作介面一覽功能教學
8. AI Canvas: 透過 AI 畫板功能再做圖片延伸、去背、局部修改
9. Texture Generation: 3D 圖形生成

2. 文生圖

在登入首頁點選左側 AI Generation Tool 進行文生圖

AI Generation Tool
AI Generation Tool 由上到下分別為
1. 提示詞:下 prompt 區域,第一個 prompt 為主要的主題權重最重,一定要有一個主題才能生圖
2. 選擇模型區,有多種模型可以選擇、建議開啟使用 Leonardo style,負向詞彙可以按需求開啟
2.1. 風格 (試用 / 訂閱)
Anime: 動畫
Creative: 創意的
Dynamic: 動態的
Environment: 環境
General: 一般的
Illustration: 插畫
Photography: 攝影
Raytraced: 光線追蹤
3D Render:3D 渲染
Sketch B/W: 黑白草圖
Sketch Color: 彩色草圖
None: 無
3. Image Generation: 產生圖片區
4. Prompt Generation: 給一個主題,讓AI幫你描述其他提示詞,需要耗費點數
5. Generate: 生成圖片

3. 側邊欄位操作

  • 注意如果有出現⚠️警告標示⚠️表示數值過大或過小,請調整適當大小,當然也可以不理會,會影響輸出品質。
  • 生成影像大小盡量跟選擇模型的大小一樣,超出範圍會多收點數,因為要多生圖來重疊你所指定的大小
  • 根據選項會開啟相對應功能
1. Number of Images: 一次生成幾張影像
2. PhotoReal (試用 / 訂閱): 開啟趨近於寫實照片
3. Prompt Magic Strength: 越小越接近原作品,越高越接近給的 prompt
4. Alchemy (試用 / 訂閱): 主要生成場景圖,渲染更厲害
5. Guidance Scale: 越高生成圖像的質量高,但也可能降低多樣性。
6. ControlNet: 控制生成動作
6.1. Post to Image: 模仿上傳圖片的姿勢
6.2. Edge to Image: 模擬原圖姿勢及背景布局
6.3. Depth to Image: 更加炫麗的背景,維持原圖人物姿勢
6.4. ControlNet Weight: 越大與上傳圖動作越接近
7. Tiling: 壁紙風格(非常適合重複紋理或背景)
8. Image to Image: 上傳圖片作為圖片模仿來源
9. Image prompt: 使用已有的圖片資源描述生成圖片樣式
10. Image Weight: 原始影像權重,越大越靠近上傳影像
11. Prompt Magic Strength: Prompt 權重加權
12. Use fixed seed: 使用 seed,記下來可以生成相近的圖片

4. 舉例

4.1 文生戒指圖

文生圖為隨機性,一樣的 prompt 跟模型不會完全一樣的圖片,圖片只會相近。

4.1.1. Flower engagement ring

使用 pinterest 網站找 prompt 或用 Prompt Generation 生成

圖片來源:https://pin.it/4ZzPIqt

使用參數及模型生成圖片如下:

Prompt: flower engagement ring, cherry blossom engagement ring, zircon

4.1.2. Engagement ring

Prompt: A sparkling diamond engagement ring, set in a delicate gold band, glistening in the light.
Prompt: A dazzling cocktaunique engagement ring set with natural zircon gemstone, made in sterling silver, solid gold or platinum, available with any type of gemstone or diamond, message me for customization, comes in an elegant ring box, Handcrafted in houseil ring with a glittering diamond centerpiece, set in a delicate gold band.

4.1.3. Solitaire ring

Prompt: A delicate solitaire ring, glimmering in the light with a single diamond set in a rose gold band.

4.1.4. Wedding band

Prompt: A classic white gold wedding band, with a single diamond set in the center.
Prompt: A classic white gold wedding band, with a single diamond set in the center.

4.1.5. Cocktail ring

Prompt: A dazzling cocktail ring with a glittering diamond centerpiece, set in a delicate gold band.
Prompt: A dazzling cocktail ring with a glittering diamond centerpiece, set in a delicate gold band.

4.2. 草稿上色

4.2.1 Prompt 給主題、選擇 Isometric Scifi Buildings 模型

左:草稿; 中:上色;右:prompt 及模型
左:草稿; 中:上色;右:prompt 及模型
左:草稿; 中:上色;右:prompt 及模型
左:草稿; 中:上色;右:prompt 及模型

參考模型及下 Prompt 網站:CivitaiPinterest

參考影片:
https://www.youtube.com/watch?v=VCpNlcffl4w
https://www.youtube.com/watch?v=7Ic59vdFIMo
https://www.youtube.com/watch?v=xdOyBAhgVmM
Discord: https://discord.gg/qXBwkQyU

--

--