Skip to content

Commit

Permalink
Add model to repo using git lfs
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Nov 10, 2023
1 parent 8eaca96 commit e256b8c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
backend/src/weights/model.pth filter=lfs diff=lfs merge=lfs -text
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ dev-dist/
env/
.env
__pycache__
weights/
logs/
temp/
*openrc.sh
.terraform*
*.secrets*
version.txt
*.crt
*.pem
2 changes: 0 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions backend/src/weights/model.pth
Git LFS file not shown

0 comments on commit e256b8c

Please sign in to comment.