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.0.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.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toyoildata-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 37b08696bc9f863e1c03d022e15d4e4ac0469f88e9e090550a9f332cdd8e0790
MD5 09a01852aeafc7ad388b9a1ee1c56a38
BLAKE2b-256 0966369d47ec166c63f8acc81be33fc0ce31b98c9333b4285ec2316372be21b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for toyoildata-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78b7171c44a795966e9109b8355a01a3676836bfc2e849248e6fe019136cfa50
MD5 4a89d131d58f4dd93fc76330a43df4d0
BLAKE2b-256 4a949842753d24bc0be7d1bc0b9307e29d338ac1961310e42e94ed297b1f4419

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