Skip to content

Commit

Permalink
make edits from QA
Browse files Browse the repository at this point in the history
  • Loading branch information
sguequierre committed Nov 13, 2024
1 parent 0195d06 commit b6c2e66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/viam/services/mlmodel/mlmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ async def infer(
my_mlmodel = MLModelClient.from_robot(robot=machine, name="my_mlmodel_service")
nd_array = np.array([1, 2, 3], dtype=np.float64)
input_tensors = {"0": nd_array}
image_data = np.zeros((1, 384, 384, 3), dtype=np.uint8)
# Create the input tensors dictionary
input_tensors = {
"image": image_data
}
output_tensors = await my_mlmodel.infer(input_tensors)
Expand Down

0 comments on commit b6c2e66

Please sign in to comment.