Skip to content

Commit

Permalink
Start up clip embedding service
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Dec 6, 2023
1 parent 1fdaf9b commit c50f3dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend-gpu/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if [[ "$(uname -m)" == "aarch64"* ]]; then
fi
export OPENBLAS_NUM_THREADS=1
export OPENBLAS_MAIN_FREE=1

mkdir -p /logs
python manage.py showmigrations | tee /logs/show_migrate.log
python manage.py migrate | tee /logs/command_migrate.log
Expand All @@ -16,6 +17,7 @@ python manage.py collectstatic --no-input
python image_similarity/main.py 2>&1 | tee /logs/image_similarity.log &
python service/thumbnail/main.py 2>&1 | tee /logs/thumbnail.log &
python service/face_recognition/main.py 2>&1 | tee /logs/face_recognition.log &
python service/clip_embeddings/main.py 2>&1 | tee /logs/clip_embeddings.log &
python manage.py clear_cache
python manage.py build_similarity_index 2>&1 | tee /logs/command_build_similarity_index.log

Expand Down
1 change: 1 addition & 0 deletions backend/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ python manage.py collectstatic --no-input
python image_similarity/main.py 2>&1 | tee /logs/image_similarity.log &
python service/thumbnail/main.py 2>&1 | tee /logs/thumbnail.log &
python service/face_recognition/main.py 2>&1 | tee /logs/face_recognition.log &
python service/clip_embeddings/main.py 2>&1 | tee /logs/clip_embeddings.log &
python manage.py clear_cache
python manage.py build_similarity_index 2>&1 | tee /logs/command_build_similarity_index.log

Expand Down

0 comments on commit c50f3dd

Please sign in to comment.