Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Conceptual_Guide/Part_1-model_deployment/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,6 @@ def recognition_postprocessing(scores: np.ndarray) -> str:
)

# Process response from recognition model
final_text = recognition_postprocessing(recognition_response.as_numpy("308"))
final_text = recognition_postprocessing(recognition_response.as_numpy("307"))

print(final_text)
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ input [
]
output [
{
name: "308"
name: "307"
data_type: TYPE_FP32
dims: [ 1, 26, 37 ]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ model.load_state_dict(state)

# Create ONNX file by tracing model
trace_input = torch.randn(1, 1, 32, 100)
torch.onnx.export(model, trace_input, "str.onnx", verbose=True, dynamic_axes={'input.1':[0],'308':[0]})
torch.onnx.export(model, trace_input, "str.onnx", verbose=True, dynamic_axes={'input.1':[0],'307':[0]})
```

### Launching the server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ input [
]
output [
{
name: "308"
name: "307"
data_type: TYPE_FP32
dims: [ 26, 37 ]
}
Expand Down