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.0.tar.gz (17.3 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.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: memolib-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 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.0.tar.gz
Algorithm Hash digest
SHA256 cb993113fd891a47b472bb3f6a2524c59eff7125cc8192bf9973873176780127
MD5 598091e72afd0164d6f8ae7b4798e184
BLAKE2b-256 63fbcc274e1552be33d250acd433a199afd90e345896c5bc3b64562802b761ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: memolib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49b5b6f5569b93ae05a5cef1263c848b1fae2468fd8ae892b840ff329fe163bf
MD5 ed789914a490aff32d071295bbc34ac1
BLAKE2b-256 2fe602ff0fc20c679ff4b8e2d5d858f226631dc4d034552c8612d0b14dfa18f4

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