Upload upload_instructions.md with huggingface_hub
Browse files- upload_instructions.md +51 -0
upload_instructions.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Upload Instructions for Hugging Face Space
|
| 2 |
+
|
| 3 |
+
## Files to Upload
|
| 4 |
+
|
| 5 |
+
Upload these files to your Hugging Face Space (in this order):
|
| 6 |
+
|
| 7 |
+
### 1. Core Application Files
|
| 8 |
+
- `app.py` - Main Gradio application
|
| 9 |
+
- `README.md` - Space description
|
| 10 |
+
- `requirements.txt` - Python dependencies
|
| 11 |
+
- `package.json` - Node.js configuration
|
| 12 |
+
|
| 13 |
+
### 2. Model Architecture Files
|
| 14 |
+
- `convnext_original.py` - Original ConvNeXt model
|
| 15 |
+
- `convnext_finetune.py` - Fine-tuned ConvNeXt model
|
| 16 |
+
|
| 17 |
+
### 3. Sample Images
|
| 18 |
+
- Upload the entire `sample_image/` folder with all images
|
| 19 |
+
|
| 20 |
+
### 4. Model Weights (Download from Box first)
|
| 21 |
+
**IMPORTANT**: Download these files from Box first: https://utexas.box.com/s/8aw6axc2lofouja65uc726lca8b1cduf
|
| 22 |
+
|
| 23 |
+
Then create these directories and upload:
|
| 24 |
+
- `feature_models/convnext_tiny_22k_224.pth` (170MB)
|
| 25 |
+
- `feature_models/triqa_quality_aware.pth` (107MB)
|
| 26 |
+
- `Regression_Models/KonIQ_scaler.save`
|
| 27 |
+
- `Regression_Models/KonIQ_TRIQA.save` (111MB)
|
| 28 |
+
|
| 29 |
+
## Upload Steps
|
| 30 |
+
|
| 31 |
+
1. **Create the Space** on Hugging Face
|
| 32 |
+
2. **Upload files** using the web interface or Git
|
| 33 |
+
3. **Wait for build** (2-5 minutes)
|
| 34 |
+
4. **Test the demo** with sample images
|
| 35 |
+
|
| 36 |
+
## Expected Result
|
| 37 |
+
|
| 38 |
+
The demo will show:
|
| 39 |
+
- Image upload interface
|
| 40 |
+
- Quality assessment button
|
| 41 |
+
- Sample images for testing
|
| 42 |
+
- Quality score output (1-5 scale)
|
| 43 |
+
- Paper links and citation
|
| 44 |
+
|
| 45 |
+
## Troubleshooting
|
| 46 |
+
|
| 47 |
+
If the demo doesn't work:
|
| 48 |
+
1. Check that all model files are uploaded
|
| 49 |
+
2. Verify file paths are correct
|
| 50 |
+
3. Check the Space logs for errors
|
| 51 |
+
4. Ensure all dependencies are in requirements.txt
|