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

Error when use gpu #90

Open
wqh17101 opened this issue Apr 30, 2020 · 0 comments
Open

Error when use gpu #90

wqh17101 opened this issue Apr 30, 2020 · 0 comments

Comments

@wqh17101
Copy link

Hi there , i compiled the OpenCV 4.2.0 with centos 7 CUDA 8.0

cmake config

image

but when i python main.py --gpu
i got an error

Retry gen_img: /home/w30002841/text_renderer/libs/gpu/GpuWrapper.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZTIN2cv12MatAllocatorE
Traceback (most recent call last):
  File "main.py", line 75, in gen_img_retry
    return renderer.gen_img(img_index)
  File "/home/w30002841/text_renderer/textrenderer/renderer.py", line 80, in gen_img
    gpu=self.gpu)
  File "/home/w30002841/text_renderer/textrenderer/renderer.py", line 566, in apply_perspective_transform
    dst_img, M33, dst_img_pnts = transformer.transform_image(img, gpu)
  File "/home/w30002841/text_renderer/libs/math_utils.py", line 85, in transform_image
    dst = warpPerspective(src, M33, sl, gpu)
  File "/home/w30002841/text_renderer/libs/math_utils.py", line 58, in warpPerspective
    from libs.gpu.GpuWrapper import cudaWarpPerspectiveWrapper
ImportError: /home/w30002841/text_renderer/libs/gpu/GpuWrapper.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZTIN2cv12MatAllocatorE

Please help me

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