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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2b1b38b3276b3d4419bc32a355a2b1180edcaa211d1bcaff43c10b4b5f602587
MD5 186f2a02812d821d6698d14fe6d176de
BLAKE2b-256 b1500463818f1cd8672a623c77adefc5dbf109cb3aad7b8f5c2d97a655d9551f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for netspresso_inference_package-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 96cfd18592bed64c736edcb276076c36c450acce4a3fb87b352f8849bb8ea40c
MD5 7f91913687e0e235682ae47074e1ec2f
BLAKE2b-256 6b7330ccf30e7707fa212e249f25e555b4482493c4ed1040a39926551a6fa53d

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