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. This package uses python>=3.11.

It is recommended you create a conda environment to start using this package but this step is optional. To do so, run the commands below:

conda create -n vislearnlabpy python=3.12
conda activate vislearnlabpy

Then, activate the environment and simply install vislearnlabpy and CLIP by running the commands below in your terminal.

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

You may also have to install PyTorch manually, ensuring that you have the right version but the right version may also be installed by default with CLIP. To install the right version of 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 a CSV file with embeddings from a list of images in a directory. You can also use this to generate npy files and doc files by changing the output type in the command below, and generate the embeddings from a CSV file instead by using input_file instead of input_dir

python embedding_generator.py --input_dir examples/input --output_path examples/output --output_type csv --overwrite --model_name clip

For more detailed examples, please look at the demo in the Jupyter notebooks 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.4.1.tar.gz (51.0 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.4.1-py3-none-any.whl (58.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vislearnlabpy-0.0.4.1.tar.gz
  • Upload date:
  • Size: 51.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for vislearnlabpy-0.0.4.1.tar.gz
Algorithm Hash digest
SHA256 9f2bf1f876adb0362e4970d48fb0274d14d58554999e747288b1e7d3a3885f60
MD5 d650292a0ef1e0901584ba6f173f4a83
BLAKE2b-256 a8a860d68fb9e8869d04019200fc0b54b52e31289ea78d379f8bab9297b5cbf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vislearnlabpy-0.0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a1a17debfec53f82f64d0df860337806461197cdf8b263f7b80e1d32fba8d61
MD5 3d3e7f0a8fe045794f22f8154fc1c3d8
BLAKE2b-256 ff609d33d4cf02c6f22b7fcac496cc8cd4c485251336189b9f5b897f59b38bd6

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