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.5.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a6724a1aa513bd8c4a356652b2fa2016a308f38da086d3c8aa8c8059b0c5ea64
MD5 f5055056d36eca800b4ad6407c5ced14
BLAKE2b-256 3b7a4971c5e8f800b4f90feeadee25ed1e6890efabba3e1311ef8ca9198a980c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d992c7cd255a7a23da9237f2a87c26a16b5583f4c2388b0dbcad3aa375baf8b7
MD5 259f2ef9ac95f3e2f7aa921e39a6b6db
BLAKE2b-256 e6f3edb348136c56056624c7ead325ad3a5854591094824851d91c9b313a005a

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