Shortcut Learning · Waterbirds
Live demo

Upload a bird photo, watch the model decide

The trained ResNet18 checkpoint is too large to ship with this static site, so the live demo runs on a free Hugging Face Space and is embedded below.

What the demo shows

  • Predicted class (landbird vs. waterbird) and confidence.
  • The Grad-CAM heatmap overlaid on the uploaded image.
  • The 60% center-crop foreground heuristic as a white box.
  • The foreground / background saliency split (= attention bias).

Helpful test images

For the most informative demo, try:

  • A photo of a landbird perched on grass.
  • A photo of a duck on water.
  • A waterbird photoshopped onto a forest background.
  • A landbird with a strong blue background — to surface the shortcut.