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

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.10.tar.gz (15.7 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.10-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vislearnlabpy-0.0.1.10.tar.gz
Algorithm Hash digest
SHA256 667117aae6d2a1d3c4bf843ebe8e439be078abbcaeccf62c7c2fb4d59c72966e
MD5 94ccc7f1c134060bde27bc7054c68ceb
BLAKE2b-256 2ab22be54831ca144b693beb3751e5e7ab42d33e9dcaea9ce8442144e4a9eb2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vislearnlabpy-0.0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 62f00c7f1283f3738ca88f7e183586078635606065ae8c93efae9af4f565a5f3
MD5 1bb5e48a0f10f11de91b0804622478a7
BLAKE2b-256 a08dffaea5a1392c737274ff1cf6c16a78cb33b17a33cdc2d09c4405e9a2bae8

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