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

cannot import segformer from surya.model.detection in ubuntu #149

Closed preethamdp closed 1 month ago

preethamdp commented 1 month ago

I was able to run

from surya.model.detection import segformer

in my windows , but not able to in ubuntu , getting

ImportError: cannot import name segformer from surya.model.detection (unkown location)

I need help ......

zzak00 commented 1 month ago

on mac also, you can not

VikParuchuri commented 1 month ago

I updated the models recently, and changed the paths around. If you see the README, you can see how to import in the newest version (from surya.model.detection import model)