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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c1de8be6e7a37ff86bd9f27d38d4c4125b26b2f0525953b7c843087b3432a49b
MD5 901e58b14f0e76ff7d6efa2b05f7d90e
BLAKE2b-256 2f5450d2cabdc9821d92900d6b6e6cc650f9cbf38f092b944d44057543e4533b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca6826fffcf73df31cb404bf74051e1c08de5162e1cee0cdd9bd84d79d7fd384
MD5 6824b1cefc2282ce5aed463b2ecd4d02
BLAKE2b-256 e6c87283e7aea98734b4676616ad7a61fdabb85955d4730b7c3068465e4775c4

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