Templates to perform visualization of data distributions and image annotations.
Project description
Sinapsis Data Visualization
Package with templates to visualize images and data distribution using different libraries and techniques
🐍 Installation • 🚀 Features • 📚 Usage example • 📙 Documentation • 🔍 License
🐍 Installation
Install using your package manager of choice. We encourage the use of uv
Example with uv:
uv pip install sinapsis-data-visualization --extra-index-url https://pypi.sinapsis.tech
or with raw pip:
pip install sinapsis-data-visualization --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-data-visualization[all] --extra-index-url https://pypi.sinapsis.tech
or with raw pip:
pip install sinapsis-data-visualization[all] --extra-index-url https://pypi.sinapsis.tech
🚀 Features
[!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 ImageSaver use sinapsis info --example-template-config ImageSaver to produce the following example config:
Config
agent:
name: my_test_agent
description: agent to read images from a local folder and draw annotations if available
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: FolderImageDatasetCV2
class_name: FolderImageDatasetCV2
template_input: InputTemplate
attributes:
data_dir: '/path/to/sinapsis/cache/dir'
pattern: '**/*'
batch_size: 1
shuffle_data: false
samples_to_load: -1
load_on_init: false
label_path_index: -2
is_ground_truth: false
- template_name: BBoxDrawer
class_name: BBoxDrawer
template_input: FolderImageDatasetCV2
attributes:
overwrite: false
randomized_color: true
draw_confidence: true
draw_extra_labels: true
text_style:
font: 0
font_scale: 0.5
thickness: 2
draw_classification_label: false
classification_label_position: top_right
text_box_to_border_offset: 0.01
📚 Usage example
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
Example agent config
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: BBoxDrawer
class_name: BBoxDrawer
template_input: FolderImageDatasetCV2
attributes:
overwrite: false
randomized_color: true
draw_confidence: true
draw_extra_labels: true
text_style:
font: 0
font_scale: 0.5
thickness: 2
draw_classification_label: false
classification_label_position: top_right
text_box_to_border_offset: 0.01
- template_name: ImageSaver
class_name: ImageSaver
template_input: BBoxDrawer
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
To run, simply use:
sinapsis run name_of_the_config.yml
📙 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_data_visualization-0.1.9.tar.gz.
File metadata
- Download URL: sinapsis_data_visualization-0.1.9.tar.gz
- Upload date:
- Size: 39.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ed813c3860673039dab2eaafeb402390bfce49c2be3e91857ebe45afb1183b2
|
|
| MD5 |
e22256172e5d2f4754ef034b55a3d50e
|
|
| BLAKE2b-256 |
01e2e76ab9ae6ca4e6f65dfee2f61df35ac9a10605a033689f857163086a7123
|
File details
Details for the file sinapsis_data_visualization-0.1.9-py3-none-any.whl.
File metadata
- Download URL: sinapsis_data_visualization-0.1.9-py3-none-any.whl
- Upload date:
- Size: 50.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8ef2adde1c513901b0b447e7df60c6dbc40c0a46cd084aebbde8d597199e0dd
|
|
| MD5 |
e1c477ffac5b556145fbdef70dc8d552
|
|
| BLAKE2b-256 |
48f7231e286bd5fb6f95018b75f6d856ee1a8c7c70239c74b6a7877f40c54a18
|