- download a mediapipe face detector model from google: https://developers.google.com/mediapipe/solutions/vision/face_detector#models - I'm using the BlazeFace (short-range) since that's the only model available at the time of this writing
- install elasticsearch and run it. I'm using docker: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
- make a python venv and activate it
pip install -r requirements.txt
- copy
config.yml.sample
toconfig.yml
and edit it flask reindex
# this will take a while, mostly due to photo downloadingflask run
- visit localhost:5001 in your browser
-
build docker image
docker build . -t inaturalist/inatnls:latest
-
run ES and Flask with docker compose
docker compose up -d
-
copy sample into the docker container
docker cp complete_1k_obs_sample.csv inatnls:/app/complete_1k_obs_sample.csv
-
index sample data
docker exec -ti inatnls flask reindex complete_1k_obs_sample.csv
-
visit
localhost:5000
in your browser