Collection of generic data tools
Project description
Sinapsis Generic Data Tools
Package with generic data tools for image color conversion, buffering of data packets and other useful tools for handling data
🐍 Installation • 📙 Documentation • 🔍 License
🐍 Installation
Install using your package manager of choice. We encourage the use of uv
Example with uv:
uv pip install sinapsis-generic-data-tools --extra-index-url https://pypi.sinapsis.tech
or with raw pip:
pip install sinapsis-generic-data-tools --extra-index-url https://pypi.sinapsis.tech
[!IMPORTANT] Templates in each package may require extra dependencies. For development, we recommend installing the package with all the optional dependencies:
with uv:
uv pip install sinapsis-generic-data-tools[all] --extra-index-url https://pypi.sinapsis.tech
or with raw pip:
pip install sinapsis-generic-data-tools[all] --extra-index-url https://pypi.sinapsis.tech
[!TIP] Use CLI command
sinapsis info --all-template-namesto show a list with all the available Template names installed with Sinapsis Data Tools.
[!TIP] Use CLI command
sinapsis info --example-template-config TEMPLATE_NAMEto produce an example Agent config for the Template specified in TEMPLATE_NAME.
For example, for ColorConversion use sinapsis info --example-template-config ImageColorConversion to produce the following example config:
agent:
name: my_test_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: ImageColorConversion
class_name: ImageColorConversion
template_input: InputTemplate
attributes:
target_color_space: 2
📚 Usage example
Example agent config
You can copy and paste the following config and run it using the sinapsis cli, changing thedata_dir attribute in the FolderImageDatasetCV2 and the root_dir attribute in the ImageSaver template
agent:
name: my_test_agent
description: agent to save image locally
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: FolderImageDatasetCV2
class_name: FolderImageDatasetCV2
attributes:
data_dir: /path/to/image
pattern: '**/*'
batch_size: 1
load_on_init: true
label_path_index: 0
is_ground_truth: false
- template_name: ImageColorConversion
class_name: ImageColorConversion
template_input: FolderImageDatasetCV2
attributes:
target_color_space: 2
- template_name: ImageSaver
class_name: ImageSaver
template_input: ColorConversion
attributes:
save_dir: /path/to/save/dir
extension: jpg
root_dir: '/path/to/sinapsis/cache'
save_full_image: true
save_bbox_crops: false
save_mask_crops: false
min_bbox_dim: 5
sinapsis run name_of_the_config.yml
NOTE: Make sure to update the data_dir attribute in the FolderImageDatasetCV2, and the save_dir and root_dir attributes in the ImageSaver templates to actual directories
📙 Documentation
Documentation for this and other sinapsis packages is available on the sinapsis website
Tutorials for different projects within sinapsis are available at sinapsis tutorials page
🔍 License
This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.
For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.
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 sinapsis_generic_data_tools-0.1.7.tar.gz.
File metadata
- Download URL: sinapsis_generic_data_tools-0.1.7.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f9489049628b55032b8f678947f2e7779e0d8478509d881b59b023ef5ecdb30
|
|
| MD5 |
4a8e4f690bbf824ebcbdf2a65b8530c5
|
|
| BLAKE2b-256 |
954be54481a1c961ee8855d775063ed0bef70f18660e8f549e0aaef91790ef1d
|
File details
Details for the file sinapsis_generic_data_tools-0.1.7-py3-none-any.whl.
File metadata
- Download URL: sinapsis_generic_data_tools-0.1.7-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec67e524c46a4bf6bb80c6eab9e653315eb8baf783faa8e4f909129e8d378bc3
|
|
| MD5 |
c0e371d9e29af04a8b4d6ff0f2e048c0
|
|
| BLAKE2b-256 |
3dfa9bd4f07ff8ef7cc804b1cb4ba199cba5eed161261c682f28a9b424765059
|