คู่มือ AI แบบเห็นภาพ

การสร้างภาพ AI: วิธีการทำงานของโมเดลข้อความเป็นภาพ

การสร้างภาพ AI คือการใช้โครงข่ายประสาทเทียมที่ได้รับการฝึกอบรมเพื่อสร้างภาพใหม่จากคำอธิบายข้อความ ภาพร่าง รูปภาพอื่น หรือหน้ากากที่ทำเครื่องหมายว่าจะต้องเปลี่ยนแปลงอะไร

ฟังคำแนะนำนี้บรรยายโดย AI · ~9 min

บนหน้านี้อ่าน 10 นาที
  1. ภาพรวม
  2. ประเด็นสำคัญ
  3. เจาะลึก
  4. เรียกใช้และประเมินการทดสอบข้อความเป็นรูปภาพที่มีการควบคุม
  5. การใช้งานจริงในโลกแห่งความเป็นจริง
  6. อนาคตของการสร้างภาพ AI: วิธีการทำงานของโมเดลข้อความเป็นรูปภาพ
  7. การนำไปปฏิบัติ
  8. ที่มาและอ่านเพิ่มเติม
  9. สำรวจต่อไป
  10. คำถามที่พบบ่อย

ภาพรวม

เครื่องมือปัจจุบันส่วนใหญ่ใช้โมเดลการแพร่กระจาย ซึ่งเริ่มต้นจากสัญญาณรบกวนแบบสุ่มและทำความสะอาดทีละขั้นตอนจนกระทั่งภาพที่ตรงกับข้อความแจ้งปรากฏขึ้น สิ่งสำคัญคือเนื่องจากปัจจุบันเครื่องมือเหล่านี้มีราคาถูกและมีจำหน่ายกันอย่างแพร่หลาย ซึ่งทำให้มีประโยชน์สำหรับการออกแบบและภาพประกอบ และเป็นแหล่งที่มาของของปลอมที่น่าเชื่อเพิ่มมากขึ้น

ประเด็นสำคัญ

  1. เครื่องสร้างภาพ AI ส่วนใหญ่ใช้การแพร่กระจาย โดยเริ่มจากสัญญาณรบกวนแบบสุ่มและลบออกทีละขั้นตอนภายใต้คำแนะนำของข้อความแจ้ง
  2. การแพร่กระจายแฝง ซึ่งเป็นวิธีการเบื้องหลัง Stable Diffusion ดำเนินการลดสัญญาณรบกวนในพื้นที่บีบอัด ซึ่งทำให้การสร้างเป็นไปได้บนกราฟิกการ์ดสำหรับผู้บริโภค
  3. คลิปของ OpenAI เรียนรู้การเชื่อมโยงรูปภาพและคำจากคู่รูปภาพและคำบรรยายกว่า 400 ล้านคู่ และกลายเป็นสะพานเชื่อมทั่วไปสำหรับระบบข้อความเป็นรูปภาพ
  4. Stable Diffusion เปิดตัวสู่สาธารณะในวันที่ 22 สิงหาคม 2022 ต้องการหน่วยความจำกราฟิกเพียงประมาณ 6.9 GB ซึ่งเปิดการสร้างภาพให้กับผู้ใช้ตามบ้าน
  5. สำนักงานลิขสิทธิ์ของสหรัฐอเมริกาได้สรุปในเดือนมกราคม พ.ศ. 2568 ว่าการแจ้งเพียงอย่างเดียวไม่ได้ให้การควบคุมที่เพียงพอสำหรับรูปภาพที่สร้างโดย AI ให้มีลิขสิทธิ์
  6. รูปภาพที่สร้างขึ้นไม่ใช่หลักฐานว่ามีเหตุการณ์เกิดขึ้น ดังนั้นป้ายกำกับแหล่งที่มา เช่น ข้อมูลรับรองเนื้อหา C2PA และการเปิดเผยข้อมูลที่ชัดเจนจึงมีความสำคัญ

เจาะลึก

An AI image generator is a program that has studied a very large collection of images, usually paired with captions, and learned the visual patterns that connect words to pictures. When given a prompt such as a red fox in snow, watercolor style, it does not search for an existing picture or paste together pieces of stored photos. It produces new pixels that are statistically consistent with what it learned about foxes, snow and watercolor. The output can be a finished image, a variation of an uploaded image, or an edit of one region of a photo.

The most widely used mechanism today is diffusion. During training, the system takes real images and adds random noise to them in many small steps until they become pure static. A neural network learns to reverse one step at a time by predicting the noise that was added. To generate, the process runs backward: start with random static, ask the network to remove a little noise, repeat dozens of times, and an image gradually emerges. A text prompt steers each step so that the emerging image matches the description. Because each run starts from different random noise, called the seed, the same prompt gives different images every time unless the seed is fixed.

Two supporting pieces make text-to-image work. The first is a text encoder that turns the prompt into numbers the image model can use. OpenAI's CLIP, posted in February 2021, learned to match images with captions from 400 million image and text pairs collected from the internet, and models like it became the bridge between language and pictures. Google's Imagen paper in May 2022 found that using a larger text-only language model as the encoder improved image quality and prompt matching more than enlarging the image model itself. The second piece is efficiency. Running diffusion on full-size pixels is slow, so the 2021 latent diffusion paper by Rombach and colleagues, which became the basis of Stable Diffusion, first compresses images with an autoencoder, a network that squeezes an image into a much smaller grid of numbers and can expand it back. Diffusion then runs in that compressed latent space, and the result is decoded into pixels at the end. The paper also added cross-attention layers so the model can be conditioned on text, layouts or other inputs.

Most tools offer several modes built on the same model. Text-to-image creates a picture from a prompt alone. Image-to-image starts from an uploaded picture partly covered in noise, so the result keeps its rough composition while changing style or detail. Inpainting regenerates only a masked region, such as replacing a sky or removing an object, and outpainting extends an image beyond its original borders; the latent diffusion paper reported state-of-the-art inpainting results. Some systems also accept layouts, sketches or bounding boxes that fix where objects should appear, which the same paper's cross-attention design was built to support. Three settings matter in almost every tool. The seed fixes the starting noise so a result can be reproduced. The number of steps trades speed for refinement. The guidance strength controls how literally the model follows the prompt, with high values giving closer adherence but less variety and sometimes harsh, oversaturated images. Upscaling then enlarges the final picture, but it invents plausible detail rather than recovering real detail that was never there.

The field moved quickly. Generative adversarial networks (GANs), introduced by Ian Goodfellow and colleagues in June 2014, pitted a generator network against a discriminator network that tries to spot the fakes. In February 2021 OpenAI described DALL-E, which treated text and image tokens as one long sequence for a transformer to predict, and CLIP appeared the same month. Latent diffusion followed in December 2021. In 2022 came DALL-E 2 in April, Imagen in May and the public release of Stable Diffusion on August 22, which put a capable model on ordinary graphics cards; Stability AI's announcement put its memory use at 6.9 GB. Since then, commercial tools and open models have improved resolution, prompt following and the ability to render text inside images.

It helps to compare the main approaches. GANs generate an image in a single pass, so they are fast, but they are hard to train and tend to cover a narrower range of images. Autoregressive models, such as the first DALL-E, build an image piece by piece like writing a sentence, which is flexible but slow for large images. Diffusion models are slower at generation because they need many denoising steps, but they train stably and produce varied, detailed results, which is why they dominate current tools. Compared with stock photography or human illustration, a generator is fast and cheap per image, but it cannot guarantee that a picture shows anything that really happened, and its legal status is less settled.

The limitations are concrete. Models often struggle with exact counts, precise spatial relationships, readable text and consistent details such as hands or the same character across several images. They reproduce patterns in their training data, which can include stereotypes about who appears in which roles. Because training sets were largely scraped from the web, there are open legal disputes about whether training on copyrighted images without permission is lawful; the US Copyright Office released a pre-publication report on generative AI training in May 2025. Separately, the Office's January 2025 report on copyrightability concluded that prompts alone do not provide enough human control for the output to be protected, although human-authored elements, creative selection and arrangement, and modifications can be. Realistic fakes of real people and events are the most serious misuse, which is why provenance standards such as C2PA Content Credentials record how an image was made.

In practice, there are two ways to use image generation. Hosted services run the model in the cloud and usually charge a subscription or per-image credits, with the provider's content rules and terms of use deciding what is allowed and who may use the outputs commercially. Open models such as Stable Diffusion can be run locally; the original 2022 release needed a graphics card with about 6.9 GB of memory, and its license allowed commercial and non-commercial use subject to use restrictions. Training a new model from scratch is far more expensive: the latent diffusion paper notes that pixel-space diffusion models often needed hundreds of GPU days to train, which is the cost its compressed approach was designed to reduce. For most people the real work is iteration: writing clear prompts, generating several candidates, editing the best one, checking it at final size, and labeling it honestly as AI-generated.

04ตัวอย่างการทำงาน

เรียกใช้และประเมินการทดสอบข้อความเป็นรูปภาพที่มีการควบคุม

  1. เขียนข้อความเฉพาะเจาะจงที่ตั้งชื่อหัวข้อ สถานที่ สไตล์ และองค์ประกอบ เช่น ประภาคารบนชายฝั่งหินในเวลาพลบค่ำ ภาพประกอบเวกเตอร์แบบแบน ภาพมุมกว้าง ท้องฟ้าว่างเปล่าทางด้านซ้ายสำหรับหัวข้อข่าว

  2. สร้างภาพสี่ภาพโดยสุ่มเมล็ดที่แตกต่างกัน และสังเกตว่าองค์ประกอบและรายละเอียดแตกต่างกันอย่างไร แม้ว่าข้อความแจ้งจะเหมือนกันก็ตาม

  3. แก้ไขเมล็ดพันธุ์ของผลลัพธ์ที่ดีที่สุดและเปลี่ยนแปลงสิ่งหนึ่งในข้อความแจ้ง เช่น เวลาพลบค่ำถึงเที่ยง เพื่อดูว่าองค์ประกอบใดคงที่และสิ่งใดเปลี่ยนแปลง

  4. หากเครื่องมือแสดงคำแนะนำหรือการตั้งค่าความเข้มของข้อความ ให้ลองใช้ค่าต่ำและสูง แล้วเปรียบเทียบความหลากหลายกับความใกล้เคียงของรูปภาพแต่ละรูปตามข้อความแจ้ง

  5. ตรวจสอบรูปภาพที่เลือกในขนาดเต็มเพื่อดูข้อผิดพลาดทั่วไป: ข้อความบิดเบี้ยว วัตถุส่วนเกินหรือหายไป รูปทรงที่เป็นไปไม่ได้ และแสงที่ไม่สอดคล้องกัน

  6. บันทึกเครื่องมือ เวอร์ชันของโมเดล ข้อความแจ้ง เริ่มต้นและการตั้งค่า และตรวจสอบข้อกำหนดของเครื่องมือและการมีอยู่ของข้อมูลรับรองเนื้อหาใดๆ ก่อนที่จะใช้รูปภาพต่อสาธารณะ

มันแสดงให้เห็นอะไร

ผู้เรียนจะได้ภาพที่ทำซ้ำได้และมีบันทึกเป็นลายลักษณ์อักษรเกี่ยวกับวิธีการสร้างภาพนั้น การตรวจสอบนั้นง่ายดาย: การรันโมเดลเดิมซ้ำด้วยการตั้งค่าเริ่มต้นและการตั้งค่าเดียวกันควรให้ภาพที่เหมือนกันหรือใกล้เคียงกัน และบันทึกการตรวจสอบจะแสดงให้เห็นว่าเหมาะสมกับการใช้งานและขนาดตามที่ต้องการหรือไม่

การใช้งานจริงในโลกแห่งความเป็นจริง

รุ่นเปิดบนคอมพิวเตอร์ที่บ้าน: Stability AI เปิดตัว Stable Diffusion ต่อสาธารณะเมื่อวันที่ 22 สิงหาคม 2022 ภายใต้ใบอนุญาตที่อนุญาตให้ใช้ในเชิงพาณิชย์ โดยมีน้ำหนักที่ใช้หน่วยความจำกราฟิกการ์ดประมาณ 6.9 GB

การแก้ไขแทนที่จะวาดภาพตั้งแต่ต้น: กระดาษแพร่กระจายแฝงปี 2021 ที่อยู่เบื้องหลัง Stable Diffusion รายงานผลลัพธ์ที่ล้ำสมัยสำหรับการลงสี ซึ่งเติมเต็มพื้นที่ที่ปกปิดของภาพถ่าย เช่น การลบวัตถุหรือการขยายพื้นหลัง

การออกแบบและคอนเซ็ปต์อาร์ต: ทีมสร้างฉาก ภาพผลิตภัณฑ์ หรือเลย์เอาต์ที่หลากหลายอย่างรวดเร็วจากข้อความแจ้ง จากนั้นเลือกและปรับปรุงทีละรายการด้วยมือ ทำให้การเลือกของมนุษย์และการแก้ไขอยู่ในลูป

ป้ายแหล่งที่มา: มาตรฐาน C2PA ซึ่งมีคณะกรรมการกำกับดูแล ได้แก่ Adobe, Google, Microsoft, OpenAI และ Sony จะแนบข้อมูลรับรองเนื้อหาที่บันทึกว่าภาพมาจากไหนและแก้ไขอย่างไร

การตัดสินใจด้านลิขสิทธิ์: ในเดือนมกราคม พ.ศ. 2568 สำนักงานลิขสิทธิ์ของสหรัฐอเมริกาได้ข้อสรุปว่าการแจ้งเพียงอย่างเดียวไม่ได้ให้การควบคุมเพียงพอที่จะทำให้ภาพที่สร้างโดย AI มีลิขสิทธิ์ แม้ว่าการคัดเลือก การจัดเรียง และการแก้ไขโดยมนุษย์จะได้รับการคุ้มครองก็ตาม

อนาคตของการสร้างภาพ AI: วิธีการทำงานของโมเดลข้อความเป็นรูปภาพ

Research is moving along several lines, none of them settled. Control is one: users want exact layouts, consistent characters across a series and correct text inside images, and the 2021 latent diffusion paper's cross-attention design already allowed conditioning on layouts and other inputs beyond text. Speed is another, with work on samplers and distilled models that need far fewer denoising steps than early diffusion systems. Provenance and trust are a third. The C2PA coalition, whose steering committee includes Adobe, Google, Meta, Microsoft and OpenAI, is promoting Content Credentials so that the history of an image can travel with it, although labels can be stripped when files are copied or screenshotted. Law and policy are still forming. The US Copyright Office's January 2025 report concluded that prompts alone do not make an output copyrightable, and its May 2025 pre-publication report on generative AI training addresses whether training on copyrighted works is lawful, a question also being tested in courts. Evaluation remains difficult because automated scores such as FID do not capture whether an image followed every part of a prompt, which is why benchmarks like Imagen's DrawBench, introduced in 2022, rely on side-by-side human ratings. Video and 3D generation extend the same diffusion ideas, and their progress will raise the same questions about consent, labeling and authorship.

การนำไปปฏิบัติ

ทำไมมันถึงสำคัญ

  • ความเร็วและขนาด. Visual AI สามารถทำให้การตรวจสอบ การตรวจจับ และการแท็กเป็นอัตโนมัติในขนาดต่างๆ
  • สร้างทางเลือก. ทีมสร้างสรรค์สามารถสร้างต้นแบบแนวคิดได้รวดเร็วขึ้นโดยต้องมีการแก้ไขด้วยตนเองน้อยลง
  • ทีมงานและขั้นตอนการทำงาน. การดำเนินการสามารถใช้สัญญาณภาพและวิดีโอที่ก่อนหน้านี้ประมวลผลได้ยาก

ระวัง

  • สิทธิ์และความยินยอมในรูปภาพอาจกลายเป็นความเสี่ยงทางกฎหมายได้หากแหล่งที่มาไม่ชัดเจน
  • ประสิทธิภาพของโมเดลอาจแตกต่างกันไปตามสภาพแสง ข้อมูลประชากร และสภาพแวดล้อม
  • ผลบวกลวงอาจไม่สังเกตเห็นเว้นแต่จะมีการตรวจสอบเกณฑ์ความเชื่อมั่น

ขั้นตอนต่อไป

  1. กำหนดเกณฑ์การยอมรับสำหรับความแม่นยำ การเรียกคืน และต้นทุนข้อผิดพลาด
  2. ทดสอบด้วยข้อมูลที่ตรงกับเงื่อนไขการผลิตจริง
  3. เพิ่มการตรวจสอบโดยเจ้าหน้าที่สำหรับการคาดการณ์ที่มีความมั่นใจต่ำหรือมีผลกระทบสูง
  4. ติดตามการเคลื่อนตัวของโมเดลและตรวจสอบความถูกต้องอีกครั้งหลังจากการเปลี่ยนแปลงกล้องหรือชุดข้อมูล

ที่มาและอ่านเพิ่มเติม

  1. arXiv (Goodfellow et al., 2014)เครือข่ายปฏิปักษ์ทั่วไป
  2. arXiv (Ramesh et al., OpenAI, 2021)การสร้างข้อความเป็นภาพแบบ Zero-Shot
  3. arXiv (Radford et al., OpenAI, 2021)การเรียนรู้แบบจำลองภาพที่สามารถถ่ายทอดได้จากการกำกับดูแลภาษาธรรมชาติ
  4. arXiv / CVPR 2022 (Rombach et al.)การสังเคราะห์ภาพความละเอียดสูงด้วยแบบจำลองการแพร่กระจายแฝง
  5. arXiv (Saharia et al., Google, 2022)โมเดลการแพร่กระจายข้อความเป็นรูปภาพเสมือนจริงพร้อมความเข้าใจภาษาเชิงลึก
  6. Stability AIStable Diffusion เผยแพร่สู่สาธารณะ
  7. U.S. Copyright Officeลิขสิทธิ์และปัญญาประดิษฐ์
  8. C2PAC2PA: แนวร่วมเพื่อแหล่งที่มาของเนื้อหาและความถูกต้อง

สำรวจต่อไป

จดหมายข่าวฟรี

รับสรุป AI รายวัน

เรื่องราว AI ที่ตรวจสอบแล้ว 3 เรื่องทุกวันทำงาน เช้า, เขียนเป็นภาษาอังกฤษธรรมดา ฟรีตลอดไป ไม่มีโฆษณา

อีเมลหนึ่งฉบับทุกวันทำงาน ยกเลิกการสมัครในคลิกเดียว เราไม่เคยขายหรือแชร์ที่อยู่อีเมลของคุณ

ทดสอบตัวเอง

ทำแบบทดสอบการสร้างรูปภาพด้วย AI: วิธีการทำงานของโมเดลข้อความเป็นรูปภาพ

ข้อเสนอแนะทันทีสำหรับทุกคำตอบ และใบรับรองที่สามารถแชร์ได้พร้อม ID ที่ตรวจสอบได้เมื่อคุณผ่านหลักสูตร

เริ่มแบบทดสอบ

สนับสนุนการศึกษา AI ฟรี AI Understanding เป็นองค์กรไม่แสวงหาผลกำไร 501(c)(3) — ไม่มีโฆษณา ไม่มีกำแพงเงิน, ตลอดไป บริจาค

คำถามที่พบบ่อย

การสร้างรูปภาพ AI คืออะไร: โมเดลข้อความเป็นรูปภาพทำงานอย่างไร

การสร้างภาพ AI คือการใช้โครงข่ายประสาทเทียมที่ได้รับการฝึกอบรมเพื่อสร้างภาพใหม่จากคำอธิบายข้อความ ภาพร่าง รูปภาพอื่น หรือหน้ากากที่ทำเครื่องหมายว่าจะต้องเปลี่ยนแปลงอะไร เครื่องมือปัจจุบันส่วนใหญ่ใช้โมเดลการแพร่กระจาย ซึ่งเริ่มต้นจากสัญญาณรบกวนแบบสุ่มและทำความสะอาดทีละขั้นตอนจนกระทั่งภาพที่ตรงกับข้อความแจ้งปรากฏขึ้น สิ่งสำคัญคือเนื่องจากปัจจุบันเครื่องมือเหล่านี้มีราคาถูกและมีจำหน่ายกันอย่างแพร่หลาย ซึ่งทำให้มีประโยชน์สำหรับการออกแบบและภาพประกอบ และเป็นแหล่งที่มาของของปลอมที่น่าเชื่อเพิ่มมากขึ้น

กระบวนการเรียนรู้ข้อใดที่มีลักษณะเฉพาะของโมเดลภาพการแพร่กระจาย

คู่มือนี้กล่าวว่าแบบจำลองการแพร่กระจายเรียนรู้กระบวนการลดสัญญาณรบกวน คำอธิบายนั้นไม่ได้หมายความถึงผลลัพธ์ที่เป็นบันทึกสารคดี

ผลิตภัณฑ์ผสมผสานการสร้างภาพ การแก้ไข การลดขนาด และการประมวลผลภายหลัง ทีมควรประเมินอะไร?

บันทึกคู่มือผลิตภัณฑ์อาจรวมหลายขั้นตอนเข้าด้วยกัน ดังนั้นขั้นตอนการทำงานที่สมบูรณ์และผลลัพธ์ของสินทรัพย์จึงมีความสำคัญ

รายละเอียดใดสามารถช่วยสื่อสารเป้าหมายที่เป็นภาพได้ในทันที

คู่มือนี้แสดงรายการเหล่านี้เป็นข้อจำกัดด้านภาพที่เป็นประโยชน์ พร้อมทั้งเตือนว่ารายละเอียดบางอย่างยังต้องมีการตรวจสอบโดยตรง

ไดอะแกรมต้องใช้ป้ายกำกับขนาดเล็กและเรขาคณิตที่ซ้ำกัน ผู้สร้างควรทำอย่างไร?

คู่มือระบุว่าข้อความที่แน่นอนและเรขาคณิตที่ซ้ำกันจำเป็นต้องได้รับการตรวจสอบโดยตรง ตัวอย่างการทำงานจะแนะนำข้อความหรือองค์ประกอบเวกเตอร์ที่แก้ไขได้เมื่อจำเป็น

เหตุใดจึงต้องตรวจสอบภาพที่ขนาดการแสดงผลที่ต้องการ

คู่มือนี้แนะนำให้ตรวจสอบขนาดขั้นสุดท้ายเนื่องจากภาพขนาดย่อสามารถปกปิดปัญหาที่มองเห็นได้ในแบนเนอร์หรือเค้าโครงสิ่งพิมพ์

เรียนรู้ต่อไป

คำแนะนำที่เกี่ยวข้อง

คำแนะนำเพิ่มเติมที่เลือกสำหรับหัวข้อนี้

รับใบรับรอง AI ฟรีหลักสูตรและการสอบสั้น ๆ ฟรี ไม่มีค่าใช้จ่าย ไม่มีบัตรเครดิต ประมาณ 2.5 ชั่วโมงเริ่มต้นฟรี →