A Python package for working with constrained Stanford Drone Dataset.
Project description
Constrained Stanford Drone Dataset
This repository contains an annotated version of the Stanford Drone Dataset[1]. We segmented the first 50 images from SDD and drew polygons for buildings, obstacles and offroad. Our trajectories only follow the roads/walking paths.
Installation
Using this dataset is really easy! First, you can install this package using pypi:
pip install constrained-sdd
then just use the provided class to download the dataset and load it into memory:
import sdd.constrained_sdd as csdd
img_id = 0
folder = "data/sdd"
sdd = csdd.ConstrainedStanfordDroneDataset(0, sdd_data_path=folder, download=True)
train, val, test = sdd.get_dataset()
this creates a dataset with a list of trajectories in train/val/test, e.g. useful for position prediction.
You can also create the trajectory-prediction task via:
train, val, test = sdd.get_trajectory_prediction_dataset(window_size, sampling_rate)
Citation
Leander Kurscheidt, Paolo Morettin, Roberto Sebastiani, Andrea Passerini, Antonio Vergari, A Probabilistic Neuro-symbolic Layer for Algebraic Constraint Satisfaction, arXiv:2503.19466
Examples
An overview over all the images can be seen in analysis/viz_data.ipynb.
Further Details
We annotate the first 50 pictures (scenes in the original dataset) with trajectories of the Stanford Drone Dataset[1], as extracted by P2T[2]. We select all trajectories following the road and delete obvious errors, like projecting a trajectory that slightly touches a building outwards and deleting trajectories that suddenly jump around. We annotate using three classes: Building, Obstacle and Offroad, which forms our constraint-set. Additionally, we have annotated the entrance of a building to differentiate trajectories that enter a building from those who not, but this is unused. All trajectories in our dataset are constraint-abiding.
[1] A. Robicquet, A. Sadeghian, A. Alahi, S. Savarese, Learning Social Etiquette: Human Trajectory Prediction In Crowded Scenes in European Conference on Computer Vision (ECCV), 2016. [2] Nachiket Deo, Mohan M. Trivedi, Trajectory Forecasts in Unknown Environments Conditioned on Grid-Based Plans, 2021
pushing a new version
Pushing a new version is automated via github actions triggered via tags. It is very easy:
- increment the version number in setup.py
git tag -a v0.1.X -m "Release v0.1.X"(adds the tag)git push origin v0.1.8(pushed the tag)- the github action will push a new version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file constrained_sdd-0.1.9.tar.gz.
File metadata
- Download URL: constrained_sdd-0.1.9.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e5f27f64e2476d8b55166fa87bca5f5beb8ab9534352f2c41af3aafecf4909d
|
|
| MD5 |
dc5228c51ad6537641e829ce0bfdeea3
|
|
| BLAKE2b-256 |
4364127ce928b3da3eab780e097f29c2aa08d7d38a244caf100e50f4929d291f
|
Provenance
The following attestation bundles were made for constrained_sdd-0.1.9.tar.gz:
Publisher:
publish-on-tag.yml on april-tools/constrained-sdd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
constrained_sdd-0.1.9.tar.gz -
Subject digest:
2e5f27f64e2476d8b55166fa87bca5f5beb8ab9534352f2c41af3aafecf4909d - Sigstore transparency entry: 1309358027
- Sigstore integration time:
-
Permalink:
april-tools/constrained-sdd@7ca9c78e224cbecb6673e33aceaadc0a0d36cddb -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/april-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-on-tag.yml@7ca9c78e224cbecb6673e33aceaadc0a0d36cddb -
Trigger Event:
push
-
Statement type:
File details
Details for the file constrained_sdd-0.1.9-py3-none-any.whl.
File metadata
- Download URL: constrained_sdd-0.1.9-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd05d7bc017218664e29430f0c5fc62491a8fc6a21fddf66341f042ff5f63f40
|
|
| MD5 |
4f92d793f86c03544cdff58093061f2a
|
|
| BLAKE2b-256 |
e14e53a55af6048ad50bde036cb9460570424ecf62b8d81ae650c1e3adede17a
|
Provenance
The following attestation bundles were made for constrained_sdd-0.1.9-py3-none-any.whl:
Publisher:
publish-on-tag.yml on april-tools/constrained-sdd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
constrained_sdd-0.1.9-py3-none-any.whl -
Subject digest:
cd05d7bc017218664e29430f0c5fc62491a8fc6a21fddf66341f042ff5f63f40 - Sigstore transparency entry: 1309358160
- Sigstore integration time:
-
Permalink:
april-tools/constrained-sdd@7ca9c78e224cbecb6673e33aceaadc0a0d36cddb -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/april-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-on-tag.yml@7ca9c78e224cbecb6673e33aceaadc0a0d36cddb -
Trigger Event:
push
-
Statement type: