EasyOCR
EasyOCR copied to clipboard
Import Error while using dbnet18
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!
can you try the last version (1.6.2)?
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
running inside this image dbnet18 doesn't works either: pytorch/pytorch:1.12.1-cuda11.3-cudnn8-runtime