Skip to main content

Tool for labeling images

Project description

icas

Tool for clustering and segmenting image datasets. Detailed descriptions for packages and pipelines can be found in githup repo. Below is just basic usage sytle.

Test the whole system pipeline with:

* clusterimg test

import icas.clusterimg.clusterimg_test as ct
ct()

* Deep Learning clusterimg test

import icas.clusterimg.DL_clusterimg_test as dl_ct
dl_ct()

* segmentimg test

import icas.segmentimg.segmentimg_test as st
st()





Use the icas systems with:

* clusterimg

from icas.clusterimg.Clusteror import  Clusteror

test_path = "path/to/images"
method = "TM"
batch_size = 500
threshold = 0.5

cl = Clusteror(test_path, method, method, threshold=threshold, overwrite=True)
cl()

* Deep Learning clusterimg

from icas.clusterimg.DL_ModelTrainer import ModelTrainer
from icas.clusterimg.DL_Datasets import ImageDataset
from icas.clusterimg.DL_Models import PowerOf2s32to128
from icas.clusterimg.DL_Clusteror import DL_Clusteror

device = "cpu"
method = "kmeans"
loss = "mse"
test_path = "path/to/images"

mt = ModelTrainer(num_of_epochs=1, lr=0.001, batch_size=2, loss_type=loss, dataset=ImageDataset(test_path), model=PowerOf2s32to128(), verbose=0, device=device)

dlc = DL_Clusteror(model_trainer=mt, method=method, batch_size=100, overwrite=True, verbose=0)
dlc()

* segmentimg

from icas.segmentimg.Segmentator import  Segmentator

test_path = "path/to/images"
method = "graph"

sg = Segmentator(test_path, method=method)
sg()





To user attention:

We insist you to add comments, descriptions and example usage to your contributions

Below libraries are not installed with icas since aim for icas is to be lightweight. Advanced usage such as Deep Learning Clustering and SAM segmentation requires below installations:

pip install torch
pip install torchvision
pip install scikit-learn
pip install git+https://github.com/facebookresearch/segment-anything.git

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

icas-1.0.tar.gz (41.0 kB view details)

Uploaded Source

Built Distribution

icas-1.0-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file icas-1.0.tar.gz.

File metadata

  • Download URL: icas-1.0.tar.gz
  • Upload date:
  • Size: 41.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for icas-1.0.tar.gz
Algorithm Hash digest
SHA256 fbe018ce32e1e7768acf20347a9c4c2cca2bc4724dcce16af9641980354b4b95
MD5 107c989fe9805d155522e2aa494aec89
BLAKE2b-256 0ac25a06fcdb0421b7725ed54c0d2eaaaf3f3797e58035ecdf8a43494c281700

See more details on using hashes here.

File details

Details for the file icas-1.0-py3-none-any.whl.

File metadata

  • Download URL: icas-1.0-py3-none-any.whl
  • Upload date:
  • Size: 44.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for icas-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd8142d68df3478fb914b811fef7225d9eaa1f935217b676d5303988aa07f248
MD5 711bea71ed51bb73042c326d497bbd92
BLAKE2b-256 3d8334fd797f4692c1811163be73931323b685a554cdcab4c4ab5e4771bd130c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page