-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from InnopolisUni/demo_sent
Fixed errors and improved Dockerfiles
- Loading branch information
Showing
9 changed files
with
63 additions
and
57 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 |
---|---|---|
@@ -1,28 +1,23 @@ | ||
FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime | ||
|
||
ENV UI_TITLE="Фреймворк для Медицины" | ||
ENV WANDB_DISABLED="true" | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install ffmpeg libsm6 libxext6 -y | ||
RUN apt-get install curl -y | ||
RUN pip3 install --upgrade pip | ||
# works with 1.2.2 | ||
RUN export PYTHONPATH=. && export PATH=$PATH | ||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install ffmpeg libsm6 libxext6 curl iotop -y \ | ||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ | ||
RUN pip3 install --upgrade pip pyopenssl cryptography | ||
RUN /bin/bash -c 'curl -sSL https://install.python-poetry.org | python - --version 1.3.0' | ||
|
||
COPY . /code | ||
RUN rm -r /code/config/experiments/* | ||
COPY ./config/experiments/demo_prom /code/config/experiments/ | ||
COPY ./config/experiments/demo_med /code/config/experiments/ | ||
WORKDIR /code | ||
|
||
RUN /bin/bash -c '/root/.local/bin/poetry config virtualenvs.create false \ | ||
&& /root/.local/bin/poetry lock --no-update && /root/.local/bin/poetry install --no-interaction --no-ansi' | ||
&& /root/.local/bin/poetry lock --no-update && /root/.local/bin/poetry install --no-interaction --no-ansi --no-cache' | ||
|
||
WORKDIR /code/dui | ||
|
||
RUN python3 -m pip install -U pyopenssl cryptography | ||
RUN apt-get -y install iotop | ||
RUN export PYTHONPATH=. | ||
RUN export PATH=$PATH | ||
|
||
ENV UI_TITLE="Фреймворк для Медицины" | ||
ENV WANDB_DISABLED="true" | ||
ENTRYPOINT PYTHONUNBUFFERED=1 python3 app.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,23 @@ | ||
FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime | ||
|
||
ENV UI_TITLE="Фреймворк для Новых Материалов" | ||
ENV WANDB_DISABLED="true" | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install ffmpeg libsm6 libxext6 -y | ||
RUN apt-get install curl -y | ||
RUN pip3 install --upgrade pip | ||
# works with 1.2.2 | ||
RUN export PYTHONPATH=. && export PATH=$PATH | ||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install ffmpeg libsm6 libxext6 curl iotop -y \ | ||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ | ||
RUN pip3 install --upgrade pip pyopenssl cryptography | ||
RUN /bin/bash -c 'curl -sSL https://install.python-poetry.org | python - --version 1.3.0' | ||
|
||
COPY . /code | ||
RUN rm -r /code/config/experiments/* | ||
COPY ./config/experiments/demo_prom /code/config/experiments/ | ||
COPY ./config/experiments/demo_nm /code/config/experiments/ | ||
WORKDIR /code | ||
|
||
RUN /bin/bash -c '/root/.local/bin/poetry config virtualenvs.create false \ | ||
&& /root/.local/bin/poetry lock --no-update && /root/.local/bin/poetry install --no-interaction --no-ansi' | ||
&& /root/.local/bin/poetry lock --no-update && /root/.local/bin/poetry install --no-interaction --no-ansi --no-cache' | ||
|
||
WORKDIR /code/dui | ||
|
||
RUN python3 -m pip install -U pyopenssl cryptography | ||
RUN apt-get -y install iotop | ||
RUN export PYTHONPATH=. | ||
RUN export PATH=$PATH | ||
|
||
ENV UI_TITLE="Фреймворк для Новых Материалов" | ||
ENV WANDB_DISABLED="true" | ||
ENTRYPOINT PYTHONUNBUFFERED=1 python3 app.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
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,4 @@ | ||
_target_: ultralytics.YOLO | ||
description: yolov5 by ultralytics | ||
model: yolov5xu | ||
name: yolov5 |
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
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