diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..821d7fe30 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +backend/src/weights/model.pth filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore index 79b631171..a7fd6a73c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,12 +6,8 @@ dev-dist/ env/ .env __pycache__ -weights/ logs/ -temp/ *openrc.sh -.terraform* *.secrets* -version.txt *.crt *.pem \ No newline at end of file diff --git a/backend/Dockerfile b/backend/Dockerfile index d99228156..a458e0a3a 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -23,10 +23,8 @@ RUN pip --default-timeout=300 install --upgrade pip \ ARG VERSION ARG MODEL="EffB7_2023-03-06_08" ENV SSL_CERT_FILE=$CACERT_LOCATION -RUN curl -o model.pth https://storage.gra.cloud.ovh.net/v1/AUTH_df731a99a3264215b973b3dee70a57af/basegun-public/models/${MODEL}/${MODEL}.pth COPY src/ src/ RUN mkdir -p src/weights \ - && mv model.pth src/weights/model.pth \ && echo '{"app": "'${VERSION}'", "model": "'${MODEL}'"}' > versions.json FROM base as dev diff --git a/backend/src/weights/model.pth b/backend/src/weights/model.pth new file mode 100644 index 000000000..8d147b553 --- /dev/null +++ b/backend/src/weights/model.pth @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4232b8d4b4d816fbb9478a9ff660d4fcc6d6098d3a10d964dc1f2f9c8d3d4872 +size 257321442