Skip to content

Commit

Permalink
Update readme and single execution
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpark-nota committed Aug 28, 2024
1 parent 370972f commit b5eb417
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ python3 inference.py --model_file_path tests/your_model_file.tflite --dataset_fi
```python
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"
model_file_path="/app/tests/people_detection.onnx"
)
inf_service.run()
inf_service.run(dataset_file_path="/app/tests/dataset_for_onnx.npy")
print(inf_service.result_file_path)
```
5 changes: 2 additions & 3 deletions netspresso_inference_package/inference/inference_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def run(self, dataset_file_path):
if __name__ == "__main__":

inf_service = InferenceService(
model_file_path="/app/tests/people_detection.onnx",
dataset_file_path="/app/tests/dataset_for_onnx.npy"
model_file_path="/app/tests/people_detection.onnx"
)
inf_service.run()
inf_service.run(dataset_file_path="/app/tests/dataset_for_onnx.npy")

0 comments on commit b5eb417

Please sign in to comment.