Skip to content

inaturalist/inatNLS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testing NL search with elastic and iNat data and CLIP

  1. 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
  2. install elasticsearch and run it. I'm using docker: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
  3. make a python venv and activate it
  4. pip install -r requirements.txt
  5. copy config.yml.sample to config.yml and edit it
  6. flask reindex # this will take a while, mostly due to photo downloading
  7. flask run
  8. visit localhost:5001 in your browser

Docker version

  1. build docker image docker build . -t inaturalist/inatnls:latest

  2. run ES and Flask with docker compose docker compose up -d

  3. copy sample into the docker container docker cp complete_1k_obs_sample.csv inatnls:/app/complete_1k_obs_sample.csv

  4. index sample data docker exec -ti inatnls flask reindex complete_1k_obs_sample.csv

  5. visit localhost:5000 in your browser

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published