Skip to main content

No project description provided

Project description

PyDLmeta

Features: identify the model type belong to which deep learning framework and extract the meta data if possible. The meta data includes input/output name and shape of the model.

The supported formats are:

  • Tensorflow: frozen model *.pb, *.h5, SavedModel directory, *.tflite

  • Pytorch: *.pt, TorchScript

  • ONNX: *.onnx

  • Caffe model directory: *.caffemodel/ *.prototxt

  • Openvino IR directory: *.xml/ *.bin

Installation

  • Create a Python 3.8 environment and activate it.
git clone --depth 1 -b develop --recursive https://github.com/skymizer/pydlmeta.git
(cd pydlmeta && python3 -m pip install -e .)

Usage

— Retrieve the metadata of the model

from pydlmeta.meta import retrieve_model_metadata
res = retrieve_model_metadata("/path/to/your/model")
  • Identify model format
from pydlmeta.identifier.model import identify
model_format = identify(model_path)

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

pydlmeta-1.0.3.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

pydlmeta-1.0.3-py3-none-any.whl (12.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page