adithya-s-k / marker-api

Easily deployable 🚀 API to convert PDF to markdown quickly with high accuracy.
GNU General Public License v3.0
759 stars 76 forks source link

segformer model not found #15

Open Amokh2018 opened 2 months ago

Amokh2018 commented 2 months ago

I'm getting this error when running server.py:

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

lueckgit commented 2 months ago

same here

Upcreat commented 2 months ago

+1

yhllow commented 1 month ago

try uninstall surya-ocr and install 0.4.3 version:

pip uninstall surya-ocr pip install surya-ocr==0.4.3