Skip to main content

A Python package for working with constrained Stanford Drone Dataset.

Project description

Constrained Stanford Drone Dataset

Python application

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

Image 12 Image 2 Image 0 Image 18

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

constrained_sdd-0.1.7.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

constrained_sdd-0.1.7-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file constrained_sdd-0.1.7.tar.gz.

File metadata

  • Download URL: constrained_sdd-0.1.7.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for constrained_sdd-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ecff91bd7d4a00b7d5633f9d1ac421f656667370244871293c653ebec5f2ba48
MD5 9ee3c9efce335057f010cda8d85d9af5
BLAKE2b-256 7b95c31323e2131637f9ea9baa6732cdb399ec99c6bfed8c42f94f809385fb38

See more details on using hashes here.

Provenance

The following attestation bundles were made for constrained_sdd-0.1.7.tar.gz:

Publisher: publish-on-tag.yml on april-tools/constrained-sdd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file constrained_sdd-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for constrained_sdd-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2fda320925a0fbbf87e40225d0b7900ba62cb645cdcf476d73a08e3fb8202c8e
MD5 9ba6dee839d591979dc5b24710328372
BLAKE2b-256 c64a2cdb6d69e833364d1010e5bb76781240a3e40e86356437005ef5e80bdcba

See more details on using hashes here.

Provenance

The following attestation bundles were made for constrained_sdd-0.1.7-py3-none-any.whl:

Publisher: publish-on-tag.yml on april-tools/constrained-sdd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page