add ocr, ppyoloe, picodet examples (#1076)

* add ocr examples

* add ppyoloe examples

add picodet examples

* remove /ScaleFactor in ppdet/postprocessor.cc
This commit is contained in:
Dantès
2023-01-10 16:34:26 +08:00
committed by GitHub
parent fc314f1696
commit de70e8366c
21 changed files with 922 additions and 13 deletions

View File

@@ -180,7 +180,7 @@ bool SophgoBackend::Infer(std::vector<FDTensor>& inputs,
assert(BM_SUCCESS == status);
input_tensors[i].dtype = input_dtypes[i];
input_tensors[i].st_mode = BM_STORE_1N;
input_tensors[i].shape = *(net_info_->stages[i].input_shapes);
input_tensors[i].shape = net_info_->stages[0].input_shapes[i];
unsigned int input_byte = bmrt_tensor_bytesize(&input_tensors[i]);
bm_memcpy_s2d_partial(handle_, input_tensors[i].device_mem,
(void*)inputs[i].Data(),