EasyOCR icon indicating copy to clipboard operation
EasyOCR copied to clipboard

Import Error while using dbnet18

Open dilerbatu opened this issue 2 years ago • 1 comments

Basically I tried to initialize reader with this line, self.reader = easyocr.Reader(['en'], gpu=True, detect_network = 'dbnet18')

ImportError: /home/batuhandiler/.local/lib/python3.8/site-packages/easyocr/DBNet/assets/ops/dcn/deform_conv_cuda.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl36is_contiguous_nondefault_policy_implENS_12MemoryFormatE

My torch version is 1.12 with related torchvision. Cuda version is 11.6 GPU RTX A3000 Series

Thanks!

dilerbatu avatar Sep 12 '22 09:09 dilerbatu

can you try the last version (1.6.2)?

rkcosmos avatar Sep 17 '22 06:09 rkcosmos

can you try the last version (1.6.2)?

same issue here, running 1.6.2

ImportError: /home/roberto/miniconda3/envs/ocr-service-env/lib/python3.8/site-packages/easyocr/DBNet/assets/ops/dcn/deform_conv_cuda.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZNK3c1010TensorImpl36is_contiguous_nondefault_policy_implENS_12MemoryFormatE

rpvelloso avatar Sep 29 '22 21:09 rpvelloso

running inside this image dbnet18 doesn't works either: pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime

rpvelloso avatar Oct 08 '22 01:10 rpvelloso