Skip to content

Add conda/mamba environment files for easier installation#431

Open
shanto12 wants to merge 3 commits intodeepdoctection:masterfrom
shanto12:add-conda-environment-files
Open

Add conda/mamba environment files for easier installation#431
shanto12 wants to merge 3 commits intodeepdoctection:masterfrom
shanto12:add-conda-environment-files

Conversation

@shanto12
Copy link
Copy Markdown

Summary

This PR adds conda/mamba environment files to make it easier for users to set up deepdoctection.

Motivation

Addresses issue #155 - Users have requested conda/mamba environment files to simplify the installation process, especially for managing complex dependencies like PyTorch and TensorFlow.

Changes

Added three environment files:

  1. environment.yml - Base environment with core dependencies (without DL framework)
  2. environment-pytorch.yml - Full environment with PyTorch backend and CUDA support
  3. environment-tensorflow.yml - Full environment with TensorFlow backend

Features

  • Uses conda-forge channel for faster binary installs of scientific packages
  • Includes proper channel prioritization (pytorch, nvidia, conda-forge, defaults)
  • All dependencies from setup.py are included
  • Clear usage instructions in file comments
  • Support for Python 3.9-3.12

Usage

# Base environment
conda env create -f environment.yml
conda activate deepdoctection
pip install deepdoctection

# PyTorch environment
conda env create -f environment-pytorch.yml
conda activate deepdoctection-pytorch
pip install deepdoctection[pt]

# TensorFlow environment
conda env create -f environment-tensorflow.yml
conda activate deepdoctection-tensorflow
pip install deepdoctection[tf]

Resolves #155

Added conda/mamba environment configuration file for deepdoctection.

This addresses issue deepdoctection#155 by providing an environment.yml file that:
- Uses conda-forge channel for faster binary installs of core scientific packages
- Includes all core dependencies from setup.py dist_deps
- Includes additional_deps for extended functionality
- Uses pip section for packages not available on conda-forge

Resolves deepdoctection#155
This YAML file sets up a Conda/Mamba environment for deepdoctection with PyTorch, including necessary dependencies for deep learning.
This YAML file sets up a Conda/Mamba environment for deepdoctection with TensorFlow, specifying dependencies for deep learning and related tools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a conda/mamba environment file

1 participant