breakoutmodels.dev Version v0.12.5+4412b97

New and rising models on the Hub, measured where we can

growth 0 downloads a day, proxy
local history0snapshots
freshness100%
Back to the list
– parameters
0downloads a day proxy
–likes a day
0likes
0downloads in 30d
–downloads, all time
0Hub trending score
25.2MBrepo size
16mage
0Spaces using it

Change over time

No local snapshots of this repo yet, so the growth above is the documented proxy.

Model card

The authors' README from huggingface.co. Benchmarks and claims in it are theirs, not breakoutmodels measurements.

PG-Pathformer - a computer-vision model on Pictograph

Open in task arch mIoU license

View on Pictograph · Pictograph Research · Semantic Segmentation · Segformer · FP32 · Creative Commons Attribution-NonCommercial 4.0

Overview

This is a semantic segmentation model built on Segformer, trained on the Sidewalks-1k dataset. It expects 672x576 input and runs in FP32 precision. The ONNX weights are in this repo; run them with the Pictograph SDK (below) or open the model on Pictograph to test it in-browser, call the hosted API, or deploy it as an always-on endpoint.

Performance

Headline: 39.9% mIoU.

Metric Value
mIoU 39.9%
Pixel accuracy 83.5%
Dice 49.3%

Classes

Class index matches the model's output order.

# Class
0 flat-road
1 flat-sidewalk
2 flat-crosswalk
3 flat-cyclinglane
4 flat-parkingdriveway
5 flat-curb
6 human-person
7 human-rider
8 vehicle-car
9 vehicle-truck
10 vehicle-bus
11 vehicle-tramtrain
12 vehicle-motorcycle
13 vehicle-bicycle
14 vehicle-caravan
15 vehicle-cartrailer
16 construction-building
17 construction-door
18 construction-wall
19 construction-fenceguardrail
20 construction-bridge
21 construction-stairs
22 object-pole
23 object-trafficsign
24 object-trafficlight
25 nature-vegetation
26 nature-terrain
27 sky
28 void-ground
29 void-dynamic
30 void-static
31 void-unclear

Training

Setting Value
Base dataset Sidewalks-1k
Dataset size 1,000 images
Input size 672x576
Epochs 35
Batch size 24
Learning rate 0.0001
Precision FP32
Version 1.0.0

Use this model

The weights ship as ONNX (pg-pathformer.onnx) with a config.json. The Pictograph SDK applies the model's exact pre/post-processing for you:

Pictograph SDK
pip install "pictograph[inference]"
from huggingface_hub import hf_hub_download
from pictograph import load_model, SemanticSegmentationModel

onnx = hf_hub_download("pictograph/pg-pathformer", "pg-pathformer.onnx")
config = hf_hub_download("pictograph/pg-pathformer", "config.json")

model: SemanticSegmentationModel = load_model(onnx, config, task="semantic_segmentation")
result = model.predict("scene.jpg")   # SemanticSegmentationResult: per-class regions
for p in result.predictions:
    print(f"{p.name} region {len(p.polygon.paths[0])} pts")

Example output (illustrative; your exact values depend on the image):

flat-road region 86 pts
flat-sidewalk region 34 pts
Raw ONNX Runtime (no SDK)
from huggingface_hub import hf_hub_download
import onnxruntime as ort

onnx = hf_hub_download("pictograph/pg-pathformer", "pg-pathformer.onnx")
sess = ort.InferenceSession(onnx, providers=["CPUExecutionProvider"])
inp = sess.get_inputs()[0]
print(inp.name, inp.shape)   # NCHW float32; input size + normalization in config.json
# outputs = sess.run(None, {inp.name: preprocessed_batch})
# Decoding is architecture-specific; the Pictograph SDK (above) does it for you.

License

Released under Creative Commons Attribution-NonCommercial 4.0, the license of its training data, sidewalk-semantic (Segments.ai). Non-commercial use only: when you use this model, please credit Segments.ai (2021).


Trained and published with Pictograph - annotate, train, and deploy from one API.