A CLI tool for detecting motor coordinates in tomography data
Project description
Tomo-Detect
A command-line tool for detecting motor coordinates in tomography data using deep learning models.
Installation
pip install tomo-detect
Usage
Basic usage:
tomo-detect input_path
The input path can be either:
- A .npy file containing tomography data
- A zip file containing multiple tomography files
- A directory containing .npy or .mrc files
Options
tomo-detect --help # Show help message and usage information
tomo-detect input.npy --debug # Enable debug logging
tomo-detect input.zip --test # Run test mode with additional validations
tomo-detect input.npy --output path # Specify custom output directory
tomo-detect input.npy --batch-size 4 # Set custom batch size for inference
tomo-detect input.npy --device cpu # Force CPU inference
Output Files
The tool generates several output files:
motor_detections_submission.csv- Contains motor coordinates (primary output)motor_detections_detailed.csv- Includes additional detection informationpredictions.npy- Raw probability mapsmasks.npy- Binary masks derived from predictionssummary.json- Detection summary and statistics
Example
# Process a single .npy file
tomo-detect sample.npy
# Process multiple files in a zip
tomo-detect samples.zip
# Enable debug mode for detailed logging
tomo-detect sample.npy --debug
Tips and Tricks
-
Input Preparation:
- Ensure input files are properly formatted numpy arrays
- For .mrc files, they will be automatically converted
- Zip files should contain only supported file types
-
Performance Optimization:
- Use GPU acceleration when available
- Adjust batch size based on your memory capacity
- For large datasets, consider processing in chunks
-
Troubleshooting:
- Enable --debug mode for detailed logging
- Check system requirements before running
- Verify input file formats and dimensions
System Requirements
- Python 3.8 or higher
- CUDA-capable GPU (optional but recommended)
- Minimum 8GB RAM
- 2GB disk space for models
License
MIT License
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
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 tomo_detect-0.1.4.tar.gz.
File metadata
- Download URL: tomo_detect-0.1.4.tar.gz
- Upload date:
- Size: 32.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5782a89a85d509c480bc5eccd6cebdec5388af80ed2833d87712d78fedebd740
|
|
| MD5 |
616c43811c93c2b955a40cba904dfe5b
|
|
| BLAKE2b-256 |
008d0877b500e42be66d23cf0822cddd5dc9a31dc99642a1d53e8e29035c6bee
|
File details
Details for the file tomo_detect-0.1.4-py3-none-any.whl.
File metadata
- Download URL: tomo_detect-0.1.4-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a32ff3a8164b1ad772d5ad4ae90b4c9cd320ad8f12b8e4ec6e5811502f0d51d
|
|
| MD5 |
4fa17880a513b66bd310c3c79d3e0fed
|
|
| BLAKE2b-256 |
7ccbcf7e9e2e72cf2a9c68f7ac5958531d4bef0d6abaddb7e916360928c3a8f3
|