AI入門教學(二)
主題:AI入門教學(二)
本教材的短網址 http://gg.gg/0426ss
時間:2023/04/26 下午14:00~15:30
地點:三樓電腦教室一
一、校內購買軟體再介紹
二、校內無線AP的使用
三、各式AI聊天機器人
Open AI的chatGPT
手機認證有數量限制,一個手機門號可註2個帳號?
由於我是一個大型的語言模型(GPT-3架構),我的知識截止於2021年9月
請看前一篇文有詳細介紹
Chat Everywhere
免註冊,方便學生的教學
微軟的Bing AI聊天機器人
全新的 Bing https://www.bing.com/new (要使用新版的Edge瀏覽器)
GPT-4架構
註冊過程如下:
無法使用教育局的Office365帳號來登入
Google Bard聊天機器人
加入等待名單 (目前,對巴德的訪問受到限制。請確認您想加入候補名單,輪到您時會收到一封電子郵件。 )
目前還不能使用中文
各聊天室的回覆結果比較
比較資料取得的時效性:請問台積電在台灣證券交易所中最新的收盤價為何?( What is the latest closing price of TSMC on the Taiwan Stock Exchange? )(4/26早上8:00查詢)
chapGPT:很抱歉,作為一個 AI 聊天機器人,我無法即時提供即時的證券市場資訊,因為我的知識截止到2021年底,而且我沒有即時存取股票市場資料的功能。建議您可以透過台灣證券交易所的官方網站或其他財經媒體來查詢最新的收盤價。
Chat Everywhere:很抱歉,我無法即時提供即時股票相關資訊。建議您前往台灣證券交易所的官方網站或其他財經資訊網站查詢,以獲得最精確的報價資訊。另外,請注意股票價格會持續變動,資訊可能已經有所更改。
Bing AI:台積電在台灣證券交易所的股票代碼是 2330。根據臺灣證券交易所全球資訊網,截至 2023/04/26 收盤,台積電的收盤價為 $498 元,下跌了 1.78%。您還有什麼需要幫忙的嗎?
Brad:The latest closing price of TSMC on the Taiwan Stock Exchange on April 25, 2023 is TWD 498.00. This is a decrease of TWD 9.00 (-1.78%) from the previous close.
請寫出一首五言絕句 (Please write a five-character quatrain)
各聊天機器人得到的結果都不好,常常都是列出七言絕句
請畫李白在靜夜思中所描述景物的中國風圖畫 (Please draw a Chinese-style picture of the scenery described by Li Bai in "Quiet Night Thoughts")
只有Bing AI結合Image Creator from Microsoft Bing可畫出圖來(要下英文prompt)
四、下 Prompt的技巧
Prompt:又稱提示詞、提詞、關鍵字、咒語
Image Creator from Microsoft Bing 下提示詞的建議:
形容詞+名詞+動詞,照片樣式
此方式很像我教學生的方式:
怎樣的人(或物)在哪裡做什麼事 (很像寫作文的造句)
【戴著帽子的紅色長頭髮女生】【在海邊】【看夕陽】 (girl with red long hair wearing a hat watching the sunset by the sea)
【美麗的女孩】【背景是台灣的街道】【生活照片】 (Beautiful girl, the background is the streets of taiwan, photos of life )
更深入的提問技巧:
使用肯定句
精確用語
主體、情境、道具、氣氛、風格、藝術家名字、色彩、光照、特效、精緻度、鏡頭焦段、渲染引擎、參考網站、指令
如:年輕女子、爬山、背面、府瞰、光線照射、景深、森林、湖泊、小徑、白雲、寫實、最好的質量、傑作、高分辨率、8K壁紙、精緻美麗、雜誌封面、清晰的圖片...
【正向提示】的提詞使用過程,由簡單到複雜:(到後面會實際用到)
基本款:photo of a beautiful woman (一個美麗的女人的照片)
加入背景:portrait photo of a beautiful , nature background (美麗自然背景的肖像照片)
加入一些形容詞:half body wide angle portrait photo of a beautiful hippy woman, nature background at sunset (一個美麗的嬉皮士女人的半身廣角肖像照片,日落時的自然背景)
添加更多細節:half body wide angle professional portrait photo of a beautiful hippy woman, clear and detailed eyes, nature background at sunset, backlighting, fashion photography (一位美麗的嬉皮士女性的半身廣角專業肖像照片,清晰而細緻的眼睛,日落時的自然背景,逆光,時尚攝影)
加入 居中對稱,防止圖形被切割:half body wide angle professional portrait photo of a beautiful hippy woman, clear and detailed eyes, nature background at sunset, backlighting, fashion photography, centered, symmetrical (一個美麗的嬉皮士女人的半身廣角專業肖像照片,清晰而細緻的眼睛,日落時的自然背景,逆光,時尚攝影,居中,對稱)
加入 相機型號、鏡頭、藝術家風格:half body wide angle professional portrait photo of a beautiful hippy woman, clear and detailed eyes, nature background at sunset, backlighting, fashion photography, centered, symmetrical, hasselblad helios 44-2 58mm F2, by Annie Leibovitz and Ellen von Unwerth (一位美麗的嬉皮士女性的半身廣角專業肖像照片,清晰細緻的眼睛,日落時的自然背景,逆光,時尚攝影,居中,對稱,hasselblad helios 44-2 58mm F2,Annie Leibovitz 和 Ellen von Unwerth)
修改內容:half body wide angle professional portrait photo of a beautiful hippy man, clear and detailed eyes, city at sunset, backlighting, fashion photography, centered, symmetrical, hasselblad helios 44-2 58mm F2, by Annie Leibovitz and Ellen von Unwerth (一個美麗的嬉皮士的半身廣角專業肖像照片,清晰而細緻的眼睛,日落時的城市,逆光,時尚攝影,居中,對稱,hasselblad helios 44-2 58mm F2,Annie Leibovitz 和 Ellen von Unwerth)
負面提示(NEGATIVE PROMPTS): ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, out of frame, ugly, extra limbs, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, long neck (醜陋,重複,病態,殘缺不全,框架外,多餘的手指,變異的手,畫得不好的手,畫得不好的臉,突變,變形,模糊,解剖學不好,比例不好,多餘的肢體,克隆的臉,毀容,畫框外, 醜陋,多餘的肢體,毛比例,畸形的肢體,缺胳膊少腿,多餘的胳膊,多餘的腿,變異的手,融合的手指,太多的手指,長脖子)
Prompt產生器
日系動漫風格的AI 念咒語法產生器 https://aiart-navi.com/prompt-maker/ (日文網站)
五、AI算圖
AI真人辨識測驗:先測驗看看20題中您答對幾題?(我答對14題)
現在有名的AI製圖軟體
DALL·E 2:OpenAI公司所出的
MidJourney (先在Discord註冊)
Image Creator from Microsoft Bing (該工具基於 OpenAI 的 DALL-E 圖片生成技術)
「微軟 Bing Image Creator(影像建立者)」雖然免費使用,但仍受到一定的點數限制。每位用戶初始擁有 25 點,每生成一張圖片則消耗一點,這些點數可以加快生成圖片速度。當點數用完後,用戶需排隊等待生成圖片,或者可以通過 Microsoft Rewards 兌換更多點數。
他的建議是:「形容詞+名詞+動詞,照片樣式」(例如:怎樣的人(或物)在哪裡做什麼事)
在新版的EDGE(DEV版)可以使用中文的prompt來畫圖,參考資料:https://youtu.be/CSG98ZHldCM
AI圖片的搜尋引擎 (學習如何下Prompt)
Lexica
過程比較簡單,比較適合國小學生
要先註冊才能算圖,免費帳號每月可算100張圖,不可以從事商業行為
也可匯入圖片,利用圖找圖,也可以畫出相同姿勢的圖
Lexica Aperture模型類似Dreamlike Diffusion模型
AI 產生的圖片如果你有特別喜歡哪一張,希望 AI 再產生類似的圖片,可以將鼠標移到上方,頂部會出現 Generate variations 的功能
Civitai
上面大多數圖片都是使用 Stable Diffusion 產出,可以從裡面找到想要的照片風格。
不能算圖,可上傳AI圖
找到喜歡圖片,取得其prompt
Prodia
結合類似 Stable Diffusion 繪圖功能
如果想產生比較細緻逼真的人像圖片,Prodia 就比較不適合,主要是模組不夠精細,沒辦法產生複雜比真的人物圖片
免註冊可算圖,免費的只有小圖(只能夠產生 512 X 512 像素 AI 圖片)
教學:
內容:
最快方法直接點下方六種不同範例風格,包含有手繪、寫實、擬真人物、CG動漫風格和電繪等風格
模型說明:
SD 1.4 模型:素描、手繪、3D風格
Anything V3 模型:CG風格(日系)
Anything V4.5 模型:CG風格(歐美)
Analog V1 模型:真人樣貌
TheAlly’s Mix II 電繪畫像(柔美):3D 電繪風格人物圖片
Elldreth’s Vivid 模型:電玩CG風格畫像(陰影),韓國電玩 CG 風格
Dreamlike Diffusion:真人樣貌
進階說明
CFG Scale 是一個創意指數,如果數值越低就會越自由發揮,數值越高就會按你的文字來執行。
步數越多畫出來的照片月細緻
日系風格的AI繪圖網站
每天送你1萬的點數,每用AI繪製一張圖至少要被扣除1000個點數,扣除的點數會因為我們設定的畫質更好而增加,每天都能快速生成 10 張AI繪圖。
AI 念咒語法產生器 https://aiart-navi.com/prompt-maker/ (日文網站)
Playgroundai
可算圖
免費帳號每天可算1000張圖,可用在商業
教學影片
https://youtu.be/dkUjHPQ4nHA 官方教學影片
圖片會有變形這是因為AI是在1:1的寛高比訓練的,特別是512x512
再複習一次正向提示的過程:
基本款:photo of a beautiful woman
加入肖像及背景:portrait photo of a beautiful , nature background
加入一些形容詞:half body wide angle portrait photo of a beautiful hippy woman, nature background at sunset,
選用instaport的濾鏡
添加更多細節:half body wide angle professional portrait photo of a beautiful hippy woman, clear and detailed eyes, nature background at sunset, backlighting, fashion photography,
居中對稱,防止圖形被切割:half body wide angle professional portrait photo of a beautiful hippy woman, clear and detailed eyes, nature background at sunset, backlighting, fashion photography, centered, symmetrical,
相機型號、鏡頭、藝術家風格:half body wide angle professional portrait photo of a beautiful hippy woman, clear and detailed eyes, nature background at sunset, backlighting, fashion photography, centered, symmetrical, hasselblad helios 44-2 58mm F2, by Annie Leibovitz and Ellen von Unwerth
選用Polaroid的濾鏡(復古風格)、Analog Diffusion、Perfume(香水)...
修改內容:half body wide angle professional portrait photo of a beautiful hippy man, clear and detailed eyes, city at sunset, backlighting, fashion photography, centered, symmetrical, hasselblad helios 44-2 58mm F2, by Annie Leibovitz and Ellen von Unwerth
負面提示(NEGATIVE PROMPTS): ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, out of frame, ugly, extra limbs, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, long neck
PromptHero