Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python test case crash #234

Open
pymumu opened this issue Jul 25, 2022 · 0 comments
Open

Python test case crash #234

pymumu opened this issue Jul 25, 2022 · 0 comments

Comments

@pymumu
Copy link
Contributor

pymumu commented Jul 25, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant