Skip to main content

Inference package for GIWAXS peak detection.

Project description

mlgidDETECT

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 with pip (not recommended)

  • Move into directory: cd mlgidDETECT
  • Install package, recommended with option -e to install in editable mode pip install -e ./

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

GPU support with CUDA 12.X

If a GPU is available, it is automatically used for inference. To use CUDA for preprocessing, use the install instructions for GPU support.

Project details


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.1.tar.gz (28.4 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.1-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mlgiddetect-0.2.1.tar.gz
Algorithm Hash digest
SHA256 362564a0792faac5ee6ed6880b2dce4ae31433d597c904d3544c0c60f311dc07
MD5 567ba011b04c8c2cbd721fe766e0201e
BLAKE2b-256 c273f2660b0192c11a977f60602aeee1422c3ec649e4b5abd960a63bc5fc556d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mlgiddetect-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0677b14bc1f52e83e029cb1cbe29c4e33e30b0e71b01d36ec25c9890d41fa38
MD5 7891af945a6a0b4ec762aec38dc32532
BLAKE2b-256 cfd264ba585fabaf716397b9ef2b66aadb0ad6cf3fd187d40cfbf206cfb8a23f

See more details on using hashes here.

Supported by

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