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
-
Clone this repository:
git clone https://github.com/Safi-ullah-majid/ABD-model.git cd ABD-model
-
Install dependencies:
pip install -r requirements.txt
-
Download the model file
ABD.ptand 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
.pngformat. - The model (
ABD.pt) is loaded correctly. - The input image is a valid
.pngfile representing a molecular structure.
License
This repository is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for ABD-model 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| abd_model-0.3.0.tar.gz | 6.3 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ABD_model-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 MB
Release files / abd_model-0.3.0.tar.gz
| Download URL | abd_model-0.3.0.tar.gz |
|---|---|
| Size | 6.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
540e600c1e1e85fafb03fbeea0c9a528600bb00b5b3fbeda5ecb07dd60d9105d
|
|
BLAKE2b-256 checksum How to use checksums |
4abc3354bb9a16449325628a4118d385f03290ad8916e30796003192fcd8490d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / ABD_model-0.3.0-py3-none-any.whl
| Download URL | ABD_model-0.3.0-py3-none-any.whl |
|---|---|
| Size | 6.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
407615a569c8b5682d844da3349aafe0e159ccfb3d22cc1e7c0469f6ab68b894
|
|
BLAKE2b-256 checksum How to use checksums |
d77256f4c7b41d40748b3b3f200dfe081a24dcb0a99732a74fd0c6bd2fe039a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for ABD-model 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.