Propheus street models: walkability and cleanliness

Two models that read street-level photos:

  • Walkability: how easy and safe one spot of a street is to walk, as a score from 0 to 100. It also reports the road type, nine criteria (footpath, surface, dryness, separation from vehicles, hazards, accessibility, shade, active street fronts, traffic safety), the rule ceiling and its reason, and the fixes that would raise the score most.
  • Cleanliness: waste at the kerb. For each photo it reports whether there is waste, how much (a handful to a truckload), heaped or scattered, what kind (packaging, construction, garden, cloth, other) and what makes it urgent (settled, on the walking line, by a bin, open drain, standing water), plus 13 further facts about the kerb. For a run of photos along a street it also gives one street score from 0 to 100, where higher is cleaner.

Both run on google/embeddinggemma-2 (Apache 2.0), with a small Propheus adapter on its vision part and fixed scoring formulas on top. This repository holds only the Propheus parts. The base model is downloaded from Hugging Face automatically on first use (about 1.5 GB).

Requirements

  • Python 3.10 or later (tested with 3.11)
  • An NVIDIA GPU. Each model uses about 1.2 GB of GPU memory. Tested on an NVIDIA L40S.
  • About 3 GB of disk space for the base model and the libraries' caches

Install

  1. Download this repository:

    pip install -U "huggingface_hub>=1.0"
    hf download propheusai/propheus-models --local-dir propheus-models
    cd propheus-models
    
  2. Create an environment and install the pinned libraries:

    python -m venv .venv
    source .venv/bin/activate          # Windows: .venv\Scripts\activate
    pip install -r requirements.txt
    
  3. Check it runs on one of your own street photos (the first run downloads the base model):

    python -m propheus_street walkability path/to/photo.jpg
    

To use the package from anywhere, also run pip install -e . inside the folder. If you move the weights folder, set PROPHEUS_STREET_WEIGHTS to its new path.

Use

Python

from propheus_street import Walkability, Cleanliness

walk = Walkability()   # loads the base model and the walkability adapter (about a minute the first time)

# three photos of the same spot: the left side, ahead along the street, the right side
r = walk.score(left="left.jpg", front="ahead.jpg", right="right.jpg")
print(r["score"], r["band"], r["road_type"])        # e.g. 87.9 good Main road

# or one photo looking along the street (the left and right sides are read from it)
r = walk.score(front="ahead.jpg")

clean = Cleanliness()
r = clean.read(["kerb1.jpg", "kerb2.jpg", "kerb3.jpg"], sides=["left", "left", "right"])
for p in r["photos"]:
    print(p["waste"], p["amount"], p["form"], p["score"])
print(r["street"]["score"])

Photos can be file paths, bytes or PIL images. Each model loads its own copy of the base model (about 1.2 GB of GPU memory), so load only the one you need.

Command line

python -m propheus_street walkability ahead.jpg
python -m propheus_street walkability --left left.jpg --front ahead.jpg --right right.jpg
python -m propheus_street cleanliness kerb1.jpg kerb2.jpg --sides left right

Add --json for the full result and --device cpu or --device cuda to choose the device.

Photos

  • Walkability. Use street-level photos taken from the road or footpath. With three photos: one facing the left side of the street, one looking ahead along it, one facing the right side, all at the same spot. With one photo: looking ahead along the street. Photos are centre-cropped to 4:3 and resized to 960 ร— 720.
  • Cleanliness. Use one photo per kerb, facing the side of the street, and say which side (left or right). Photos larger than 1536 px are scaled down. For a street score, pass the photos in order along the street; with fewer than six photos the street score is only indicative.

What the results contain

Walkability: Walkability().score(...)

Key Meaning
score, band The spot's walkability, 0 to 100, for the road type read from the photos. Bands: good 75+, fair 55+, poor 35+, very poor below 35.
road_type, road_type_why Main road, busy lane or quiet lane, with the reason (road width and traffic as read from the photos).
point The full point score for each road type under by_type. Each has its base, any ceiling or deduction and why (flags, why, rule), a ledger of points against a typical street by pillar (groups, penalties), and the fixes that would raise it most with their lifts (recs).
criteria Nine criteria, 0 to 100 each, with the reading behind each one, its weight and how far it pulls the whole-photo score from a typical street.
whole A whole-photo score and band from the nine criteria.
rules The rule ceiling (95, 89 or 79), its plain-words reason, the readings it used and which tests passed.
heads The reading heads' probabilities for each view.
obstacle_p, vectors_score, mode, note The obstacle model's probability, a second score straight from the photo vectors, which mode was used, and any note on missing views.

Cleanliness: Cleanliness().read(...)

Key Meaning
photos[i].waste, p_waste Waste seen (at the calibrated cut-off waste_cutoff), and its probability.
photos[i].amount, amount_p About a handful, bagful, barrowful or truckload, with the probability of each.
photos[i].form, heaped_p Heaped or scattered.
photos[i].content Probability of each kind: packaging, construction, garden, textile, other.
photos[i].flags Probability that it has settled, is on the walking line, by a bin, at an open drain, or by standing water.
photos[i].more 13 further kerb facts: hazard, spill, occupancy, ponding, blocked drain, buried, weathered, burning, sweeping, signage, barricade, crew, and what it takes to clear.
photos[i].score A per-photo score, 0 to 100.
street The street score over all photos given, with its inputs and the parts that lowered it.

Accuracy

  • Walkability. People graded 60 streets blind, and the model scored the same streets without having been fitted on them. Of every pair of those streets that the person graded differently, the model put 85% in the same order as the person. Two people grading the same streets agree on 78% of pairs.
  • Cleanliness. On 300 hand-checked photos the model calls waste correctly on 90%: it finds 85% of the waste, and 96% of its waste calls are right.

The models were trained on street photos from India. Expect lower accuracy on very different streets, at night, or in rain.

Files

Path Contents
propheus_street/ The code: encoder.py (base model and adapter), cleanliness.py, walkability.py and the walkability scoring parts (_walk_criteria.py, _walk_rules.py, _walk_named.py), and a command-line tool (__main__.py).
weights/cleanliness/ The adapter, the reading heads (three seeds, averaged), their labels and the street score formula.
weights/walkability/ The adapter, the reading heads for three-photo and one-photo use, the traffic and wet-ground readers, the photo-vector model, the rule parameters and the point-score tables.

All weights are safetensors, NumPy arrays or JSON; nothing is loaded with pickle. The base model version is pinned in propheus_street/encoder.py so results stay the same.

Licence

ยฉ 2026 Propheus. The adapters, heads and scoring formulas in this repository are Propheus property. The base model, google/embeddinggemma-2, is under the Apache 2.0 licence.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for propheusai/propheus-models

Adapter
(8)
this model