SDXL Prompts 進階指南 (1) - 鏡頭視角距離
SDXL 版本的 prompts 鏡頭距離視角教學,可以單純使用 prompts 就控制鏡頭距離視角,而不用 ControlNet 或其他 extensions。同時也新增場景構圖 prompts 以供參考。

之前一篇使用 prompts 控制鏡頭角度成為了最受歡迎的 Stable Diffusion 教學之一,經過了一段時間的測試及學習,現在推出 SDXL 版本的 prompts 鏡頭距離視角教學教學,可以單純使用 prompts 就控制鏡頭距離視角,而不用 ControlNet 或其他 extensions。同時也新增場景構圖 prompts 以供參考。
SDXL model 其實對自然言語的理解能力比 SD 1.5 /2.1 好得多,所以我們除了單獨 prompts 外也可以利用自然言語來描述想要的畫面。

使用 SD 1.5 可以參考舊版
基本設定
今次測試會利用 Animageine XL 來進行測試。

基本 prompts:{prompts} of a girl, brown hair, streetwear, in new york broadway, intricate detailed, looking at viewer
Negative prompts : low quality, worst quality, out focus, blur
當中 {prompts}
會換成不同的焦距 prompt,並在各 prompts 加上權重 1.5
。

鏡頭距離
今次會分類比較各位相似的焦距,首先由最近的開始,到中距離,最後到遠距離。
超近距離/近距離/頭部特寫

extreme close up
會比較接近,但沒有 SD 1.5 時放大眼睛的效果。macro close up
,big close up
帶來比close up shot
近一點。- 想有放大眼睛的效果就要在
extreme close up
後加上of eye
。 - 同樣的放法可以應用在不同部位,被指定的部位會變的特別細緻及稍為放大。

- 但注意不要將部位 prompts 放到增加權重的括號內,這樣部位會巨大化及異常精細,但也會變得奇怪就是。
中距離/上半身


upper body
,portrait
, 都是上見到頭部及肩膀。medium shot
,chest_shot
,half body
都是見到上半身到腰以上。cowboy_shot
,knee_shot
,waist_shot
都是見到上半身至大腿左右。- 以前
cowboy shot
會令人變成牛仔的問題在cowboy
跟shot
之間加上_
可以解決。 chest_shot
,cowboy_shot
,knee_shot
,waist_shot
還是會令服飾改變。
全身/遠距離/超遠距離

full shot
,full body shot
都會見到由頭到腳全身。establishing shot
人物會生成在略低於long shot
見到背景比較多。long shot
,extreme long shot
會見到上半身到大腿左右的位置,有時會比較小。
鏡頭角度
鏡頭角度比較多角度,我盡量歸納比較相近的方便參考。
正面

front view
跟straight on shot
也是完全正面的角度,但straight
的關係頭髮變直了。dutch angle shot
荷蘭角就是 45度斜角,而且會保持正面。selfie
會舉起手自拍,自帶美顏效果,也會樣子變得可愛。
側面

side view
,lateral view
跟flank view
左/右隨機側面。profile
跟side view
差不多,但人物看來起比較飄逸。
背面

back_view
,from behind
,back
都是背見到大部份背面,因為looking at viewer
得關係會轉頭望過來,有back
字影響會變成露背裝。turn around
轉身的比例會比較多。
高視角

bird_eye_view
背景會有桶狀變形。bird_eye_view
,top down view
角度會比較高。overhead_shot
,from above
背景變形比較少。high_angle
,slightly above
角度會悄為低一點。
低視角

low angle
,low view
角度會低一點點。from below
,worm_view
,from bottom
都會角度極底,角色穿裙子的話會見到內褲!worm_eye view
還是無可避免會有蟲的圖案,眼睛會變成眼罩或蟲眼。from bottom
有時會見到屁股。
超廣角/廣角

ultra wide angle view
,fisheye_shot
背景會變扭曲成圓形。fisheye_shot
會影響畫質。wide angle view
背景扭曲會比較少。upside_down_shot
整個人會反轉,背景有時都會變成圓形。
動態

Prompt 換成 a car driving in new york city, with a {prompts} of background
, 以配合場景,因為用 girl
的效果不太好。
pan shot
,tracking shot
,motion blur
背景會有不同程度的動態模糊。zoom burst
會全個畫面包括人物在包都有擴散性的動態模糊。
建築

Prompts 換成 {prompt} of clock tower in a city
以顯示建築用的視角。
vanishing point
畫面中心變成消失點,整個畫面向主體線性收縮成一點。aerial shot
就有航拍機拍攝的效果,視點在空中而且有點廣角的效果。tilt shift shot
就會有微縮拍攝的移軸效果,超重的景深。isometric view
會從 45 度角斜視建築,畫面的變形會比較少。
對稱

Prompts 換成 a girl, a dress with {prompt} magic patterns of Shipibo-Konibo, looking at viewer
生成幾何圖形同時減少權重,權重太高會變得奇怪。
bilaterally_symmetrical_shot
,horizontal_symmetry_shot
畫面大致上左右對稱,有時顏色會變得奇怪。vertical_symmetry_shot
垂直對稱的原因女孩消失掉。
構圖取景
不同的鏡頭距離+視角 + 場景組合成構圖,上次在這方面只是舉了幾個例子,今次加入更多不同的構圖以供參考。

(selfie:1.5), (wide angle view:1.5) of 1girl, black hair, air bubble, floating in water, underwater ripples, sun shine

(from below:1.3), (profile:1.5) of a girl wearing a pink kimono, looking at viewer, firework in the sky, intricate detailed

(close up shot:1.5) of a beautiful the cloud elf queen busks on the streets, (wide angle view:1.3) of new york, playing guitar and singing, dynamic pose, highly detailed, smooth, sharp focus, intricate detailed

(medium shot:1.5), (dutch angle shot:1.5) of a girl sitting with tuck knees in a Capsule hotel, cyberpunk, neolight, intricate detailed

(side view:1.5), (medium shot:1.5) of a girl hold on to the tree vine, tree from which the foliage is flying around, motion_blur background, intricate detailed, looking at viewer

(medium shot:1.5), (back_view:1.5) of a girl, wearing Wedding dress, (back light:1.5), in a church

(low view:1.5), (chest_shot:1.3) of a girl drawing a glowing light magic circle in front of two hand, wind, intricate detailed
雖然這次教學是以 SDXL 為基礎寫成,但是也不代表在其他 Model 不適用,甚至在 Midjounery / Dalle 3 也是適用的,大家多嘗試多學習才能把 prompts 控制自如,想到什麼就生成什麼!