Skip to main content

mlgidDETECT

Python version

This package is included in the mlgidBASE package and can be used as part of the mlgid pipeline.

Clone repository

  • Clone with ssh (recommended) git clone git@github.com:mlgid-project/mlgidDETECT.git
  • If it fails, use https: git clone https://github.com/mlgid-project/mlgidDETECT.git

Installation

Install Conda environment (recommended)

  • Install miniconda https://docs.anaconda.com/miniconda/#quick-command-line-install

  • Move into directory: cd mlgidDETECT

  • (Option 1) Create environment with CPU and optional GPU inference
    cd setup
    conda env create -f conda_cpu.yaml
    conda activate mlgiddetect-cpu\

  • (Option 2) Create environment with with additional GPU preprocessing
    cd setup
    python setup_cuda.py
    conda activate mlgiddetect-gpu
    conda env config vars set LD_LIBRARY_PATH=${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}
    conda deactivate
    conda activate mlgiddetect-gpu
    Set PREPROCESSING CUDA: True in the config file

Install package with pip

  • Install package
    pip install mlgiddetect

Usage

With a PyGIDDataset

python main.py --input_dataset=/home/testuser/dataset.h5

With a single image

python main.py --image_path=./w4_mapbbr32.tif

With a config file

python main.py --config_file=./faster_rcnn.yaml

Using the PyPI package

Use mlgidDETECT_tutorial.ipynb to get started.

GPU support

The pip package depends on the CPU build of ONNX Runtime, which works on every machine. For GPU inference, replace it with the GPU build (never install both at the same time, they share the same onnxruntime module and overwrite each other):

pip uninstall -y onnxruntime
pip install onnxruntime-gpu

Note that current onnxruntime-gpu wheels require the CUDA 13 runtime (libcudart.so.13); on machines with a CUDA 12 driver, install an onnxruntime-gpu version built for CUDA 12 instead. If the GPU build is installed and CUDA is available, it is automatically used for inference. To use CUDA for preprocessing, use the install instructions for GPU support.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlgiddetect-0.2.5.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlgiddetect-0.2.5-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

Details for the file mlgiddetect-0.2.5.tar.gz.

File metadata

  • Download URL: mlgiddetect-0.2.5.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for mlgiddetect-0.2.5.tar.gz
Algorithm Hash digest
SHA256 bfaa7c9f07cb34e7b2c89c3125671ea1971e6ecfccf199a5803622f3a017e325
MD5 09ee41715c2d42c11396e8802bcd1c44
BLAKE2b-256 1b32a935a19310a5230e1e34b2ff27e07c5bf0ca25c61bbc8ee5c032900c6317

See more details on using hashes here.

File details

Details for the file mlgiddetect-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: mlgiddetect-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 42.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for mlgiddetect-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 24b14854ad0bf3cff83996a138d6ce9a635ff1c62589b8f87527f70576db05db
MD5 9a2bdf8b1ecb5946c6a204c149370a35
BLAKE2b-256 4f2c4897c8b9ec50633da1374b7b144e56c0ebd56e75f83247e45840dddc8343

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.8

2 files

0.2.7

2 files

0.2.6

2 files

This release

0.2.5 This release

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page