Open pymumu opened 2 years ago
python测试用例在ubuntu 2004下crash
@unittest.skip("disable thread for no delete") def test_flow_op_thread(self): @unittest.skip("disable thread for no delete") def test_flow_op(self):
可能导致原因是py_resize.py下列代码: 将numpy的数据push到outpu时异常。
def process(self, data_ctx): in_bl = data_ctx.input("resize_in") out_bl = data_ctx.output("resize_out") for buffer in in_bl: np_image = np.array(buffer, copy= False) resize_image = Image.fromarray(np_image).resize((self.width_config, self.height_config)) out_bl.push_back(np.array(resize_image)) modelbox.info("ResizeFlowunit process") return modelbox.Status.StatusCode.STATUS_SUCCESS
python测试用例在ubuntu 2004下crash
可能导致原因是py_resize.py下列代码: 将numpy的数据push到outpu时异常。