Skip to main content

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:

  1. motor_detections_submission.csv - Contains motor coordinates (primary output)
  2. motor_detections_detailed.csv - Includes additional detection information
  3. predictions.npy - Raw probability maps
  4. masks.npy - Binary masks derived from predictions
  5. summary.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

  1. 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
  2. Performance Optimization:

    • Use GPU acceleration when available
    • Adjust batch size based on your memory capacity
    • For large datasets, consider processing in chunks
  3. 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

tomo_detect-0.1.3.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

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

tomo_detect-0.1.3-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file tomo_detect-0.1.3.tar.gz.

File metadata

  • Download URL: tomo_detect-0.1.3.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for tomo_detect-0.1.3.tar.gz
Algorithm Hash digest
SHA256 04486bfcc04b408131609721364015d99fd456bb2dc93965d0228d2b06b08888
MD5 b85957abc874a8a0d6c0c81ec3843e02
BLAKE2b-256 67930178b3fb8ab08550f6b6d9ae70684a6e3f179f282c99fc0b65422af5b7ad

See more details on using hashes here.

File details

Details for the file tomo_detect-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tomo_detect-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for tomo_detect-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f4827250847f4e5d0e8e71ffbeacbc64e66385d6620ee9ef5427a1d25b3c032
MD5 1f9ca75ff03e0faf0a16a9cf1783501d
BLAKE2b-256 9fdf55b184dbfee782008f9719a0af34a871c44509ddfcb79249c924d34ae65a

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