question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

same code. run ok on version 19.04 but cannot run in version 19.11 or 19.12

See original GitHub issue
tensorrtserver.api.InferenceServerException: [ 0] input 'pred_sbbox/concat_2' values must be specified as a list of numpy arrays or as a single c_void_p (representing the shared memory handle) or as a tuple of c_void_p (representing the shared memory handle) and list (representing the shape of the input tensor)

my config file

input [
    {
        name: "input/input_data"
        data_type: TYPE_FP32
        dims: [ 416, 416, 3 ]
    }
]
output [
   {
      name: "pred_sbbox/concat_2"
      data_type: TYPE_FP32
      dims: [ 52, 52, 3, 85 ]
      label_filename: "labels.txt"
   },
   {
      name: "pred_mbbox/concat_2"
      data_type: TYPE_FP32
      dims: [26, 26, 3, 85 ]
      label_filename: "labels.txt"
   },
   {                              
      name: "pred_lbbox/concat_2"               
      data_type: TYPE_FP32        
      dims: [ 13, 13, 3, 85 ]         
      label_filename: "labels.txt"
   }                              

]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
deadeyegoodwincommented, Mar 16, 2020

image_data is an np array. [image_data] is a list of np array. Why do you wrap it again in list()? That gives you a list of list of np.array.

0reactions
HoangTienDuccommented, Mar 15, 2020

same error. how to solve it

image_data = np.random.rand(3,112,112).astype("float32")

# print(np.array([image_data]).shape)


#TODO run inference`
request_ids = []
request_ids.append(ctx.async_run(
        { input_name : list([image_data]) },
        { output_name : (InferContext.ResultFormat.RAW) }, 1)
        )

tensorrtserver.api.InferenceServerException: [ 0] input 'fc1' values must be specified as a list of numpy arrays or as a single c_void_p(representing the shared memory handle) or as a tuple of c_void_p (representing the shared memory handle) and list (representing the shape of the input tensor)
Read more comments on GitHub >

github_iconTop Results From Across the Web

same code. run ok on version 19.04 but cannot run in ... - GitHub
That error is from the python client library, not from the server (and not related for model configuration). How is your client code...
Read more >
When and how should you change COMPATIBLE?
The COMPATIBLE parameter specifies the Oracle version number that the ... You can't adjust COMPATIBLE while the database is up and running.
Read more >
Current and Previous Releases - Lighting Analysts Inc
To apply this fix to labels in existing files (remove the blank line), select the Luminaire Label command and click Ok! Version 20.4...
Read more >
19 Organizing Hierarchical Data with Tree Structures
This chapter describes how to create, edit, and delete tree structures, trees, and tree versions, and how to develop applications using trees.
Read more >
Chapter 4. Installing Applications: Packages and Ports
In some cases, multiple packages will exist for the same application to ... For example, to see which version of pkg is installed,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found