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.1.tar.gz
(17.4 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.1-py3-none-any.whl
(19.9 kB
view details)
File details
Details for the file memolib-0.1.1.tar.gz.
File metadata
- Download URL: memolib-0.1.1.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1fe04ec66ab1fda48bbda0022f32e3310e600467de7df3db7b26eee8171eebb
|
|
| MD5 |
29785f7d5ecc2498f22776a070ec840f
|
|
| BLAKE2b-256 |
ca42b5b0f2a01ed6bfcbed30397740bbfc8105ea3392d39ab8f7825699560913
|
File details
Details for the file memolib-0.1.1-py3-none-any.whl.
File metadata
- Download URL: memolib-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.9 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 |
b655af15b3ba192de17d55267e97d4a4a8c9073cdd4f0db46026066268f45abf
|
|
| MD5 |
0fa3b0e0f5bfcc01ad4fe4dd54c06610
|
|
| BLAKE2b-256 |
bf9a8667a134a5bc689837da2cf871898d18441793fd26f7130ff25e068548cc
|