-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
124 additions
and
11 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,40 @@ | ||
# For NVIDIA acceleration make sure to | ||
# enable the NVIDIA container toolkit | ||
# ubuntu/jammy is the default image, | ||
# nvidia/cuda is the old nvidia image | ||
# pytorch the newer pytorch image which | ||
# might conflict with a tensorflow Install | ||
# if acceleration is desired | ||
|
||
#FROM ubuntu/jammy | ||
#FROM nvidia/cuda:12.1.0-cudnn8-runtime-ubuntu22.04 | ||
FROM nvidia/cuda:12.6.3-cudnn-runtime-ubuntu22.04 | ||
#FROM pytorch/pytorch:2.3.1-cuda12.1-cudnn8-devel | ||
|
||
# copy package content | ||
COPY environment_kraken.yml . | ||
|
||
# Install base utilities | ||
RUN apt-get update | ||
RUN apt-get install -y build-essential wget software-properties-common git | ||
|
||
# install libraries | ||
RUN apt-get install -y libgl1 libavcodec-dev libavformat-dev libswscale-dev \ | ||
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev \ | ||
libgtk2.0-dev libgtk-3-dev libpng-dev libjpeg-dev \ | ||
libopenexr-dev libtiff-dev libwebp-dev | ||
|
||
# install miniconda | ||
ENV CONDA_DIR /opt/conda | ||
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh | ||
RUN /bin/bash ~/miniconda.sh -b -p /opt/conda | ||
|
||
# recreate and activate the environment | ||
# suppress TF log level output | ||
RUN /opt/conda/bin/conda env create -f environment_kraken.yml | ||
RUN echo "source activate weahtr" > ~/.bashrc | ||
ENV PATH $CONDA_DIR/bin:$PATH | ||
|
||
# Set the working directory on start | ||
# assumes that people follow the directions! | ||
WORKDIR /data |
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,54 @@ | ||
name: weahtr | ||
channels: | ||
- conda-forge # to be OSS stay away from default | ||
|
||
# Dependencies taken from the kraken repo: | ||
# https://github.com/mittagessen/kraken/blob/main/environment_cuda.yml | ||
|
||
dependencies: | ||
# General python settings | ||
- python>=3.9 | ||
- wheel | ||
- pip | ||
- python-bidi~=0.6.0 | ||
- lxml | ||
- regex | ||
- requests | ||
- pyyaml | ||
- click>=8.1 | ||
- numpy~=1.23 | ||
- pillow>=9.2.0 | ||
- scipy~=1.13.0 | ||
- jinja2~=3.0 | ||
- conda-forge::torchvision>=0.5.0 | ||
- conda-forge::pytorch~=2.4.0 | ||
- cudatoolkit>=9.2 | ||
- jsonschema | ||
- scikit-learn~=1.2.1 | ||
- scikit-image~=0.24.0 | ||
- shapely>=2.0.6 | ||
- pyvips | ||
- imagemagick>=7.1.0 | ||
- pyarrow | ||
- importlib-resources>=1.3.0 | ||
- conda-forge::lightning~=2.4.0 | ||
- conda-forge::torchmetrics>=1.1.0 | ||
- conda-forge::threadpoolctl~=3.5.0 | ||
- pip | ||
- albumentations | ||
- rich | ||
- setuptools>=36.6.0,<70.0.0 | ||
- transformers | ||
- jiwer | ||
- datasets | ||
- tiktoken | ||
- opencv | ||
- pandas | ||
- matplotlib | ||
- pytesseract | ||
- tesseract | ||
- pip: | ||
- coremltools~=8.1 | ||
- htrmopo | ||
- platformdirs | ||
- kraken |