-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Nikhil Kandhare edited this page Apr 6, 2026
·
1 revision
- π§ UNet (Encoder-Decoder) Architecture
- π Custom Dataset Loader with Label Remapping
- π Evaluation using IoU, Pixel Accuracy
- β‘ Optimized Training Pipeline (CPU/GPU support)
- πΌοΈ Before vs After Segmentation Visualization
- Encoder β Feature Extraction
- Bottleneck β Deep Representation
- Decoder β Spatial Reconstruction
- Skip Connections β Preserve details
offroad-segmentation/ β βββ data/ β βββ train/ β βββ val/ β βββ test/ β βββ models/ β βββ unet.py β βββ utils/ β βββ dataset.py β βββ metrics.py β βββ train.py βββ evaluate.py βββ predict.py βββ config.py βββ requirements.txt βββ README.md
git clone https://github.com/your-username/offroad-segmentation.git
cd offroad-segmentation
2. Install dependencies
pip install -r requirements.txt
βΆοΈ Usage
πΉ Train Model
python train.py
πΉ Evaluate Model
python evaluate.py
πΉ Run Inference (Demo)
python predict.py
π Results
Metric Value
Mean IoU ~0.42
Pixel Accuracy ~0.81
Approx mAP ~0.79
Note: mAP is approximated for segmentation (not standard detection mAP)
πΌοΈ Sample Output
Input Image β Segmentation Output
(Add your result.png here)
β οΈ Important Notes
Dataset is not included due to size constraints
Model is trained only on provided dataset (as per hackathon rules)
No external data used
π§ Key Learnings
Handling non-contiguous class labels
Building custom dataset pipelines
Optimizing training on limited hardware
Evaluating segmentation models effectively
π Future Improvements
Data Augmentation
Advanced Models (DeepLabV3+)
Better class balancing
Real-time inference
π¨βπ» Team
[Nikhil kandhare(Team GCOEY)]
β Acknowledgements
Duality AI Hackathon Dataset
PyTorch Community
π¬ Contact
nikhilkandhare22@gmail.com
+91 9112430021