courao / ocr.pytorch

A pure pytorch implemented ocr project including text detection and recognition
MIT License
583 stars 133 forks source link

运行demo出错 #23

Closed vcbeaut closed 4 years ago

vcbeaut commented 4 years ago

111

vcbeaut commented 4 years ago

@courao 怎么会跟caffe有关呢?

courao commented 4 years ago

跟caffe没有关系 应该是你路径或者你的python环境有问题, from detect.ctpn_predict import **** 应该是这个ocr.pytorch文件夹下的,而看你的截图是你系统目录自带的detect 而这个detect似乎和caffe有关,建议建个虚拟环境吧

vcbeaut commented 4 years ago

我是用的conda 虚拟环境

courao commented 4 years ago

那不应该跟/usr/local/caffe/python/detect有关联的

vcbeaut commented 4 years ago

确实是detect文件夹和caffe的库detect冲突了,我改成detect_文件夹就可以了,谢谢