Welcome to the repository for 5LSM0: Final Assignment: Cityscape Challenge, the final project for the course 5LSM0: Neural Networks for Computer Vision, offered by the Department of Electrical Engineering at Eindhoven University of Technology. This course is hosted by the Video Coding & Architectures research group.
This project uses a pre-configured Docker container with all necessary dependencies:
- Dataset: Cityscapes
- Docker Image:
docker://tjmjaspers/nncv2025:v7 - Singularity Container:
container.sif
-
Clone this repository:
git clone <repo-url> cd <repo-directory>
-
Download Docker and Cityscapes dataset: Run the following script to download both:
sbatch download_docker_and_data.sh
-
Optional: To change the Docker version, edit the
download_docker_and_data.shscript accordingly.
π‘ All necessary modules are included in the
container.sifDocker image. No manual pip installations are required.
-
Configure the Training Script:
Inmain.sh, replace the script reference with the desired training configuration (e.g.,train_Segformer_Finetuned.py). All training scripts are prefixed withtrain_. -
Adjust Hyperparameters:
Modify learning rate, batch size, and number of epochs directly inmain.sh. -
Set Training Time and GPU Settings:
Injobscript_slurm.sh, set the maximum training time and (optionally) specify the number of GPUs.β οΈ If you use multiple GPUs, ensure the training script supports parallel training (manual changes may be required). -
Submit the Job to the Supercomputer:
Use the following command to submit the job via SLURM:sbatch jobscript_slurm.sh
To check the job status in the queue:
squeue
If you have a trained model checkpoint and want to participate in the Codalab evaluation:
-
Select Your Model File:
Find the appropriate model script (files prefixed withModel_) and rename it tomodel.py. -
Update Pre/Post-Processing:
Modifyprocess_data.pywith the correct input size and any desired preprocessing. -
Prepare the Checkpoint:
Rename your.pthfile tomodel.pth. -
Package for Submission:
Zip the following files:model.pymodel.pthprocess_data.py
Submit the zip file to the Codalab competition platform.
- Name: Shao-Ruei Huang
- TU/e Email: s.huang5@student.tue.nl
- Codalab Username:
TUe-Ray