Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.86 KB

README.md

File metadata and controls

61 lines (43 loc) · 1.86 KB

Multi-Modal Visual Art RecSys Services

Different Multi-modal RecSys engines will provide a series of recommendations based on the user preferences.

Install

Python >= 3.5 and pip3 are required:

sudo apt install python3 python3-pip

Install Python dependencies:

pip3 install -r requirements.txt

Download and unzip services data:

wget https://project-banana.eu/va-recsys/vadata.zip

unzip -q vadata.zip

Download the trained painting_CLIP, unzip it and place the extracted clip folder in the /data folder:

$ wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1PJ1kFGsg6U-FzJOOAOUm8Pq1rHEkxNh_' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1PJ1kFGsg6U-FzJOOAOUm8Pq1rHEkxNh_" -O clip.zip && rm -rf /tmp/cookies.txt

$ unzip -q clip.zip

Download the trained painting_BLIP, unzip it and place the extracted blip folder in the /data folder:

$ wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1pPQ16MRsab6b_Tvn4nMlcqdhw64-YjfD' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1pPQ16MRsab6b_Tvn4nMlcqdhw64-YjfD" -O blip.zip && rm -rf /tmp/cookies.txt

$ unzip -q blip.zip

Running the services

bash start.sh

Stopping the services

bash stop.sh

Restarting the services

bash restart.sh

Monitoring the services

bash status.sh

Note: You should run all services through a WSGI application in production, for better performance.