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",
        dataset_file_path="/app/tests/dataset_for_onnx.npy"
        )
inf_service.run()
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.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file netspresso_inference_package-0.1.2.tar.gz.

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.2.tar.gz
Algorithm Hash digest
SHA256 02f59aad30f822c80bea73c08b73272bd25431c0d474cea6ea0d46f38a978555
MD5 8dcdc4b5e5ce66b1ad48c1b3db6540c5
BLAKE2b-256 b1c8112666972baea540b2471589136170a2183ef677ce3f78205fe416be4373

See more details on using hashes here.

File details

Details for the file netspresso_inference_package-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09d3317489569cbed6f3863205e29148c86824f87ff233179db83b60e816d7f6
MD5 dfec3e9e7909a0187642acc980c83526
BLAKE2b-256 9917720990f87b43c03b483e0c078468d9ba9967656daf0299fe46f3c5d161f6

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