สร้างตัวละครใน Midjourney ด้วยคำสั่ง cref

ปลดล็อคความสามารถของคุณในการสร้างตัวละครเหมือนกันด้วยการใช้ --cref ใน Midjourney และเปิดโลกความเป็นไปได้อย่างไร้ขีดจำกัด

Samithiwat Boonchai | Founder Prompt Snapshot
Samithiwat Boonchai
Founder | Prompt Snapshot

สร้างตัวละครใน Midjourney ด้วยคำสั่ง cref

เกริ่นนำ

สวัสดีครับทุกคน! วันนี้ Prompt Snapshot มีอะไรพิเศษมาแนะนำให้กับทุกท่าน นั่นก็คือการใช้งาน --cref หรือ Character Reference ใน Midjourney ซึ่งเป็นฟีเจอร์ที่ช่วยให้การสร้างตัวละครในภาพของคุณมีเอกลักษณ์และสไตล์ที่ตรงกับต้นแบบมากขึ้น

บทความนี้จะนำเสนอข้อมูลเกี่ยวกับ midjourney cref และวิธีการใช้งาน --cref ในการสร้างตัวละครที่ไม่เหมือนใคร พร้อมด้วยตัวอย่างภาพที่สร้างขึ้นจากการใช้ Character Reference เตรียมตัวให้พร้อมและมาเริ่มสร้างสรรค์ตัวละครในฝันของคุณกับ Midjourney กันเลย!

สำหรับเพื่อนๆ ที่กำลังหาข้อมูลเบื้องต้นเกี่ยวกับ Midjourney, สามารถตามไปอ่านข้อมูลคร่าวๆ ได้ที่บทความใน Medium กันได้เลยงับ!

มาฝึกใช้ AI วาดรูปด้วย Midjourney กันเถอะ
Midjourney คืออะไรและทำอะไรได้บ้าง มาหาคำตอบกัน

Blog Post ที่ Medium

นอกจากนี้สำหรับผู้ที่สนใจในเทคนิค Prompt ของ Midjourney v6 อย่าลืมติดตามเนื้อหาเพิ่มเติมในบล็อกนี้ด้วยนะครับ!

การใช้คำสั่ง Prompt Midjourney ที่มือใหม่ก็ทำได้
ค้นพบวิธีการใช้ Midjourney สำหรับผู้เริ่มต้น กับคู่มือที่ช่วยให้คุณสร้าง Prompt อย่างเชี่ยวชาญ

Blog Post ที่ Prompt Snapshot

Prompt Snapshot มีคอร์สฟรีสำหรับคนที่กำลังเริ่มต้นเรียนรู้วิธีการใช้งาน Midjourney v6 ใน Youtube Prompt Snapshot ถ้าสนใจสามารถเข้ามาเรียนได้ที่นี่ฟรี!

คอร์สสอนใช้ Midjourney v6 ฟรี!
สอนใช้งาน Midjourney v6 ฟรีสำหรับมือใหม่ รวมคำสั่งพื้นฐานที่จำเป็นเริ่มต้นเรียนรู้ Midjourney v6 ได้ง่ายๆ ที่นี่!

Blog Post ที่ Prompt Snapshot

เรียนฟรีที่ Youtube Prompt Snapshot

Prompt Snapshot มี Youtube แล้วนะฝากไปกดติดตามกันด้วยงับ ^ ^


Character Reference Overview

RefereneceMidjourney cref Image

Character Reference คืออะไร

Character Reference คือการที่ Midjourney จะนำลักษณะของตัวละครจากภาพต้นแบบมาสร้างเป็นตัวละครที่อยู่ในภาพจาก prompt ของเรา ซึ่งการทำงานของ character reference จะใช้ได้ดีกับตัวละครที่มีลักษณะที่โดดเด่นและเรายังสามารถแก้ไขลักษณะบางอย่างของตัวละครได้อีกด้วย เช่น ท่าทาง, ลักษณะอารมณ์ที่แสดงออก, เครื่องแต่งกาย รวมไปถึงฉากหลังอีกด้วย


ลักษณะตัวละครที่ใช้งานได้ GOOD กับ Character Reference

Midjourney cref Image

ลักษณะของตัวละครที่ใช้งานได้ดีกับ --cref จะต้องมีลักษณะที่โดดเด่น เช่น ผมสีม่วง, ใส่แว่นกันแดดสีชมพู, สะพายกระเป๋าสีเขียว เป็นต้น


ลักษณะตัวละครที่ใช้งานได้ NOT GOOD กับ Character Reference

Midjourney cref Image

ลักษณะของตัวละครที่ใช้งานไม่ได้กับ --cref จะเป็นลักษณะที่เป็นรายละเอียดเล็กน้อยของตัวละครเช่น สร้อยคอเพชรเจียรนัยเป็นรูปหัวใจ, ทรงผม undercut ที่มีการทำลายเป็นรูปหัวใจ เป็นต้น


การใช้งานคำสั่ง cref

ตัวละครที่ได้จากการใช้ Character Reference จะมีลักษณะใบหน้าที่เหมือนกับตัวละครในรูปต้นแบบ

คำสั่งพื้นฐาน

การใช้งาน Character Reference ทำได้ด้วยการใช้คำสั่ง --cref [url] และ --cw [0 - 100] ต่อท้าย Prompt เช่น

[Prompt] --cref [url] --cw [0 - 100]
  • cref ให้ใส่ url ของตัวละครต้นแบบ
  • cw ให้ใส่น้ำหนักของตัวละครต้นแบบที่ต้องการให้ส่งผลกับ Prompt (ค่า default 100)

🌟 TIPs

  • ใน Discord เราสามารถคลิ๊กขวาที่รูปเพื่อ Copy Link จากรูปที่สร้างจาก Midjourney มาเป็นรูปต้นแบบได้นะ

ใช้ตัวละครต้นแบบหลายรูป

เราสามารถใช้ตัวละครต้นแบบมากกว่า 1 รูปได้ด้วยการนำ url มาต่อท้ายเพิ่มไปเรื่อยๆ การทำแบบนี้จะทำให้ Midjourney นำลักษณะที่เด่นๆ ของตัวละครต้นแบบ มารวมกันเป็นตัวละครเดียว

[Prompt] --cref [url 1] [url 2] ...

Cref Prompt Style

Anchors Prompt

Midjourney cref Image

Anchors Prompt คือการแก้ไขลักษณะบางอย่างของตัวละคร prompt นี้ให้เราใส่รายละเอียดของของตัวละครไปได้เลย

The female singer singing on the stage. The female singer wearing an vibrant orange sunglasses with red dress under the spotlight highlight on her. --cref https://s.mj.run/1Vhu4S4LcnQ --ar 16:9 --v 6.0

Hands-off Prompt

Midjourney cref Image

Hands-off Prompt คือการปล่อยให้ cref จัดการตัวละคร prompt แบบนี้คือการที่เราไม่ใส่รายละเอียดของตัวละครเลย

The female singer singing on the stage. --cref https://s.mj.run/1Vhu4S4LcnQ --ar 16:9 --v 6.0

Scene only Prompt

Midjourney cref Image

Scene only Prompt คือการใส่รายละเอียดฉากหลังเพียงอย่างเดียว prompt นี้จะทำให้ cref นำตัวละครมาใส่ในฉากของเรา

In the background is the stage at a rock star concert --ar 16:9 --cref https://s.mj.run/1Vhu4S4LcnQ --v 6.0

NOTE: ผลลัพธ์ที่ได้จาก prompt นี้อาจจะทำให้ภาพออกมาไม่เนียน เราสามารถแก้ไขได้ด้วยการปรับค่า stylize (--s) สูงๆ เช่น --s 800


Character Reference Weight

--cw 100--cw 0

เราสามารถควบคุมลักษณะของตัวละครด้วยคำสั่ง cref weight (--cw) ซึ่งมีค่าตั้งแต่ 0 - 100 (100 คือค่า default)

ค่า CW ส่งผลยังไงบ้าง

  • --cw 100 (default) จะทำให้ Midjourney นำลักษณะทั้งหมดจากตัวละครต้นแบบมาใช้
  • --cw 99 ถึง --cw 1 จะทำให้ Midjourney หยิบลักษณะตัวละครมาใช้น้อยลงโดยจะโฟกัสที่ใบหน้าเป็นหลัก
  • --cw 0 จะทำให้ Midjourney ใช้แค่ลักษณะของใบหน้าตัวละครเท่านั้น

NOTE:

  • การแก้ไขค่า --cw จะไม่มีทำให้การสร้างตัวละครใหม่เป็นแบบลักษณะครึ่งๆ กลางๆ แต่จะใช้ลักษณะของตัวต้นแบบแน่นอน (ไม่ส่งผลกับ influence ของตัวละครใหม่)
  • เราไม่สามารถปิดการนำลักษณะใบหน้าของตัวละครมาใช้กับตัวละครใหม่ได้

ตัวอย่างรูปจาก Character Reference (cref)

Reference Image
Midjourney cref --cw 100Midjourney cref --cw 0
A regal queen stands before a grand throne room, her elegant posture and gaze commanding attention. The oil painting captures her in a luxurious gown, intricate with gold embroidery, reflecting her power and grace. Behind her, the throne room is depicted with opulent details, from the towering columns to the rich tapestries adorning the walls. The light filters in from high windows, casting a divine glow on her figure, emphasizing her status and the solemnity of her reign. Captured in the style of portrait oil painting, majestic, detailed, powerful, graceful --cref https://s.mj.run/1Vhu4S4LcnQ --v 6.0

Midjourney cref --cw 100Midjourney cref --cw 0
On a narrow street in Venice, a woman tourist pauses to admire the view, her reflection caught in the still water of a canal. She's surrounded by historic buildings, their facades glowing in the soft afternoon light. The candid shot captures her moment of quiet contemplation, a personal discovery amidst the beauty of the city. The scene is rich with the textures and colors of the Venetian architecture, providing a backdrop that is both intimate and expansive. Capture in the style of reflective, serene, colorful, historic --cref https://s.mj.run/1Vhu4S4LcnQ --v 6.0

Midjourney cref --cw 100Midjourney cref --cw 0
Standing in the middle of a bustling cyberpunk market, a character sports an outfit that is a fusion of traditional cultural attire and futuristic elements, such as glowing tattoos and smart accessories. Around them, vendors sell high-tech gadgets and exotic goods. The market is a cacophony of colors, sounds, and smells, with neon signs in multiple languages lighting up the scene. Captured in the style of cultural fusion, vivid, dynamic, immersive --cref https://s.mj.run/1Vhu4S4LcnQ --v 6.0

Midjourney cref --cw 100Midjourney cref --cw 0
A young woman in a retro 1950s outfit leans against a vintage mint green car, holding a classic milkshake. The setting sun casts a soft, golden hue over the scene. In the background is an old-fashioned diner with neon signs, chrome finishes, and other patrons dressed in period attire, evoking a sense of nostalgia and Americana. Captured in the style of retro, vibrant, nostalgic, cinematic --cref https://s.mj.run/1Vhu4S4LcnQ 

Midjourney cref --cw 100Midjourney cref --cw 0
The ballet dancer is dancing on the stage under the spotlight spotted highlight over the head. In the background is the empty concert hall. Captured in the style of cinematic, close-up photography --cref https://s.mj.run/1Vhu4S4LcnQ --v 6.0

Midjourney cref --cw 100Midjourney cref --cw 0
Beautiful european girl, gorgeous, short white hair, Cute Girl version of Marvel's Iron Man style costume, skirts, full body picture. --cref https://s.mj.run/1Vhu4S4LcnQ --v 6.0

Midjourney cref --cw 100Midjourney cref --cw 0
A Baroque sculpture of a woman, her features partially obscured yet expressing deep emotion. The image is captured in cinematic black and white, with a single source of light casting dramatic shadows that highlight the intricate details of the face. The background is a soft, dark blur, creating a focused, emotional portrait --cref https://s.mj.run/1Vhu4S4LcnQ --v 6.0

Midjourney cref --cw 100Midjourney cref --cw 0
an expressive figurative hyperrealistic artwork depicting a face transforming into smoke --cref https://s.mj.run/1Vhu4S4LcnQ --v 6.0

TIPs

ตัวละครแบบไหนเหมาะกับการใช้กับ --cref มากที่สุด

ตัวละครที่ใช้งานกับ cref ได้ดีคือตัวละครที่มีลักษณะที่โดดเด่นซึ่งจะทำให้ Midjourney สามารถระบุลักษณะที่ต้องการนำไปสร้างตัวละครใหม่ได้ง่าย

แนะนำว่าลักษณะที่โดดเด่นในรูปตัวละครต้นแบบครจะอยู่ในตรงกลางที่เห็นได้อย่างชัดเจนจะทำให้ตัวละครใหม่ออกมาคล้ายกันมากขึ้น

และแนะนำว่าควรสร้าง library สำหรับตัวละครต้นแบบหลายๆ รูปเพื่อใช้กับรูปที่มีลักษณะท่าทางที่แตกต่างกันได้

With BackgroundWith Plain Background

กรณีไหนที่ต้องใช้ cref หลายๆ รูป

การใช้ตัวละครต้นแบบหลายๆ ตัวจะใช้ในกรณีที่ prompt ของเรามีท่าทางหรือลักษณะของตัวละครที่นอกเหนือจากรูปต้นแบบ เช่น มุมหันข้าง หรือ มุมมองข้างหลังของตัวละคร

การใช้ cref หลายๆ รูปจะทำให้ Midjourney สามารถสร้างรูปในมุมมองอื่นๆ ได้มากขึ้น

The young adult eating dinner at luxury restaurant, looking over her shoulder. --cref https://my.image.host/eating.jpg https://my.image.host/looking-over-shoulder.jpg

ตัวละครต้นแบบจะต้องอยู่ใน background เรียบๆ ไหม

ตัวละครต้นแบบของ cref ไม่จำเป็นที่จะต้องมีพื้นหลังเป็นสีขาวหรือเรียบๆ เพียงแค่ไม่กลมกลืนไปกับ background ให้ Midjourney สามารถระบุลักษณะที่โดดเด่นได้ก็เพียงพอแล้ว


ตัวละครในรูปต้นแบบจะต้องมีตัวเดียวไหม

ในรูปต้นแบบควรจะมีตัวละครเพียงแค่ตัวเดียวเพื่อให้ง่ายต่อการระบุลักษณะของตัวละคร

ถ้าหากว่าในรูปต้นแบบมีตัวละครมากกว่า 1 ตัว Midjourney จะทำการรวมลักษณะของตัวละครเข้าด้วยกันและสร้างเป็นตัวละครใหม่แค่เพียงตัวเดียวเพื่อใช้เป็นต้นแบบของรูปใหม่

ReferenceResult

ตัวละครต้นแบบสามารถเป็น Style ไหนก็ได้

คำสั่ง --cref จะไม่นำ Style ของรูปต้นแบบมาใช้กับภาพใหม่ Midjourney จะทำแค่ใช้ลักษณะของตัวละครต้นแบบมาสร้างรูปใหม่เท่านั้น

แนะนำว่าให้เราควบคุม style ของภาพด้วย Anchors Prompt ตามที่เขียนไว้ก่อนหน้านี้

ถ้าต้องการ style จากรูปต้นแบบด้วยให้ใช้คำสั่ง --sref มาช่วย

WatercolorPhotography
Street Art3D Low Poly
Colored PencilChalk
CaricatureLego

Archetype ของตัวละครใน prompt ส่งผลต่อ cref

การใช้คำสั่ง cref จะเป็นการนำลักษณะเด่นของตัวละครต้นแบบไปสร้างตัวละครใหม่แต่ถ้าตัวละครใหม่มีลักษณะที่โดดเด่นเหมือนกันอาจจะทำให้ cref ไม่ส่งผลกับตัวละครใหม่ เช่น Soccer Player ส่วนใหญ่จะเป็นผู้ชายทำให้ตัวละครที่สร้างใหม่จะออกมาเป็นผู้ชาย

วิธีแก้ไขคือให้ใส่คำบอกลักษณะ Archetype ของตัวละครใหม่ที่ชัดเจนไปเลย เช่น Female Soccer Player เพียงเท่านี้เราก็จะได้ตัวละครเป็นผู้หญิงแล้ว

NOTE: เคสนี้จะเกิดขึ้นเมื่อเราตั้งค่า --cw เป็น 0

Soccer PlayerFemale Soccer Player

Conclusion

ตอนนี้คุณได้รับความรู้เกี่ยวกับการใช้ --cref ใน Midjourney ความสามารถในการสร้างตัวละครที่มีลักษณะเหมือนกัน

ในการที่จะได้คำสั่งสร้างรูปสวยๆ เราจะต้องทดลองและพัฒนา Prompt ของเราไปเรื่อยๆ Prompt Snapshot ของเป็นกำลังใจให้ทุกคนที่กำลังฝึก Prompt AI ให้พัฒนาฝีมือกันต่อไป! และขอให้สนุกกับการสร้างสรรค์และแบ่งปันผลงานของคุณ

Prompt Snapshot คือ Platform ที่รวบรวม Prompt สำหรับสายงานต่างๆ เพื่อช่วยให้ Prompt Engineer สามารถนำไปใช้งานต่อได้ ไม่เพียงแต่เราเป็นแหล่งทรัพยากรที่มีคุณค่า แต่ยังเป็น community ที่ Prompt Engineer สามารถแบ่งปัน Prompt ของตัวเองและเรียนรู้จากผู้อื่น

สุดท้ายนี้เราหวังว่าบทความนี้จะเป็นแนวทางและแรงบันดาลใจให้กับทุกท่านที่สนใจในการเป็น Prompt Engineer


Prompt Snapshot — ฝึก Prompt AI เพื่อไปให้ถึงฝัน 🚀

ติดตามพวกเราได้ที่