Skip to content
Nikhil Kandhare edited this page Apr 6, 2026 · 1 revision

πŸ“Œ Features

  • 🧠 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

🧠 Model Architecture

  • Encoder β†’ Feature Extraction
  • Bottleneck β†’ Deep Representation
  • Decoder β†’ Spatial Reconstruction
  • Skip Connections β†’ Preserve details

πŸ“‚ Project Structure

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


βš™οΈ Setup

1. Clone the repository

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