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.11.tar.gz (21.9 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.11-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vislearnlabpy-0.0.1.11.tar.gz
  • Upload date:
  • Size: 21.9 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.11.tar.gz
Algorithm Hash digest
SHA256 b6fa73e7bc1727e6e92d0a7e3ae14bb6d080b5ec8a8493f97f70cbc6907cd0a5
MD5 9c0287577b0e65eeb9b0a39080f995a8
BLAKE2b-256 1a2ac6ce12357017158dbabd95c006309ca16ad0e27aad06f627de7b4ba2c26e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vislearnlabpy-0.0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 1e4201c74d5b7471081fd1fbc79732f14014e77b8a2f5613d84bc5869a87b2b3
MD5 cc9c0a460d0312f382fb6890d3387344
BLAKE2b-256 f8cfe92d8af8b2dfe7195b7d041c6e3f9eb63ec66e74ac20c71b01547eef2d6f

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