A Python library for machine learning model training and inference
Project description
MemoLib
A Python library for machine learning model training and inference, supporting classification and object detection tasks.
Features
- Model Support: EfficientNet (B0-B7, V2), YOLO models
- Tasks: Classification and Object Detection
- Export: Support for ONNX and OpenVINO formats
- Training: Built-in training pipeline with callbacks
- Utilities: Dataset format conversion, custom loss functions
Installation
pip install MemoLib
Quick Start
from MemoLib import MemoModel, eModelTask, eClassifyModel
# Create a classification model
model = MemoModel(eModelTask.Classification, eClassifyModel.EfficientNetB0)
# Load weights and labels
model.LoadWeight("path/to/weights.pth")
model.LoadLabelName("path/to/labels.txt")
# Make predictions
result = model.Predict(image)
print(f"Prediction: {result.label}, Confidence: {result.confidence}")
Modules
- Model: Core model classes and interfaces
- DataSerializer: Configuration and serialization utilities
- DatasetFormatConvert: Dataset format conversion tools
- Loss: Custom loss functions (FocalLoss)
Requirements
- Python >= 3.8
- PyTorch >= 1.12.0
- OpenCV >= 4.5.0
- Other dependencies listed in pyproject.toml
License
MIT License
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
memolib-0.1.2.tar.gz
(17.5 kB
view details)
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
memolib-0.1.2-py3-none-any.whl
(20.0 kB
view details)
File details
Details for the file memolib-0.1.2.tar.gz.
File metadata
- Download URL: memolib-0.1.2.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa2b37178594715ebf5c8af302acf5dfbefd4e0ada1a12c86fee69e6ae6449a2
|
|
| MD5 |
1be73036099a440182265e102c1c4bbb
|
|
| BLAKE2b-256 |
cb5274990cbc708f66cecfbf407fc875598ffa6fd85963c7e96248a466e04dd2
|
File details
Details for the file memolib-0.1.2-py3-none-any.whl.
File metadata
- Download URL: memolib-0.1.2-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2dce11377153cd13da6ffd21c31567d9bc6da51b79bb97842e5984e66c59e77
|
|
| MD5 |
0583b50cd5927110ef4121176d8c6bff
|
|
| BLAKE2b-256 |
52026bee83f1627ef56b888e2b95a2efe5f971c3a64ea5d78eacba81acf30287
|