Supplementary code for our blog on Pre-Trained Image Embeddings with HuggingFace.
You'll need following pre-requisites to run the demo:
- Clone this repo:
git clone [email protected]:fuzzylabs/tech-deep-dive-blogs.git
- Go to the cloned directory:
cd image-embeddings-blog
- Create a new Python virtual environment with Conda, activate it and install required libraries. For Linux/MacOS users:
conda create -y --name demoenv python==3.9.0
conda activate demoenv
pip install -r requirements.txt
When you are finished with this tutorial you exit the Conda environment using:
conda deactivate
The data
directory contains all images required for this tutorial.
Use the embbeddings.ipynb
notebook to follow along with the blog.
The code within zenml-pipeline
can be run using the following steps:
Initialise ZenML:
$ zenml init
Create ZenML server:
$ zenml up
Run the pipeline from the image-embedding-blog
directory:
$ python3 zenml-pipeline/run.py