-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: change engine classe in order to use it with directory * feat: create a light Dockerfile image * feat: Engine refactor for ETL * make style * refactor * revert ETL part * engine.py from main * update-new-datamodel is the source --------- Co-authored-by: Ronan <ronan_2@hotmail.com> Co-authored-by: Ronan <RonanMorgan@users.noreply.github.com>
- Loading branch information
1 parent
5f17e88
commit 3d20aab
Showing
4 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.git | ||
*.pyc | ||
__pycache__ | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM python:3.8.16-slim | ||
|
||
# set environment variables | ||
ENV PATH="/usr/local/bin:$PATH" | ||
ENV LANG="C.UTF-8" | ||
ENV PYTHONUNBUFFERED=1 | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
# set work directory | ||
WORKDIR /usr/src/app | ||
|
||
COPY ./setup.py /tmp/setup.py | ||
|
||
# install git | ||
RUN apt-get update && apt-get install git -y | ||
|
||
RUN apt-get install ffmpeg libsm6 libxext6 -y\ | ||
&& pip install --upgrade --no-cache-dir pip setuptools wheel | ||
|
||
RUN pip install --no-cache-dir torch==2.3.1+cpu torchvision==0.18.1+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
|
||
COPY ./src/requirements-light.txt /tmp/requirements.txt | ||
RUN pip install --default-timeout=500 -r /tmp/requirements.txt \ | ||
&& pip cache purge \ | ||
&& rm -rf /root/.cache/pip | ||
|
||
RUN pip install --no-cache-dir git+https://github.com/pyronear/pyro-api.git@92b9e28fe4b329aa28c7833b28f3bc89ab1b756c#subdirectory=client | ||
|
||
COPY ./pyroengine /tmp/pyroengine | ||
|
||
RUN pip install -e /tmp/. \ | ||
&& pip cache purge \ | ||
&& rm -rf /root/.cache/pip | ||
|
||
COPY ./src/run.py /usr/src/app/run.py | ||
COPY ./src/control_reolink_cam.py /usr/src/app/control_reolink_cam.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
python-dotenv==1.0.1 ; python_version >= "3.8" and python_version < "4.0" | ||
coloredlogs==15.0.1 ; python_version >= "3.8" and python_version < "4.0" | ||
flatbuffers==24.3.25 ; python_version >= "3.8" and python_version < "4.0" | ||
humanfriendly==10.0 ; python_version >= "3.8" and python_version < "4.0" | ||
onnx==1.17.0 ; python_version >= "3.8" and python_version < "4.0" | ||
onnxruntime==1.19.2 ; python_version >= "3.8" and python_version < "4.0" | ||
protobuf==5.28.2 ; python_version >= "3.8" and python_version < "4.0" | ||
|
||
huggingface-hub==0.24.6 ; python_version >= "3.8" and python_version < "4" | ||
ultralytics==8.2.50 ; python_version >= "3.8" and python_version < "4.0" |