การเตรียมภาพภาพแฟชั่นสำหรับการเทรนโมเดล AI Flux LoRA
เวิร์กโฟลว์ของผมในการเตรียมภาพภาพแฟชั่นสมัยรัชกาลที่ ๗ ตอนปลาย (1930s) สำหรับการเทรนโมเดล AI Flux LoRA
ผมอยากแบ่งปันเวิร์กโฟลว์ที่ผมใช้ในตอนนี้ในการเสริมคุณภาพของภาพสำหรับการเตรียมฐานข้อมูลด้วย AI โดยขณะนี้ผมกำลังฝึกโมเดลที่เน้นแฟชั่นในยุค 1930s ซึ่งเริ่มต้นจากการใช้ภาพขาวดำจากการค้นคว้าในยุคนั้นเป็นพื้นฐาน ผมใช้ Flux Kontext ในการทำงาน แต่แทนที่จะใช้ใน ComfyUI ผมเลือกใช้ Freepik Edit เพราะเข้าถึงง่ายและสามารถทำได้ครบจบในที่เดียว ไม่ว่าจะเป็นการ Upscale หรือ Retouch ภาพ แอปนี้ใช้งานดีมากครับ — จบที่เดียวในแอ็ปเลย ไม่ต้องวุ่นวายใช้หลายแอ็ปทำคนละอย่าง
เป้าหมายของเวิร์กโฟลว์นี้คือการสร้างภาพผู้หญิงไทย/เอเชียที่สวมใส่เสื้อผ้าแฟชั่นในยุค 1930s ผมเริ่มต้นจากการใช้ฟังก์ชัน Edit ใน Freepik Edit เพื่อลงสีให้กับภาพต้นฉบับขาวดำ โดยใช้คำสั่งที่ระบุสีที่ต้องการให้ชัดเจน จากนั้นผมใส่คำสั่งเพิ่มเติมเพื่อเปลี่ยนใบหน้าของนางแบบจากสาวผมบลอนด์ให้กลายเป็นสาวเอเชียผมดำ ผลลัพธ์ออกมาดีมากครับ — ตอนนี้ภาพกลายเป็นหญิงสาวชาวเอเชียแล้ว แต่เนื่องจากภาพต้นฉบับมักจะไม่ค่อยคมชัด ผมจึงทำการ Upscale ต่อ
ในการอัปสเกล Freepik ใช้ engine ตัวเดียวกับ Magnific แต่ข้อดีมากๆคือสามารถ upscale เป็นชุดได้ มากสุด 20 ภาพต่อหนึ่งชุด ผมตั้งค่าการแสดงผลเป็น soft portrait เลือกใช้ illusio engine และตั้งค่าพารามิเตอร์ทั้งหมดไว้ที่ 2 ซึ่งได้ภาพที่คมชัดสวยงาม แต่ใบหน้าของนางแบบในภาพที่เสร็จแล้วมักจะถูกแทนที่ด้วยใบหน้าจากโมเดลพื้นฐานของระบบ ซึ่งผมไม่ค่อยชอบนัก ดังนั้นขั้นตอนต่อไปคือการใช้ PicSi AI เพื่อ สลับใบหน้า ของนางแบบให้ตรงกับโมเดลที่ผมต้องการใช้ในชุดฐานข้อมูล
ขั้นตอนของภาพ:
ภาพที่ 1 – ภาพขาวดำต้นฉบับจากการค้นคว้า
ภาพที่ 2 – ระบายสีด้วย Freepik Edit พร้อมเปลี่ยนใบหน้าให้เป็นสาวเอเชียผมดำ
ภาพที่ 3 – อัปสเกลด้วย Freepik Edit ตอนนี้ภาพคมชัดขึ้น และเสื้อผ้าก็ดูเหมือนของจริง
ภาพที่ 4 – ภาพสุดท้ายหลังจากสลับใบหน้าด้วย PicSI AI ตอนนี้ภาพพร้อมใช้งานสำหรับชุดข้อมูลแล้ว
เรียบร้อยไปแล้ว 1 ภาพ... เหลืออีก 49 ภาพ ให้ทำ 😅
หลังจากทำตามขั้นตอนเหล่านี้ ผมก็จะได้ภาพที่พร้อมสำหรับการใช้ฝึกโมเดล ผมกำลังเตรียมภาพแบบนี้จำนวนประมาณ 50 ภาพ เพื่อให้พร้อมสำหรับการฝึกใน Flux LoRA กระบวนการนี้ใช้เวลาและต้องใช้ความอดทน แต่ผลลัพธ์ที่ได้มีความแม่นยำสูง และเราสามารถ ดูแลควบคุมสไตล์แฟชั่นของเราได้อย่างชัดเจน
My Workflow for Preparing Fashion Images from the Reign of King Rama VII for Training an AI Model with Flux LoRA
I’d like to share the workflow I currently use to enhance fashion images for building an AI dataset. At the moment, I’m training a model that focuses on fashion from the 1930s, starting with black-and-white images sourced from historical research. I use Flux Kontext to manage the process, but instead of working within ComfyUI, I use Freepik Edit, which is much more accessible and lets me handle everything — from upscaling to retouching — all in one place. จบที่เดียวในแอ๊ปเลย ไม่ต้องวุ่นวายใช้หลายแอ็ปทำคนละอย่าง
The goal is to produce images of Thai/Asian women dressed in 1930s-style fashion. I begin by using the Edit function in Freepik Edit to colourise the original black-and-white images, giving clear instructions for the colour scheme. Then I prompt a change to the model’s face — replacing a blonde Western face with an Asian woman with black hair. The results are fantastic — now the subject looks like a Thai or East Asian woman. However, the image quality is still limited, so I continue to upscale it.
Freepik uses the same engine as Magnific, with a great advantage — you can upscale in batches of up to 20 images. I choose the soft portrait style, select the Illusio engine, and set all parameters to 2. The result is a sharper, cleaner image. The clothing now looks realistic — like actual fabric and stitching — but the face enhancement still tends to reflect the default AI model's features, which I find unsatisfactory. So the final step is using PicSI AI to swap the face back to the model I want to use for my dataset.
Image Workflow:
First picture – original black-and-white research image
Second picture – colourised in Freepik Edit, with the face changed to an Asian woman with black hair
Third picture – upscaled in Freepik Edit; now the dress looks like real clothing and the image quality is much better
Fourth picture – final result after face-swapping with PicSI AI; the image is now ready for use in my dataset
That’s 1 image done — just 49 more to go... 😅
Once all these steps are completed, I have a high-quality image ready for training. I’m currently preparing around 50 images in this way, all intended for training on Flux LoRA. The process takes time and patience, but the results are accurate — and it allows me to curate and maintain control over the fashion style I’m teaching the AI.
#aifashionlab #AI #aiartist #aiart #aifashion #aifashiondesign #aifashionstyling #aifashiondesigner #fashion #fashionhistory #historyoffashion #fashionstyling #fashionphotography #digitalfashion #digitalfashiondesign #digitalcostumedesign #digitaldesign #digitalaiart #ThaiFashionHistory #ThaiFashionAI



