Skip to main content

Synthetic segmentation data with given TP, FP and FN small instances for visualization and testing of pipelines and metrics.

Project description

ToyOilData

Synthetic segmentation data with given TP, FP and FN small instances for visualization and testing of pipelines and metrics.

Example

Installation

With uv

uv add toyoildata

With pip

pip install toyoildata

Example Usage

from toydata import ToyOilSpillDataset
import matplotlib.pyplot as plt

## init dataset
ds = ToyOilSpillDataset()

## get a sample
img, pred, label = ds[0]
print(img.shape, pred.shape, label.shape)

## show examples from the dataset to understand the data
ds.show_examples()
plt.show()

Development Notes

Install (assuming you have uv installed)

  1. git clone <repo>
  2. cd <repo>
  3. uv sync

Publish

  1. Make sure you have the following environment variables set:

    • UV_PUBLISH_URL
    • UV_PUBLISH_TOKEN I have defined this in .zshrc. Note sure if this is really the best way, but it works and does not reveal the token in the repo.
uv build
uv publish

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

toyoildata-0.3.1.tar.gz (963.2 kB view details)

Uploaded Source

Built Distribution

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

toyoildata-0.3.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file toyoildata-0.3.1.tar.gz.

File metadata

  • Download URL: toyoildata-0.3.1.tar.gz
  • Upload date:
  • Size: 963.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for toyoildata-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d111e62742cf44bcce38f6c68e887f0b3dadfe18b3c6f9f9327eb00489533a7b
MD5 bdf5f226b2b7da4c3bd856add37e85b2
BLAKE2b-256 966be04d7c86bdf7b57547eb962f64b0d56fc90d794337a5ccd79e9e3c2150bd

See more details on using hashes here.

File details

Details for the file toyoildata-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for toyoildata-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32ef9c09790d7beb48f2c33f4469ea75c69405c08c84db2ab79b4248795d50fd
MD5 924842705d642e1ed882e0099e8403d9
BLAKE2b-256 215e5d12460807dc8af0edcc1de6dda00f4e68ddbdb7adbfa0f27e2b2e6881c2

See more details on using hashes here.

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