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.

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.2.2.tar.gz (963.1 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.2.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for toyoildata-0.2.2.tar.gz
Algorithm Hash digest
SHA256 e006129b92e5b119fe66165ed7cd38b05df0eb8bad0561ab0d8cc4ba792390eb
MD5 835f29b3f359b2fbff139eee693b0b5b
BLAKE2b-256 b119dc6692de1bd332b4baa5b8567c6f4946a3f9258786d11bd9292f4d944a7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for toyoildata-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad6c4085cdb28ecfdcac36616a85e2c83807a8f683eb282a6976773ec15a8b8b
MD5 32754803a57bc2d3fa821d6eb583a3fd
BLAKE2b-256 df535ccb211813430470e0e18e14e612f9b90ccfb83631b60f024dc65923cce6

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