https://github.com/primozgodec/redis-cache-extraction
This repo contains script `makecache.py` that generate predefined cache for Orange-imageanalytics embedders.
https://github.com/primozgodec/redis-cache-extraction
Last synced: about 1 year ago
JSON representation
This repo contains script `makecache.py` that generate predefined cache for Orange-imageanalytics embedders.
- Host: GitHub
- URL: https://github.com/primozgodec/redis-cache-extraction
- Owner: PrimozGodec
- Created: 2018-02-14T11:35:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-15T15:40:53.000Z (over 8 years ago)
- Last Synced: 2025-02-04T15:48:45.665Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# redis-cache-extraction
This repo contains script `makecache.py` that generate predefined cache for
Orange-imageanalytics embedders.
How to build a predefined cache?
1. Place the images to get cached into images directory
2. Run embedders to fill the cache
ORANGE_EMBEDDING_API_URL= python run_embedders.py
3. Retrieve redis database dump:
ssh
POD=$(kubectl get pod | grep redis-redis | awk '{print $1;}')
kubectl cp default/$POD:/bitnami/redis/data/dump.rdb dump.rdb
4. Move dump.rdb to `tmp` directory in this project
5. Run script to generate redis cache
python makecache.py