Spaces:
Paused
Paused
Path Reference for spad_for_vision_space
Base Directory
- BASE_DIR:
/Users/pd3rvr/Documents/pubs/THESIS/thetex/huggingface/spad_for_vision_space- Defined in
app.pyas:os.path.dirname(os.path.abspath(__file__))
- Defined in
Models Search Paths
From app.py (main application):
All model weights are searched in: BASE_DIR/models/<model_type>/
- Flat Surface Detection:
BASE_DIR/models/flat_surface/*.pth - Material Purity:
BASE_DIR/models/material_purity/*.pth - Material Detection Head:
BASE_DIR/models/material_detection_head/*.pth - YOLOv3:
BASE_DIR/models/yolov3/*.pt - YOLOv8:
BASE_DIR/models/yolov8/*.pt - DINOv3:
BASE_DIR/models/dinov3/*.pth
From material_detection_functions.py:
Spatiotemporal Material Detection Model: BASE_DIR/models/spatiotemporal/training_results_material_classifier_best_99.25%.pth
Note: The path calculation in material_detection_functions.py goes up 2 levels from the file location:
- File location:
apps.err/material_detection_naturalobjects/material_detection_functions.py - Goes up to:
spad_for_vision_space/ - Then:
models/spatiotemporal/
Test Images/Datasets Search Paths
All test images are searched in: BASE_DIR/datasets/<dataset_name>/
- Flat Surface Detection:
BASE_DIR/datasets/testmages__flatsurface/ - Fluid Purity Demo:
BASE_DIR/datasets/testmages__milkpurity/ - DINOv3 Demo:
BASE_DIR/datasets/testmages_dino/ - Custom YOLOv8 Demo:
BASE_DIR/datasets/testmages__yolov8/ - Spatiotemporal Detection:
BASE_DIR/datasets/testmages_spatiotemporal/ - Detect YOLOv3:
BASE_DIR/datasets/testmages__yolov3/ - Material Detection Head:
BASE_DIR/datasets/val_natural_material_detection/
Model Architecture Files
- YOLOv3 Custom:
BASE_DIR/apps/yolov3_custom/train_fast_yolov3.py - DINOv3 Custom:
BASE_DIR/apps/dinov3_custom/train_dinov3.py
Hugging Face Hub Download
On startup, if models/datasets don't exist locally, the app will attempt to download from:
- Models:
mvplus/spatiotemporal_models(repo-type: model) - Datasets:
mvplus/spatiotemporal_dataset(repo-type: dataset)
Note: Downloads are skipped for local testing (only happen on Hugging Face Spaces).