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

[QUESTION]运行test失败 #23

Closed
xiyuecangxin opened this issue Jan 11, 2023 · 1 comment
Closed

[QUESTION]运行test失败 #23

xiyuecangxin opened this issue Jan 11, 2023 · 1 comment
Labels
bug Something isn't working as expected (software, install, documentation)

Comments

@xiyuecangxin
Copy link

NVIDIA-SMI 470.103.01 Driver Version: 470.103.01 CUDA Version: 11.8

Running cvcuda_test_python test suite...
================================================= test session starts =================================================
platform linux -- Python 3.8.10, pytest-7.2.0, pluggy-1.0.0
cachedir: /tmp/tmp.3N7gU7HeFT
rootdir: /workspace/CV-CUDA
collected 177 items

tests/cvcuda/python/test_bordertype.py .                                                                        [  0%]
tests/cvcuda/python/test_interptype.py .                                                                        [  1%]
tests/cvcuda/python/test_opaverageblur.py ..........                                                            [  6%]
tests/cvcuda/python/test_opbilateralfilter.py ........                                                          [ 11%]
tests/cvcuda/python/test_opcentercrop.py ....                                                                   [ 13%]
tests/cvcuda/python/test_opchannelreorder.py .                                                                  [ 14%]
tests/cvcuda/python/test_opcomposite.py .....                                                                   [ 16%]
tests/cvcuda/python/test_opconv2d.py .....                                                                      [ 19%]
tests/cvcuda/python/test_opconvertto.py ..                                                                      [ 20%]
tests/cvcuda/python/test_opcopymakeborder.py .......                                                            [ 24%]
tests/cvcuda/python/test_opcopymakeborder_varshape.py ....FF                                                    [ 28%]
tests/cvcuda/python/test_opcustomcrop.py FFF                                                                    [ 29%]
tests/cvcuda/python/test_opcvtcolor.py FFFFFFFFFF                                                               [ 35%]
tests/cvcuda/python/test_operase.py FF                                                                          [ 36%]
tests/cvcuda/python/test_operase_varshape.py FF                                                                 [ 37%]
tests/cvcuda/python/test_opflip.py FFFFFFFFFF                                                                   [ 43%]
tests/cvcuda/python/test_opgammacontrast.py FFFF                                                                [ 45%]
tests/cvcuda/python/test_opgaussian.py FFFFFFFFFF                                                               [ 51%]
tests/cvcuda/python/test_oplaplacian.py FFFFFFFFFF                                                              [ 57%]
tests/cvcuda/python/test_opmedianblur.py FFFFFF                                                                 [ 60%]
tests/cvcuda/python/test_opmorphology.py FFFFFFFFFF                                                             [ 66%]
tests/cvcuda/python/test_opnormalize.py FFFFFF                                                                  [ 69%]
tests/cvcuda/python/test_oppadandstack.py F                                                                     [ 70%]
tests/cvcuda/python/test_oppillowresize.py FFFFFFFFF                                                            [ 75%]
tests/cvcuda/python/test_opreformat.py FFF                                                                      [ 76%]
tests/cvcuda/python/test_opresize.py FFFFF                                                                      [ 79%]
tests/cvcuda/python/test_oprotate.py FFFFFFFFF                                                                  [ 84%]
tests/cvcuda/python/test_opwarpaffine.py FFFFFFFFFFF                                                            [ 90%]
tests/cvcuda/python/test_opwarpperspective.py FFFFFFFFFFF                                                       [ 97%]
tests/cvcuda/python/test_util.py FFFFF                                                                          [100%]
====================================================== FAILURES =======================================================
______________ test_op_copymakeborder[8-format4-min_out_size4-max_out_size4-border_mode4-border_value4] _______________

num_images = 8, format = nvcv.Format.RGB8, min_out_size = (1, 1), max_out_size = (128, 128)
border_mode = <Border.REFLECT: 2>, border_value = [0]

    @t.mark.parametrize(
        "num_images, format, min_out_size, max_out_size, border_mode, border_value",
        [
            (
                4,
                cvcuda.RGBf32,
                (1, 1),
                (128, 128),
                cvcuda.Border.CONSTANT,
                [0],
            ),
            (
                5,
                cvcuda.RGB8,
                (1, 1),
                (128, 128),
                cvcuda.Border.CONSTANT,
                [12, 3, 4, 55],
            ),
            (
                9,
                cvcuda.RGBA8,
                (1, 1),
                (128, 128),
                cvcuda.Border.WRAP,
                [0],
            ),
            (
                12,
                cvcuda.RGBAf32,
                (1, 1),
                (128, 128),
                cvcuda.Border.REPLICATE,
                [0],
            ),
            (
                8,
                cvcuda.RGB8,
                (1, 1),
                (128, 128),
                cvcuda.Border.REFLECT,
                [0],
            ),
            (
                10,
                cvcuda.RGBA8,
                (1, 1),
                (128, 128),
                cvcuda.Border.REFLECT101,
                [0],
            ),
        ],
    )
    def test_op_copymakeborder(
        num_images, format, min_out_size, max_out_size, border_mode, border_value
    ):
        max_out_w = randint(min_out_size[0], max_out_size[0])
        max_out_h = randint(min_out_size[1], max_out_size[1])

        input = cvcuda.ImageBatchVarShape(num_images)
        varshape_out = cvcuda.ImageBatchVarShape(num_images)
        out_heights = []
        out_widths = []
        for i in range(num_images):
            w = randint(1, max_out_w)
            h = randint(1, max_out_h)
            img_i = cvcuda.Image([w, h], format)
>           input.pushback(img_i)
E           RuntimeError: NVCV_ERROR_INTERNAL: (cudaErrorIllegalAddress)
E           RuntimeError: cudaErrorIllegalAddress: an illegal memory access was encountered

从test_opcopymakeborder_varshape开始全都失败,而后面的所有例子都会报显存地址问题,请问这个input.pushback(img_i)发生了什么错误?

@xiyuecangxin xiyuecangxin added ? - needs triage question Further information is requested labels Jan 11, 2023
@xiyuecangxin xiyuecangxin changed the title [QUESTION]运行 [QUESTION]运行test失败 Jan 11, 2023
@bhaefnerNV bhaefnerNV added bug Something isn't working as expected (software, install, documentation) and removed ? - needs triage question Further information is requested labels Jan 31, 2024
@bhaefnerNV
Copy link
Contributor

@xiyuecangxin this has been addressed in CV-CUDA Release v0.3.1 Beta.

We'll close it for now, feel free to reopen if the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected (software, install, documentation)
Projects
None yet
Development

No branches or pull requests

2 participants