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.3.tar.gz (17.5 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.3-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: memolib-0.1.3.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

Hashes for memolib-0.1.3.tar.gz
Algorithm Hash digest
SHA256 808e35d2838534da7c780fed29a835f7bdbeed96714f52c622cddb57a5485f60
MD5 0220768d9c5fdc7a7a8d375c2031466d
BLAKE2b-256 13aaaa6e7db42ff809624f0277f301e75685e1ca5bea78502c8d3b6fa1aecbe1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: memolib-0.1.3-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

Hashes for memolib-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9492fb6ad7070af25fcd79fe382009edc421efe9021bc5c24e96bb358b73141c
MD5 47b8022df2b6256e4633a59a6183a845
BLAKE2b-256 d1e290edd10a0e227a16f1ed657b7fcc03343aa5a39e8bbd81c606681801342a

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