π CUGB-MΒ²Rock: A large-scale dataset and benchmark for Martian rock segmentation from images captured by Mars landers and rovers
CUGB-MΒ²Rock is the first large-scale, multi-source benchmark for Martian rock segmentation with 600k+ annotated instances. UBNet achieves leading accuracy with extremely low complexity.
- Download the dataset from
https://pan.baidu.com/s/1qHHYl3sZF42LMVnisO9chg?pwd=fsxh(access code:fsxh).
- Download the dataset from
https://github.com/CVIR-Lab/SynMars.
- Organize your custom data as 24-bit PNG images and 8-bit PNG masks (foreground pixels = 255, background = 0):
./your_dataset/ ββ images/ β ββ 0000.png β ββ 0001.png ββ masks/ β ββ 0000.png β ββ 0001.png ββ Prepare_your_dataset.py - Edit
Prepare_your_dataset.pyto define the training/validation/test splits. - Run
Prepare_your_dataset.pyto generate standardized data manifests and indices.
Create a dedicated Conda environment (Python 3.8):
conda create -n ubnet python=3.8
conda activate ubnet
pip install torch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0
pip install causal_conv1d==1.0.0 mamba_ssm==1.0.1- Modify
train.pyto set dataset paths, batch size, and logging directories. - Default hyperparameters: AdamW, batch size 32 (single GPU), cosine-annealing schedule (initial LR 1e-3, minimum 1e-5), 200 epochs.
- Start training:
python train.py
- Monitor logs, visualizations, and checkpoints under
./results/.
- In
test.py, setresume_modelto the desired checkpoint. - Run:
python test.py
- Segmentation outputs and metrics are saved in
./results/.