bear63 / sceneReco

ctpn+crnn Scene character recognition
942 stars 371 forks source link

i cannot import caffe and torch at the same time #17

Closed louisly closed 6 years ago

louisly commented 7 years ago

I can import caffe, and use the ctpb module successfully, but when i want to import both ctpn and crnn modules, there is a error;

raceback (most recent call last): File "", line 1, in File "/data/resys/lvyi/exp/OCR_detect/CTPN/caffe/python/caffe/init.py", line 1, in from .pycaffe import Net, SGDSolver File "/data/resys/lvyi/exp/OCR_detect/CTPN/caffe/python/caffe/pycaffe.py", line 13, in from ._caffe import Net, SGDSolver ImportError: dlopen: cannot load any more object with static TLS

i guess it is a conflict between caffe and torch? i tried to change the order of import torch and caffe, but it dosen't work.

pribadihcr commented 7 years ago

+1

LiangHao92 commented 6 years ago

@louisly @pribadihcr change the order of the two lines: from crnnport import * from ctpnport import *

bear63 commented 6 years ago

https://github.com/bear63/sceneReco/issues/23