def build_argparser(): #Modified:bin was not added to read_network args.add_argument("-m_b", "--model_bin", help="Required. Path to an .bin file with a trained model.", required=True, type=str) def main(): #Modified:bin was not added to read_network net = ie.read_network(model=model,weights=model_bin) # ----------------------------------------------------------------------------------------------------- # --------------------------- 3. Read and preprocess input -------------------------------------------- print("inputs number: " + str(len(net.input_info.keys()))) #Modified:My model includes 2 net.input_info.keys(), therefore it crashed #assert len(net.input_info.keys()) == 1, 'Sample supports networks with one input' # ----------------------------------------------------------------------------------------------------- # --------------------------- 4. Configure input & output --------------------------------------------- # --------------------------- Prepare input blobs ----------------------------------------------------- # --------------------------- Prepare output blobs ---------------------------------------------------- #Modified next 6 lines commented out:ValueError: get_shape was called on a descriptor::Tensor with dynamic shape #output_dims = output_info.shape #if len(output_dims) != 4: # log.error("Incorrect output dimensions for SSD model") #max_proposal_count, object_size = output_dims[2], output_dims[3] #if object_size != 7: # log.error("Output item should have 7 as a last dimension") # --------------------------- Read and postprocess output --------------------------------------------- #Modified:below line is commented out, imid is set to 0. #imid = np.int(proposal[0]) imid = 0