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
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.1.13.tar.gz.
File metadata
- Download URL: vislearnlabpy-0.0.1.13.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6136e45fd780ab951ef2c0cc7c7132f20280075022df496c527b9ecd350c6735
|
|
| MD5 |
519e31e672f2f053788cf80b1f89b8a4
|
|
| BLAKE2b-256 |
11602e7daee5fe5219d4a97e410536c3f3a6282d637e154f74a7856e8c3a4769
|
File details
Details for the file vislearnlabpy-0.0.1.13-py3-none-any.whl.
File metadata
- Download URL: vislearnlabpy-0.0.1.13-py3-none-any.whl
- Upload date:
- Size: 25.7 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 |
67780e9ac92bda56a42e841a903b86353d5eecde0f8f85706979858ef0107adb
|
|
| MD5 |
16d64f04c6c9d6926e6adddba3dea614
|
|
| BLAKE2b-256 |
790cac5d1e50b76d604e0a518ddc60a30885cd96d35ab2bc97e527072ab8babc
|