| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β β |
| β π YOUR COMPLETE HUGGING FACE DEPLOYMENT KIT π β |
| β β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β π¦ STEP 1: FILES TO UPLOAD TO HUGGING FACE β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| Upload THESE 5 FILES to your Hugging Face Space: |
|
|
| β
app.py (Main application - 24 KB) |
| β
requirements.txt (Python packages - 125 bytes) |
| β
packages.txt (System packages - 7 bytes) |
| β
README.md (Documentation - 3.8 KB) |
| β
.gitignore (Git rules - 308 bytes) |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β π STEP 2: READ THESE GUIDES (Don't Upload These) β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| Start here: |
| π 00_START_HERE.txt β Read this FIRST! |
| π DEPLOYMENT_STEPS.txt β Follow step-by-step |
| π QUICK_DEPLOY_CHECKLIST.md β Quick reference |
|
|
| Optional reading: |
| π HF_PRO_DEPLOYMENT.md β Detailed guide |
| π OUTPUT_COMPARISON.md β Understand outputs |
| π QUICK_ANSWER.md β Quick output reference |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β π STEP 3: DEPLOYMENT (Takes ~15 minutes) β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| 1. Go to: https://huggingface.co/spaces |
| |
| 2. Create new Space: |
| β’ Name: nerf-3d-reconstruction |
| β’ SDK: Gradio |
| β’ Visibility: π PRIVATE β οΈ |
| β’ Hardware: CPU basic (change later) |
| |
| 3. Upload the 5 files listed above |
| |
| 4. Change hardware to: A10G small |
| β’ Settings β Hardware β A10G small |
| |
| 5. Wait for build (~10 minutes) |
| β’ Watch Logs tab |
| |
| 6. Test with video! |
| β’ Processing: 20-45 minutes |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β π° COSTS β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| HF Pro: $9/month (you already have this) |
| GPU (A10G small): $1.05/hour (when running) |
| Per video: ~$0.80 (45 min processing) |
| |
| Monthly estimate: |
| β’ 10 videos: ~$17 total |
| β’ 20 videos: ~$25 total |
| β’ 50 videos: ~$49 total |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β βοΈ RECOMMENDED SETTINGS β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| Hardware: A10G small |
| Visibility: π Private |
| Sleep after: 15 minutes |
| SDK: Gradio 4.0 |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β β
VERIFICATION CHECKLIST β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| Before going live, check: |
| |
| [ ] Space is PRIVATE (Settings β Visibility) |
| [ ] GPU is A10G small or better (Settings β Hardware) |
| [ ] All 5 files uploaded successfully |
| [ ] Build completed without errors (Logs tab) |
| [ ] App interface loads (App tab) |
| [ ] Sleep timer set to 15 min (Settings) |
| [ ] Tested with sample video |
| [ ] Can download output file |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β π― WHAT YOU'LL GET β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| Input: 360Β° Insta360 video (MP4, MOV) |
| |
| Process: |
| 1. Extract frames β 2 min |
| 2. COLMAP reconstruction β 10 min |
| 3. NeRF training β 30 min |
| |
| Output: 3D Point Cloud (PLY file) |
| β’ Use in: CloudCompare, MeshLab, Blender, QGIS |
| β’ Size: ~2-50 MB |
| β’ Format: PLY point cloud |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β π IF SOMETHING GOES WRONG β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| 1. Check Logs tab for errors |
| 2. Read DEPLOYMENT_STEPS.txt troubleshooting |
| 3. Common fixes: |
| β’ "COLMAP not found" β Re-upload packages.txt |
| β’ "CUDA error" β Check GPU is set (not CPU) |
| β’ "Build timeout" β Try Factory reboot |
| 4. HF Support: https://huggingface.co/support |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β π PRO TIPS β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| β¨ Keep Space PRIVATE to control costs |
| β¨ Monitor billing weekly |
| β¨ Use sleep timer (saves money) |
| β¨ Start with 50 frames for faster testing |
| β¨ Batch process multiple videos in one session |
| β¨ Share via Collaborators, not Public |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β π¦ COMPLETE FILE LIST β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| REQUIRED (Upload to HF): |
| β
app.py |
| β
requirements.txt |
| β
packages.txt |
| β
README.md |
| β
.gitignore |
| |
| DOCUMENTATION (Keep locally): |
| π 00_START_HERE.txt |
| π DEPLOYMENT_STEPS.txt |
| π QUICK_DEPLOY_CHECKLIST.md |
| π HF_PRO_DEPLOYMENT.md |
| π OUTPUT_COMPARISON.md |
| π QUICK_ANSWER.md |
| π README_SETUP.md |
| |
| OPTIONAL UPGRADES: |
| π§ export_model_updated.py (for textured meshes) |
| π§ requirements-zerogpu.txt (don't use this) |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β π READY TO DEPLOY? β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| Your next steps: |
| |
| 1. β Read 00_START_HERE.txt |
| 2. β Follow DEPLOYMENT_STEPS.txt |
| 3. β Upload 5 files to HF Space |
| 4. β Set GPU to A10G small |
| 5. β Test with video |
| 6. β Success! π |
|
|
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| β β |
| β Total deployment time: ~15 minutes setup + 45 min test β |
| β Everything you need is in this folder! β |
| β β |
| β Good luck! π β |
| β β |
| βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
|
|
| Questions? Check DEPLOYMENT_STEPS.txt for detailed help! |
|
|