eragonruan / text-detection-ctpn

text detection mainly based on ctpn model in tensorflow, id card detect, connectionist text proposal network
MIT License
3.43k stars 1.33k forks source link

Is this model acyclic?Can I convert it into coreml? #186

Closed tianranwangcs closed 6 years ago

tianranwangcs commented 6 years ago

I've converted the ckpt file the author gave into pb format by referring to this solution. The value I set for param 'output_node_names' was 'rpn_cls_prob'. The pb file I got seemed ok but error orcured when I tried to convert it into coreml format. It said "ValueError: Graph has cycles". Issue124 Issue189 I wonder whether this model has a cycle and whether it can be converted into coreml. Anyone have ideas?

eragonruan commented 6 years ago

@BIOTONIC hi, you can check this issue

tianranwangcs commented 6 years ago

@eragonruan Like what you said in that issue, I want to put this model onto mobile. I've found that the VGG part in this model could be converted into mlmodel, while BLSTM part failed. This is due to the restriction of the convert tool. Btw, thanks a lot for your suggest.

eragonruan commented 6 years ago

@BIOTONIC hi, I have release the pb file. close for now

ajinkya933 commented 5 years ago

@eragonruan please attach a link for the pb file.