Skip to main content

Visual Learning Lab utility files and pipelines

Project description

vllpy

This is a package with common utility functions, files and pipelines for the Visual Learning Lab. Creating a conda environment is recommended but optional. This package uses python>=3.11.

conda create -n vislearnlabpy python=3.12
conda activate vislearnlabpy

Then, activate the environment and simply install vislearnlabpy via running the following pip command in your terminal. You will also have to install PyTorch and CLIP manually.

pip install git+https://github.com/openai/CLIP.git
pip install --upgrade vislearnlabpy

You will need the right version of PyTorch as well, that may be installed by default with CLIP. To install PyTorch on the Tversky server, run:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Here is as an example of how to generate npy embedding files from a list of images whose paths are defined in a CSV file

python embedding_generator.py --input_csv examples/input/inputs.csv --output_path examples/output --output_type npy --overwrite

For more detailed examples, please look at the demo in the Jupyter notebook within the examples folder.

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

vislearnlabpy-0.0.1.12.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vislearnlabpy-0.0.1.12-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file vislearnlabpy-0.0.1.12.tar.gz.

File metadata

  • Download URL: vislearnlabpy-0.0.1.12.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for vislearnlabpy-0.0.1.12.tar.gz
Algorithm Hash digest
SHA256 48df52d2bcdac03906f1810b731d92376fb2f1de59386d2fb13a631595e78b55
MD5 0ed9f47628b1c6c1e8531379b67f3c8c
BLAKE2b-256 a5f1d6c8eda0d14ca4782c132ecc1acc6e04d38c6fec78a4037be4f4e5649111

See more details on using hashes here.

File details

Details for the file vislearnlabpy-0.0.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for vislearnlabpy-0.0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0377483c469cb70ab8ce77aafc73f6e0585a09bb538061dd66b664be72d94458
MD5 f898ac32dce3e0f9993c0d9a59cbff5d
BLAKE2b-256 24ccdd0de27b355f733a1ef8722b09135b1b92368542cf3cc2e5c9bf0c086e97

See more details on using hashes here.

Supported by

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