Skip to content

Auto Tagging

Auto tagging ตั้งค่าได้ที่:

text
System Settings -> Other Settings -> Auto Tagging

ระบบจะสร้าง image tags อัตโนมัติ ซึ่งมีประโยชน์กับ search, random image filtering, public gallery filtering และ age-rating access control

Auto Tagging ทำอะไรได้บ้าง

FeatureDescription
Generate content tagsเพิ่ม tags สำหรับคน, ฉาก, objects, art style และ visual content ที่คล้ายกัน
Generate character tagsเหมาะกับ anime images และ illustrations
Add orientation tagsเพิ่ม landscape, portrait หรือ square
Add image ratingSave ผล G/S/Q/E สำหรับ general, sensitive, questionable หรือ explicit content
Auto-tag on uploadImages ที่เพิ่ง upload จะเข้า tagging flow อัตโนมัติ
Batch taggingเพิ่ม tags ให้ old images ในทุก folders หรือ selected folders

สิ่งที่ต้องเตรียมก่อน

เตรียม Hugging Face Space URL ที่เข้าถึงได้อย่างน้อยหนึ่งรายการ

วิธีที่แนะนำคือ duplicate Space wd-tagger ของ SmilingWolf ไปไว้ใน Hugging Face account ของคุณเอง:

text
https://huggingface.co/spaces/SmilingWolf/wd-tagger

ใช้ public Space ชั่วคราวได้ แต่ public Spaces ถูก share โดยผู้ใช้จำนวนมาก อาจมี queue, ช้า หรือ unavailable ได้ Space ที่ duplicate ไว้ใน account ของคุณเองจะเสถียรกว่าสำหรับ auto tagging ระยะยาว

Duplicate Space ของ SmilingWolf

  1. Sign in เข้า Hugging Face
  2. เปิด https://huggingface.co/spaces/SmilingWolf/wd-tagger

SmilingWolf public Space

  1. คลิกเมนูสามจุดที่มุมขวาบน
  2. เลือก Duplicate this Space
  3. ใช้ Space name เดิมหรือกำหนดเอง เช่น wd-tagger
  4. ตั้ง visibility เป็น Public เพื่อให้ ImgBed call ได้ง่าย
  5. เริ่มจาก free hardware ค่าเริ่มต้นก่อน ค่อย upgrade เมื่อ queueing ชัดเจน
  6. Create Space แล้วรอ build เสร็จ

หลัง build เสร็จ เปิด Space page ของคุณ URL มักมีรูปแบบ:

text
https://huggingface.co/spaces/your-name/wd-tagger

Copy browser URL แล้ว paste ใน Space URLs ของ ImgBed

ใส่ Multiple Space URLs

ใส่หนึ่ง Space URL ต่อหนึ่ง line

Examples:

ValueDescription
https://huggingface.co/spaces/SmilingWolf/wd-taggerSmilingWolf public Space เหมาะกับ temporary testing
https://huggingface.co/spaces/lintonxue00/wd-taggerCopied Space page URL
https://huggingface.co/spaces/your-name/wd-taggerSpace ที่คุณ duplicate เอง

ใส่ได้หลาย URLs ImgBed จะใช้หลาย Spaces ร่วมกัน ซึ่งช่วยเพิ่ม speed ได้

ถ้า Space หนึ่ง temporarily unavailable อีก Space ยัง process ต่อได้

Settings

OptionRecommendation
Space URLsใส่ Space URLs ที่เตรียมไว้ อย่างน้อยหนึ่งรายการ
Target folderเว้นว่างเพื่อใช้กับทุก folders เลือก folder เฉพาะเมื่อต้องการ process directory บางชุด
Recognition modelใช้ wd-swinv2-tagger-v3 เป็นค่าเริ่มต้น
General tag thresholdค่า default เหมาะกับ images ส่วนใหญ่ ค่าต่ำให้ tags มากขึ้น ค่าสูงให้ tags น้อยลง
Character tag thresholdค่า default ค่อนข้าง conservative และช่วยลด character tags ที่ผิด
MCut automatic thresholdเริ่มต้นให้ off เปิดเมื่ออยากให้ model ตัดสินจำนวน tags เอง
Auto-tag on uploadเปิดถ้าต้องการให้ newly uploaded images ได้ tags อัตโนมัติ
Start taggingBatch-tag old images แบบ manual
OptionRecommended Value
Recognition modelwd-swinv2-tagger-v3
General tag threshold0.35
Character tag threshold0.85
MCutเริ่มต้น Off
Auto-tag on uploadEnable หากต้องการ

ถ้า tags มากเกินไป ให้เพิ่ม general threshold เล็กน้อย

ถ้า tags น้อยเกินไป ให้ลด general threshold เล็กน้อย

Batch Tagging

  1. กรอก Space URLs
  2. เลือก target folder
  3. คลิก start tagging
  4. รอ progress จนเสร็จ

ถ้า target folder ว่าง ImgBed จะ process ทุก folders

Batch tagging เหมาะกับ old images สำหรับ new images ให้ enable auto-tag on upload เพื่อไม่ต้อง run เองทุกครั้ง

Auto-Tag on Upload

หลัง enable auto-tag on upload Images ที่ upload ใหม่จะ call Space URLs ที่ configure ไว้อัตโนมัติ

เหมาะกับการใช้งานระยะยาว

ถ้า Space กำลัง queue อยู่ upload อาจเสร็จก่อน แล้ว tagging จะทำต่อภายหลัง

Images ใดจะถูก Process

Auto tagging process image files เป็นหลัก

Images ที่มี tags, orientation, rating, width และ height ครบแล้วจะถูก skip เพื่อเลี่ยง Space calls ที่ไม่จำเป็น

ImgBed จะเติมเฉพาะข้อมูลที่ขาดเมื่อทำได้ เช่น ถ้าขาดแค่ orientation ก็จะพยายามเพิ่ม orientation โดยไม่เรียก full content tag flow

FAQ

ทำไมควร Duplicate Space เอง?

Public Spaces ถูก share โดยผู้ใช้จำนวนมาก Space ที่ duplicate เองจะถูกใช้โดย ImgBed site ของคุณเป็นหลัก จึงมักเร็วและ reliable กว่า

Space ขึ้น Starting Up บ่อย

หลังสร้างครั้งแรก หรือหลัง idle นาน Space อาจต้องใช้เวลาสตาร์ท

เปิด Space page ของคุณก่อน เมื่อ recognize image ได้ปกติแล้วค่อยกลับมา ImgBed และ start tagging

Copy Space URL อย่างไร?

เปิด Hugging Face Space page แล้ว copy browser address

Examples:

text
https://huggingface.co/spaces/lintonxue00/wd-tagger
https://huggingface.co/spaces/SmilingWolf/wd-tagger

เพิ่ม Multiple Spaces ได้ไหม?

ได้ ใส่หนึ่ง Space URL ต่อหนึ่ง line

Multiple Spaces process images ร่วมกัน เหมาะเมื่อมี images จำนวนมาก

ทำไม Tags เป็น English?

SmilingWolf models output English tags เป็นพฤติกรรมปกติ

Tags ใช้หลัก ๆ สำหรับ search, filtering, random image API และ public gallery filters

Rating Tags ใช้ทำอะไร?

Rating results ทำงานร่วมกับ access mode ใน Security Settings

เช่น เมื่อ visitor access ถูกจำกัดด้วย age rating public browsing และ random image features จะ filter images ตาม rules เหล่านั้น

Quick Flow

text
Sign in เข้า Hugging Face
-> เปิด SmilingWolf/wd-tagger
-> Duplicate this Space
-> รอ Space build เสร็จ
-> Copy Space URL ของคุณ
-> ใส่ Space URLs ใน ImgBed
-> เลือก model และ thresholds
-> Start tagging หรือ enable auto-tag on upload

Released as user documentation for CloudFlare ImgBed.