Skip to main content

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


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.4.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

memolib-0.1.4-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file memolib-0.1.4.tar.gz.

File metadata

  • Download URL: memolib-0.1.4.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for memolib-0.1.4.tar.gz
Algorithm Hash digest
SHA256 242d2b468f87c646142ece670762c0118a740f79ea14469fe809072f6bcebf5f
MD5 d824d7f67c5f14324f2dfa88f007a197
BLAKE2b-256 54c894273c25638215f24b9595598e44ba2479e568f48a8f676b8900670e0368

See more details on using hashes here.

File details

Details for the file memolib-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: memolib-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for memolib-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 14c69b73b519ae675005ebd452a412dc6689afdb431a133142c3e31cc38fc18f
MD5 dbabc08ab63733453b40f4019cddaf0c
BLAKE2b-256 4c25fe977109cc7036ca2b7ba04f0e02bc752614cdd9558bac2155b8ba8c021e

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