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
For more detailed examples, please look at the demo in the Jupyter notebooks within the examples folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vislearnlabpy-0.0.2.1.tar.gz.
File metadata
- Download URL: vislearnlabpy-0.0.2.1.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12f39fdd7f87c6fc7eac6f5a49d05a6e04f1ca7382c6badf68e970abc9f19961
|
|
| MD5 |
51fe695ddc79bcb3d1689365aa9403bb
|
|
| BLAKE2b-256 |
1c8d22527cb545a5a9e9036865830e3717c5b727f50fac9f91cb9bf8816bf7e2
|
File details
Details for the file vislearnlabpy-0.0.2.1-py3-none-any.whl.
File metadata
- Download URL: vislearnlabpy-0.0.2.1-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a88ed51ac65af0ddeb04e5270254fbce002662dc183009dbccad8b1131cb7c32
|
|
| MD5 |
df1ff758471b554f480351f05db11650
|
|
| BLAKE2b-256 |
bfb6729a2b950d237490b5dfe5baac02362df1fa2c021d8fc8abdabb12e31242
|