зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 21:16:06 +02:00
* colors expression by KMean algorithm * object detection by imageai * object detection by cvlib * add encapsulation of object detection * remove encapsulation of objdetect v0 * objects expression to dict * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added imageai to requirements * add objects to dictionary * update for AnalysisMethod baseline * add objects dection support explore_analysis display * extend python version of misinf to allow imageai * account for older python * use global functionality for dict to csv convert * update for docker build * docker will build now but ipywidgets still not working * test code * include test data folder in repo * add some sample images * load cvs labels to dict * add test data * retrigger checks * add map to human coding * get orders from dict, missing dep * add module to test accuracy * retrigger checks * retrigger checks * now removing imageai * removed imageai * move labelmanager to analyse * multiple faces in mydict * fix pre-commit issues * map mydict * hide imageai * objects default using cvlib, isolate and disable imageai * correct python version * refactor faces tests * refactor objects tests * sonarcloud issues * refactor utils tests * address code smells * update readme * update notebook without imageai Co-authored-by: Ma Xianghe <825074348@qq.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: iulusoy <inga.ulusoy@uni-heidelberg.de>
33 строки
1022 B
Docker
33 строки
1022 B
Docker
FROM jupyter/base-notebook
|
|
|
|
# Install system dependencies for computer vision packages
|
|
USER root
|
|
RUN apt update && apt install -y build-essential libgl1 libglib2.0-0 libsm6 libxrender1 libxext6
|
|
USER $NB_USER
|
|
|
|
# Copy the repository into the container
|
|
COPY --chown=${NB_UID} . /opt/misinformation
|
|
|
|
# Install the Python package
|
|
RUN python -m pip install /opt/misinformation
|
|
|
|
# Install additional dependencies for running the notebooks
|
|
RUN python -m pip install -r /opt/misinformation/requirements.txt
|
|
|
|
# Make JupyterLab the default for this application
|
|
ENV JUPYTER_ENABLE_LAB=yes
|
|
|
|
# Export where the data is located
|
|
ENV XDG_DATA_HOME=/opt/misinformation/data
|
|
|
|
# Copy notebooks into the home directory
|
|
RUN rm -rf $HOME/work
|
|
RUN cp /opt/misinformation/notebooks/*.ipynb $HOME
|
|
|
|
ARG GOOGLE_CREDS
|
|
ENV GOOGLE_APPLICATION_CREDENTIALS=credentials.json
|
|
RUN echo ${GOOGLE_CREDS} > $GOOGLE_APPLICATION_CREDENTIALS
|
|
# Bundle the pre-built models (that are downloaded on demand) into the
|
|
# Docker image.
|
|
RUN misinformation_prefetch_models
|