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.12.

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.7.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.7-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vislearnlabpy-0.0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 5843d93456f7ca449b468409e9dbb9b7abf68f6ed94a43db4665cc3e86f2760d
MD5 e43e2994b6801d1d4f567c5b8c176aff
BLAKE2b-256 41339e15fb83267d76d8c6cdbf062ac3e9da20de9b0d794cce0d26bd337bfbcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vislearnlabpy-0.0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 32c4e6773ae8c6a1bbdc5b20cee6d0175444b69fc8d85a84310526a7a80cf56b
MD5 0433a24e4269beba3753cfdfd198e8cc
BLAKE2b-256 6c763f5e72ee71c1f279f47954251a027cf65bb22369642e48b056e4ce10d8d4

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