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)
git clone <repo>cd <repo>uv sync
Publish
-
Make sure you have the following environment variables set:
UV_PUBLISH_URLUV_PUBLISH_TOKENI 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e006129b92e5b119fe66165ed7cd38b05df0eb8bad0561ab0d8cc4ba792390eb
|
|
| MD5 |
835f29b3f359b2fbff139eee693b0b5b
|
|
| BLAKE2b-256 |
b119dc6692de1bd332b4baa5b8567c6f4946a3f9258786d11bd9292f4d944a7f
|
File details
Details for the file toyoildata-0.2.2-py3-none-any.whl.
File metadata
- Download URL: toyoildata-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad6c4085cdb28ecfdcac36616a85e2c83807a8f683eb282a6976773ec15a8b8b
|
|
| MD5 |
32754803a57bc2d3fa821d6eb583a3fd
|
|
| BLAKE2b-256 |
df535ccb211813430470e0e18e14e612f9b90ccfb83631b60f024dc65923cce6
|