Skip to main content

Distinguish behavioral clusters Toolbox

Project description

CASTLE

PyPI version Open In Colab

CASTLE integrates the strengths of visual foundation models trained on large datasets possess open-world visual concepts, including Segment Anything (SA), DeAOT, and DINOv2, for one-shot image segmentation and unsupervised visual feature extraction. Furthermore, CASTLE employs unsupervised multi-stage and/or multi-layer UMAP clustering algorithms to distinguish behavioral clusters with unique temporal variability.

Install

Step 1 Install CASTLE Core Function

pip install castle-ai

Step 2 Install xFormer and GPU Version of UMAP (Optional for Speed Up)

For CUDA 12 Users

pip install -U xformers --index-url https://download.pytorch.org/whl/cu121
pip install -U cudf-cu12 cuml-cu12 --extra-index-url=https://pypi.nvidia.com 

For CUDA 11 Users

pip install -U xformers --index-url https://download.pytorch.org/whl/cu118
pip install -U cudf-cu11 cuml-cu11 --extra-index-url=https://pypi.nvidia.com 

Step 3 Download Web UI

git clone https://github.com/CASTLE-ai/castle-ai.git

Step 4 Download Pretrained Model

for Linux/Mac user

cd castle-ai/
sh download_ckpt.sh

for Windowns user

cd castle-ai/
mkdir ckpt
# Then, download the models from the web and put them into the ckpt folder.

Run

python app.py

Reference

We would like to express our gratitude for the assistance received from the following projects during the development of this project.

Segment Anything

DeAOT & Segment-and-Track-Anything

DINOv2

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

castle_ai-0.0.10.tar.gz (123.5 kB view details)

Uploaded Source

Built Distribution

castle_ai-0.0.10-py2.py3-none-any.whl (162.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file castle_ai-0.0.10.tar.gz.

File metadata

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

File hashes

Hashes for castle_ai-0.0.10.tar.gz
Algorithm Hash digest
SHA256 ae320230091cb86e8ed5c10ecad57da1b4438686c39e23413230144326d85f57
MD5 ce50fc1995a624433a611b3fc9323f6c
BLAKE2b-256 f5284edc71947c8ba066203007647262b263ba760e61a486f6d47b6289ea175e

See more details on using hashes here.

File details

Details for the file castle_ai-0.0.10-py2.py3-none-any.whl.

File metadata

  • Download URL: castle_ai-0.0.10-py2.py3-none-any.whl
  • Upload date:
  • Size: 162.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for castle_ai-0.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c2b5e440203bff39fcd532c4539c409e03f3403039c5eedd2fad3f55900ec8dc
MD5 a98fa1f5f0832cd041be9fa98208794f
BLAKE2b-256 c43862b75a07b72a0620266b9be93244321434dae0dac555add8e4d6288d9eab

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