--- title: HuBERT Audio Classifier emoji: 🌱 colorFrom: green colorTo: blue sdk: gradio app_file: app.py pinned: false --- # HuBERT Audio Classifier จำแนกเสียงออกเป็น 3 คลาส: **Plant_Sounds**, **Normal**, **Noise** ใช้โมเดล [HuBERT](https://huggingface.co/facebook/hubert-base-ls960) ที่ fine-tune แล้ว (เวอร์ชันปกติ fp32) ## วิธีใช้ อัพโหลดไฟล์ `.wav` (แนะนำความยาวประมาณ 1 วินาที ให้ตรงกับตอนเทรน) ระบบจะ: 1. ทำนายว่าเป็นคลาสไหน พร้อมเปอร์เซ็นต์ความมั่นใจของแต่ละคลาส 2. แสดง Waveform และ Mel Spectrogram ของไฟล์เสียง ## ไฟล์ที่มีในโฟลเดอร์นี้ - `app.py` — Gradio app - `requirements.txt` — dependencies - `hubert_plant_normal_noise_classifier.pt` — checkpoint โมเดล (export จาก .ipynb ที่ผ่านการฝึกสอนอบรมเเล้ว") - `examples/` — ไฟล์ `.wav` ตัวอย่างให้กดทดสอบง่าย ๆ (ไม่บังคับ) --- ดูรายละเอียดเพิ่มเติมลิ้งนี้ https://github.com/AprilNon/IoT-Based-Plant-Stress-Detection-and-Analysis-via-Acoustic-Signals