retsuh-bqw / SRFormer-Text-Det

[AAAI 2024] SRFormer: Text Detection Transformer with Incorporated Segmentation and Regression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Face an issue during training, fine-tuning, and evaluation

ThomasLimWZ opened this issue · comments

Hi, I face an issue during training, fine-tuning, and evaluation. The error is AttributeError: module 'Polygon' has no attribute 'Polygon'. I already install Polygon via pip install Polygon. Any suggestion to resolve this issue?

image

Can you try with pip install Polygon3 to install the package ? (Maybe you also need to uninstall the Polygon package first).

It is still the same, the below screenshot is for training. For training, it will display polygons while for evaluation will display Polygon as an error.

image

This seems to be an issue when loading data and preparing annotations. (The 'polygon' annotations are not properly loaded) Are you using the dataset we provided?