ปลดล็อกศักยภาพของ Midjourney Style Reference ด้วยคำสั่ง sref

เรียนรู้เทคนิคการใช้ Style Reference หรือคำสั่ง sref ใน Midjourney สำหรับการเพิ่มสไตล์และความสวยงามให้กับรูปภาพ AI ด้วย Prompt ของคุณ

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

ปลดล็อกศักยภาพของ Midjourney Style Reference ด้วยคำสั่ง sref

เกริ่นนำ

สวัสดีครับทุกคน! วันนี้ Prompt Snapshot มานำเสนอ feature สุดเจ๋งของ Midjourney ที่จะทำให้รูปของคุณมีสไตล์เหมือนกับภาพต้นแบบด้วย Style Reference หรือคำสั่ง sref นั่นเอง ในบทความนี้เราจะพาไปรู้จักกับ Midjourney Style Reference หรือคำสั่ง sref คืออะไร, Style Reference ใช้งานอย่างไร, และตัวอย่างภาพที่ได้จากการใช้ Style Reference หรือ คำสั่ง sref พร้อมแล้วหรือยัง? มาเริ่มกันเลย

สำหรับเพื่อนๆ ที่กำลังหาข้อมูลเบื้องต้นเกี่ยวกับ 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 แล้วนะฝากไปกดติดตามกันด้วยงับ ^ ^


Style Reference คืออะไร

RefereneceMidjourney sref Image

Style Reference หรือคำสั่ง sref คือการนำเอาลักษณะเฉพาะจากรูปแบบต้นฉบับมาใช้กับคำสั่ง Prompt ของเรา โดยที่ Midjourney จะปรับให้ Aesthetic หรือ Style ของรูปภาพต้นแบบมาอยู่ในรูปที่สร้างจาก Prompt ใหม่โดยไม่ต้องกำหนดรายละเอียดขอ Style ในคำสั่งนั้นๆ


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

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

การใช้งาน Style Reference ทำได้ด้วยการใช้คำสั่ง --sref [url] และ --sw [20 - 1000] ต่อท้าย Prompt เช่น

[Prompt] --sref [url] --sw [0 - 1000]
  • sref ให้ใส่ url ของภาพต้นแบบ
  • sw ให้ใส่น้ำหนักที่ style ของภาพต้นแบบส่งผลกับ Prompt (ค่า default 100)

🌟 TIPs

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

ใช้รูปต้นแบบหลายรูป

เราสามารถใช้รูปต้นแบบมากกว่า 1 รูปได้ด้วยการนำ url มาต่อท้ายเพิ่มไปเรื่อยๆ

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

ใช้รูปต้นแบบหลายรูปโดยใส่น้ำหนัก

นอกจากนี้เรายังสามารถกำหนดน้ำหนักของรูปต้นแบบที่จะส่งผลกับ Prompt ได้อีกด้วย

Template

[Prompt] --sref [url 1]::weight [url 2]::weight ...

ตัวอย่าง

[Prompt] --sref [url 1]::2 [url 2] ...

รูปที่ได้จะมี style จาก url 1 มากกว่า url 2


การเลือกใช้ Version Style Refernce

เราสามารถเลือกใช้ algorithm ของ style reference ได้ด้วยคำสั่ง --sv (ในตอนนี้มีให้เลือก sv 1 ถึง sv 4) โดยที่ --sv 4 คือค่า default ถ้าเราไม่ใส่ version เข้าไป

Template

[Prompt] --sref [url] --sv [version]

ตัวอย่าง

[Prompt] --sref [url] --sv 2

reference
--sv 1--sv 2
--sv 3--sv 4

reference
--sv 1 --sw 50--sv 2 --sw 50
--sv 3 --sw 50--sv 4 --sw 50

reference
--sv 1 --sw 20--sv 2 --sw 20
--sv 3 --sw 20--sv 4 --sw 20

reference
--sv 1--sv 2
--sv 3--sv 4

NOTE:

  • ในตอนนี้ Style Reference สามารถใช้รูปจากไฟล์ JPG, PNG, GIF และ WEBP
  • Prompt ที่ทำงานได้ผลดีกับ Style Reference ที่สุดคือ Prompt ที่ไม่มีรายละเอียดเกี่ยวกับ Style หรือ Aesthetic
  • ⚠️ รูปที่ใช้เป็น reference จะถูก public อยู่ใน website ของ Midjourney เพราะฉะนั้นระวังไว้ด้วยนะ

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

reference
Midjourney no sref 1Midjourney sref Image 1
A vibrant lemon tart, topped with beautifully arranged lemon slices and meringue peaks. In the background is a breezy, spring-themed setting with blooming flowers and pastel-colored decorations. Captured in the style of stock photography, bright, clean, fresh, seasonal --ar 1:1 --style raw --sref https://cdn.midjourney.com/u/cef59e2e-3cc1-4424-84ec-1694253f8e54/dbaeeff41b892cf269f9255b2b0415cd4b40efcfaee9769554f83755397e3b6f.png --sw 20

reference
Midjourney no sref 2Midjourney sref Image 2
The full length of banner design showing the title "Summer Sale" at the top of banner. The label showing a large text "20% Discount" in the center of banner. The banner is design for special discount event. The banner is decoration with summer elements. There is a call to action elements at the bottom of banner showing label "Order Now". Stylish in the style of advertisement banner design, gradient background --style raw --sref https://s.mj.run/H46E4U4FGK8 --sv 4 --sw 20

reference
Midjourney no sref 3Midjourney sref Image 3
Set of 3 Package Design of tote bag brand "Snapshot". The package display the face of happy cute robot below it is the brand name "Snapshot" in the style of eco friendly flat vector. Captured in the style of product mockup photography --style raw --sref https://s.mj.run/B8t1iZMXoP8 --sv 4 --sw 20

reference
Midjourney no sref 4Midjourney sref Image 4
the beautiful asian woman at Urban Streets. She is wearing a space-age fashion. She is posing a hands-in-pockets pose, hands-in-pockets pose, hands-in-pockets pose, hands-in-pockets pose, hands-in-pockets pose. There is a flower pot on her's right side. In the background is the empty Urban Streets at golden hour. Captured in the style of iphone photography --seed 359955002 --style raw --sref https://s.mj.run/q9Se8ErbGHI --sv 4 --sw 20

reference
Midjourney no sref 5Midjourney sref Image 5
the heart shape isolated on the white background. Stylish in the style of doodle drawing --seed 57401553 --style raw --sref https://cdn.midjourney.com/a48693aa-d1dd-4195-9935-c9b93c7705de/0_0.png --sv 3

reference
Midjourney no sref 6Midjourney sref Image 6
The heart shape origami made from orange paper showing on the wooden table in living room. Captured in the style of stock photography, extreme close up shot ::1 Captured in the style of stock photography, extreme close up shot ::0.5 --seed 2883907567 --style raw --sref https://cdn.midjourney.com/fc8d85be-f99c-4603-bc74-78e9781ad708/0_1.png --sv 1 --sw 50

การ Clean Up สิ่งที่ไม่ต้องการจาก Style Refernce

บางครั้ง Midjourney จะนำ content บางส่วนจากรูปต้นแบบมาใส่ให้ใน Prompt ของเรา ถ้าคุณไม่ต้องการ content เหล่านี้สามารถทำได้ตาม 3 วิธีนี้

  1. เขียน Prompt ที่มีการแทนที่รายละเอียดที่ถูกหยิบมาจาก Prompt ต้นแบบ
  2. ใช้ weight จาก style reference ที่มีค่าน้อยๆ (ค่า default อยู่ที่ 100) เช่น --sw 20
  3. ใช้ weight ที่มีค่าน้อยๆ กับสิ่งที่เราไม่ต้องการ เช่น day::-0.5
Before Clean UpAfter Clean Up
A young traveler standing still at the edge of Lake Tekapo in New Zealand, gazing at the luminous, star-filled night sky::. The Milky Way is reflected in the tranquil waters, creating a stunning visual symmetry. The lone figure, illuminated by the soft glow of the surrounding landscape, is caught in a moment of contemplation and wonder. day::-0.5 --sref https://s.mj.run/qyW4NikbVCs --sw 20 --v 6.0

Conclusion

ตอนนี้คุณได้เรียนรู้เกี่ยวกับ Midjourney Style Reference หรือคำสั่ง --sref กันแล้วแน่นอนว่ายังมีอีกหลายอย่างนอกเหนือจากตัวอย่างในบทความนี้ที่ sref สามารถทำได้

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

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

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


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

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