Data catalog / Guides / Testing perception in bad weather

Testing perception in snow, rain, fog and low sun

Bad weather is where perception fails first, and it is hard to collect on demand. This guide covers real road video of snow, rain, fog and low sun, each checked against the weather archive for that place and hour: what is in a clip, how to pick a test set, and where generated weather fits.

Which conditions

  • Snow: falling snow, snow-covered roads and snow banked on the roadside.
  • Rain and wet roads: rain on the road and the windshield, and standing water.
  • Fog and mist: low visibility on city streets.
  • Low sun: the sun low in front of the camera on a clear day.
  • Day, twilight and night: the same conditions in different light.

How a clip is checked

  • Tagged: our road model or the camera marks the segment as snow, rain, fog or glare.
  • Archive: the public weather archive (Open-Meteo, hourly) for that place and hour has to agree, with snowfall or snow on the ground for snow and rain for rain. For low sun we compute the sun's height.
  • Eye-checked: a person confirms the condition is visible and the road can still be seen. Fog is checked by eye only, because the hourly archive does not resolve it.

What the sample holds

FileWhat it holds
clips/*.mp4Real road-facing dashcam clips, up to 10 s, 960×540. Faces and licence plates blurred.
labels.jsonOne record per clip: condition, place (town or neighbourhood), month, light, what the weather archive recorded for that place and hour, and the sun's height.
cosmos/An NVIDIA Cosmos light-snow version of a real scene, with the real excerpt beside it. Generated video, Built on NVIDIA Cosmos.

Pick a test set

Download the free sample from the weather library, unzip it, and group the real clips by condition and light:

pick_weather_clips.py

Tested 2026-11-30 · Python 3.15.2 · standard library only
# Group the weather sample's real clips by condition and light, to pick a test set.
# usage: python pick_weather_clips.py roaddata-weather-library
import json, sys
from collections import defaultdict
d = json.load(open(f"{sys.argv[1]}/labels.json"))
groups = defaultdict(list)
for clip in d["real"]:
    groups[(clip["kind"], clip["light"])].append(clip["id"])
for (kind, light), ids in sorted(groups.items()):
    print(f"{kind:<10} {light:<9} {' '.join(ids)}")
first = d["real"][0]
print("\n", first["id"], "|", first["condition"], "|", first["place"], "|", first["archive"])
python pick_weather_clips.py roaddata-weather-library
What it printed when we ran it
fog        daytime   wx_21
low_sun    daytime   wx_22 wx_23 wx_24 wx_25
rain       daytime   wx_11 wx_14 wx_15 wx_16 wx_19 wx_20
rain       night     wx_12 wx_18
...

 wx_01 | falling snow | South End, Boston, MA | Weather archive: 2.3 cm of snow in the 24 h before, 29 cm on the ground

Real and generated weather

NVIDIA Cosmos can re-render a real excerpt in light snow: the street layout and everyone's movement follow the real clip, and only weather and light change. Generated versions are labelled as such. They are useful for testing a model under new conditions, not as a record of real weather. Built on NVIDIA Cosmos.

Limits to know

  • Weather archive values are for the hour and for a grid cell around the place, not the exact street, so a short shower can be missed or over-counted.
  • Rain on the windshield is part of what the camera saw and is kept; it can hide road detail.
  • Fog is confirmed by eye only.
  • The free sample has video and labels; motion data, more conditions and other cities come with a licensed set.