A newer version of the Gradio SDK is available:
6.3.0
Upload Instructions for Hugging Face Space
Files to Upload
Upload these files to your Hugging Face Space (in this order):
1. Core Application Files
app.py- Main Gradio applicationREADME.md- Space descriptionrequirements.txt- Python dependenciespackage.json- Node.js configuration
2. Model Architecture Files
convnext_original.py- Original ConvNeXt modelconvnext_finetune.py- Fine-tuned ConvNeXt model
3. Sample Images
- Upload the entire
sample_image/folder with all images
4. Model Weights (Download from Box first)
IMPORTANT: Download these files from Box first: https://utexas.box.com/s/8aw6axc2lofouja65uc726lca8b1cduf
Then create these directories and upload:
feature_models/convnext_tiny_22k_224.pth(170MB)feature_models/triqa_quality_aware.pth(107MB)Regression_Models/KonIQ_scaler.saveRegression_Models/KonIQ_TRIQA.save(111MB)
Upload Steps
- Create the Space on Hugging Face
- Upload files using the web interface or Git
- Wait for build (2-5 minutes)
- Test the demo with sample images
Expected Result
The demo will show:
- Image upload interface
- Quality assessment button
- Sample images for testing
- Quality score output (1-5 scale)
- Paper links and citation
Troubleshooting
If the demo doesn't work:
- Check that all model files are uploaded
- Verify file paths are correct
- Check the Space logs for errors
- Ensure all dependencies are in requirements.txt