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
SetPREPROCESSING CUDA: Truein 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 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlgiddetect-0.2.2.tar.gz.
File metadata
- Download URL: mlgiddetect-0.2.2.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55197c89af5c0988f442d8037a4ff769bb28ba6494759a49d8fa38d1314e4acf
|
|
| MD5 |
30257e039a7eebbc9e76a8721169e655
|
|
| BLAKE2b-256 |
bba92aa8c2bd011a0564bedb3b67a7c0495433b6d73423cbfb8a9156c2bd095c
|
File details
Details for the file mlgiddetect-0.2.2-py3-none-any.whl.
File metadata
- Download URL: mlgiddetect-0.2.2-py3-none-any.whl
- Upload date:
- Size: 40.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3f468d7e0858e59f403bf99362027542fee78be603ec0126830834bff6f8dbf
|
|
| MD5 |
aba987eaf83b98ebac20265300f79789
|
|
| BLAKE2b-256 |
d6251264e7f7c57f6c8ccee9f6f404df22d0cbee581705732b67876da034c119
|