Skip to main content

Inference module.

Project description

How to use

Use directly

  • model_file_path: Model file path(ONNX, TFLite)
  • dataset_file_path: The path to the compressed file or the individual npy files where the delimiter of the input layer is used as the file name.
python3 inference.py --model_file_path tests/your_model_file.tflite --dataset_file_path tests/your_dataset_file.npy 

Import and use

from netspresso_inference_package.inference.inference_service import InferenceService
inf_service = InferenceService(
        model_file_path="/app/tests/people_detection.onnx"
        )
inf_service.run(dataset_file_path="/app/tests/dataset_for_onnx.npy")
print(inf_service.result_file_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

netspresso_inference_package-0.1.6b0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file netspresso_inference_package-0.1.6b0.tar.gz.

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.6b0.tar.gz
Algorithm Hash digest
SHA256 d4e0a17c5f0c0507d7d3a51727564e3ceffb9313d067f618f21ab36e8634d1d6
MD5 a0bc2d8667829c0a440df0aef6640757
BLAKE2b-256 5132074e2635f84ff6f0a33e49a54883f44f089eb1ce86ad0f6357cd74ff6aa7

See more details on using hashes here.

File details

Details for the file netspresso_inference_package-0.1.6b0-py3-none-any.whl.

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.6b0-py3-none-any.whl
Algorithm Hash digest
SHA256 61ec3cc78f2ce7f89717640bbf516f5a2f699bef5c026eebe9534a797260fad4
MD5 bba9baca6babff0ca2bbb911d12203a9
BLAKE2b-256 868b9c98596b8aa41d96db4acb111e660ca25e7ed3efa93cbf6f58b03aa077ea

See more details on using hashes here.

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