A newer version of the Gradio SDK is available:
6.2.0
TRIQA Hugging Face Demo - Quick Start Guide
π Create Your Hugging Face Space
Step 1: Create the Space
- Go to https://huggingface.co/spaces
- Click "Create new Space"
- Fill in:
- Space name:
triqa-image-quality-assessment - License: MIT
- SDK: Gradio
- Hardware: CPU (or GPU if available)
- Visibility: Public
- Space name:
Step 2: Upload Files
Upload these files from this folder to your Hugging Face Space:
Core Files (Upload these first):
app.py- Main applicationREADME.md- Space descriptionrequirements.txt- Dependenciespackage.json- Node.js configconvnext_original.py- Model architectureconvnext_finetune.py- Model architecturesample_image/folder - Sample images
Model Files (Download from Box first):
- Go to: https://utexas.box.com/s/8aw6axc2lofouja65uc726lca8b1cduf
- Download the model files
- Create these directories in your Space:
feature_models/Regression_Models/
- Upload the model files to their respective directories
Step 3: Test the Demo
- Wait for the build to complete (2-5 minutes)
- Upload a sample image
- Click "Assess Quality"
- Verify you get a quality score (1-5 scale)
π File Structure in Your Space
your-space/
βββ app.py
βββ README.md
βββ requirements.txt
βββ package.json
βββ convnext_original.py
βββ convnext_finetune.py
βββ sample_image/
β βββ 233045618.jpg
β βββ 25239707.jpg
β βββ 44009500.jpg
β βββ 5129172.jpg
β βββ 85119046.jpg
βββ feature_models/
β βββ convnext_tiny_22k_224.pth
β βββ triqa_quality_aware.pth
βββ Regression_Models/
βββ KonIQ_scaler.save
βββ KonIQ_TRIQA.save
π― Expected Demo Features
- Image Upload: Drag & drop or click to upload
- Quality Assessment: Click button to get score
- Sample Images: Pre-loaded examples
- Paper Links: arXiv and IEEE links
- Citation: BibTeX citation
π§ Troubleshooting
- Build fails: Check requirements.txt
- Models not loading: Verify model files are uploaded
- File not found: Check file paths and names
- Memory issues: Use CPU hardware
π Support
Your demo will be live at: https://huggingface.co/spaces/your-username/triqa-image-quality-assessment