Skip to content

Feat/cityscapes tutorial - #580

Merged
dpascualhe merged 6 commits into
JdeRobot:masterfrom
tejasstanley:feat/cityscapes_tutorial
May 29, 2026
Merged

Feat/cityscapes tutorial#580
dpascualhe merged 6 commits into
JdeRobot:masterfrom
tejasstanley:feat/cityscapes_tutorial

Conversation

@tejasstanley

@tejasstanley tejasstanley commented May 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

This draft PR adds a tutorial notebook for running semantic segmentation evaluation on the Cityscapes dataset with PerceptionMetrics.

Changes

  • Added examples/tutorial_cityscapes_image_segmentation.ipynb
  • Demonstrates evaluation with a pretrained SegFormer model fine-tuned on Cityscapes
  • Shows how to create the model configuration from the Hugging Face image processor
  • Shows how to load Cityscapes validation data, run predictions, visualize results, and compute segmentation metrics
  • Updated Cityscapes dataset support for the tutorial workflow
  • Updated torch segmentation inference to handle models that return logits outputs and resize logits back to the input resolution

Status

  • Tutorial notebook added
  • Prediction workflow tested
  • Evaluation workflow tested on the Cityscapes validation split

Reference Issue #579

@tejasstanley
tejasstanley marked this pull request as ready for review May 27, 2026 13:32
@tejasstanley
tejasstanley force-pushed the feat/cityscapes_tutorial branch from 350d626 to aadbe88 Compare May 27, 2026 13:43
@dpascualhe
dpascualhe merged commit 0612ac3 into JdeRobot:master May 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants