Skip to main content

YOLO-based model for atom and bond detection in molecular images.

Project description

ABD-model: Atom and Bond Detection Model

This repository contains a deep learning-based model designed for detecting atoms and bonds in molecular images. It can be used for various applications in molecular chemistry and image analysis.

Overview

The ABD-model is a YOLO-based deep learning model designed to detect atoms (e.g., C, O, H, N) and bond types (single, double, triple) in molecular structure images. The model can extract useful data from 2D molecular representations, aiding in further computational chemistry analysis.

Features

  • Atom Detection: Detects atoms like Carbon (C), Oxygen (O), Nitrogen (N), and Hydrogen (H) in molecular images.
  • Bond Detection: Identifies single, double, and triple bonds between atoms.
  • Versatility: Works with a wide variety of molecular structure images.
  • YOLO-based: Uses a YOLO (You Only Look Once) model for fast and accurate detection of atoms and bonds.
  • Open-source: Easy to integrate into your own projects and customize.

Requirements

To run this model, you need to install the following dependencies:

  • Python 3.x
  • PyTorch
  • OpenCV (for image processing)
  • NumPy
  • Any other libraries listed in requirements.txt

To install the dependencies, run:

pip install -r requirements.txt

Installation

  1. Clone this repository:

    git clone https://github.com/Safi-ullah-majid/ABD-model.git
    cd ABD-model
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Download the model file ABD.pt and place it in the correct directory.

Usage

To make predictions using the model, run the predict.py script:

python predict.py --input_path path/to/image.png

Ensure that:

  • The input image is in .png format.
  • The model (ABD.pt) is loaded correctly.
  • The input image is a valid .png file representing a molecular structure.

License

This repository is licensed under the MIT License - see the LICENSE file for details.

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

abd_model-0.2.0.tar.gz (6.3 MB view details)

Uploaded Source

Built Distribution

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

ABD_model-0.2.0-py3-none-any.whl (6.3 MB view details)

Uploaded Python 3

File details

Details for the file abd_model-0.2.0.tar.gz.

File metadata

  • Download URL: abd_model-0.2.0.tar.gz
  • Upload date:
  • Size: 6.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for abd_model-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d4b5804824814bda3dcec4bbd6ac2dcf1256b5011792c6027da754295f803b3f
MD5 58f40caa2259f93ac0421deaee6cff55
BLAKE2b-256 77b0e1852db3179b1a0ef39f6dc94a1322720d92069714a6ab7d4aae90090a9c

See more details on using hashes here.

File details

Details for the file ABD_model-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ABD_model-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for ABD_model-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 195f79a1b75435cd71b1d4cc9e06730e25487d3d826bc10aec38dfbd122c5716
MD5 274218232f75bd4327f191b30c15e58f
BLAKE2b-256 6746af480c0e936946da113dfbc02a180d9a0a24df0e8aed61f889649fb44637

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