bes-dev / crnn-pytorch

Pytorch implementation of OCR system using CRNN + CTCLoss
BSD 2-Clause "Simplified" License
217 stars 55 forks source link

Couldn't import crnn module using project root as a namespace #10

Closed DXist closed 6 years ago

DXist commented 6 years ago

Hi,

I use crnn-pytorch as a submodule with name pytorch_crnn. The project has no package namespace so I've done a quickfix with a relative import to fix import problem.

The proper way to do this is to introduce single root package (+ setup.py) and move all code except the scripts under this package. Then code can be imported as from root_package_name.foo import bar.

bes-dev commented 6 years ago

:+1: Thanks for PR