VikParuchuri / surya

OCR, layout analysis, reading order, line detection in 90+ languages
https://www.datalab.to
GNU General Public License v3.0
9.77k stars 632 forks source link

Issue in detecting and importing SegFormer #157

Open arinzingade opened 1 month ago

arinzingade commented 1 month ago
image
DanielLima52 commented 1 month ago

Having the same issue

pboulieris commented 1 month ago

The file is missing in 0.4.15, use 0.4.14

mertalver commented 1 month ago

They are in these paths now according to the commits. Try to use from surya.model.detection import model instead of from surya.model.detection import segformer. It worked like a charm for me.

_from surya.model.detection import model det_processor, det_model = model.load_processor(), model.loadmodel()

douglascrp commented 1 month ago

They are in these paths now according to the commits. Try to use from surya.model.detection import model instead of from surya.model.detection import segformer. It worked like a charm for me.

_from surya.model.detection import model det_processor, det_model = model.load_processor(), model.loadmodel()

worked like a charm