DB-ResNet:Real-time Scene Text Detection with Differentiable Binarization 问题总结 win10

配置https://github.com/MhLiao/DB
1、self._handle = _dlopen(self._name, mode) OSError: [WinError 126] 找不到指定的模块

D:\ProgramData\Anaconda3\envs\pytorch_gpu\python.exe E:/ZhuoZhuangOCR/Paper/Latest/DB-Resnet/DB/demo.py
Traceback (most recent call last):
  File "E:/ZhuoZhuangOCR/Paper/Latest/DB-Resnet/DB/demo.py", line 7, in <module>
    from experiment import Structure, Experiment
  File "E:\ZhuoZhuangOCR\Paper\Latest\DB-Resnet\DB\experiment.py", line 4, in <module>
    from structure.representers import *
  File "E:\ZhuoZhuangOCR\Paper\Latest\DB-Resnet\DB\structure\representers\__init__.py", line 1, in <module>
    from .seg_detector_representer import SegDetectorRepresenter
  File "E:\ZhuoZhuangOCR\Paper\Latest\DB-Resnet\DB\structure\representers\seg_detector_representer.py", line 3, in <module>
    from shapely.geometry import Polygon
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\geometry\__init__.py", line 4, in <module>
    from .base import CAP_STYLE, JOIN_STYLE
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\geometry\base.py", line 18, in <module>
    from shapely.coords import CoordinateSequence
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\coords.py", line 8, in <module>
    from shapely.geos import lgeos
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\site-packages\shapely\geos.py", line 145, in <module>
    _lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
  File "D:\ProgramData\Anaconda3\envs\pytorch_gpu\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。

shapely版本有问题

conda install -c conda-forge shapely 

2、需要在本地电脑安装CUDA+cudnn,在anaconda安装不行,必须本地也安装对应的CUDA+cudnn版本,并多取一个变量名在这里插入图片描述

  echo $CUDA_HOME
  cd assets/ops/dcn/
  python setup.py build_ext --inplace

再运行python setup.py build_ext --inplace,才不会不会提示CUDA_HOME is not set。其原因如下:
在这里插入图片描述

3、[未解决]FileExistsError: [WinError 183] 当文件已存在时,无法创建该文件。: ‘./outputs/workspace\DB’ -> 'workspace’

  File "E:\ZhuoZhuangOCR\Paper\Latest\DB-Resnet\DB\concern\log.py", line 68, in _make_storage
    os.symlink(storage_dir, self.log_dir)
FileExistsError: [WinError 183] 当文件已存在时,无法创建该文件。: './outputs/workspace\\DB' -> 'workspace'

4、将config中的yaml的路径改为绝对路径
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DYF-AI

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值