Replies: 2 comments 3 replies
-
We have |
Beta Was this translation helpful? Give feedback.
2 replies
-
尝试在MMOCR 0.6 dbnetpp工程里加入FixInvalidPolygon,在mmocr/datasets/pipeline里注册FixInvalidPolygon,并在init文件里import
@PIPELINES.register_module()
class FixInvalidPolygon(BaseTransform):
但是报错KeyError: 'UniformConcatDataset: "IcdarDataset: \'FixInvalidPolygon is not in the pipeline registry\'"' 表示注册并未成功
希望能给我一些建议解决这个问题,感谢您的帮助
…---- Replied Message ----
| From | Tong ***@***.***> |
| Date | 02/05/2023 10:05 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [open-mmlab/mmocr] shapely.errors.TopologicalError (Discussion #1603) |
FixInvalidPolygon in MMOCR 1.0 (1.x or dev-1.x branch) has been improved to handle more corner cases. MMOCR 0.6.3 (the current main branch) is no longer active for the upcoming updates.
If you still have to stick to MMOCR 0.6, you can try to migrate the new implementation back to it, but note that the transform robustness in MMOCR 0.6 is far less than MMOCR 1.0, and therefore you might have to insert FixInvalidPolygon in between every transform in the pipeline.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
训练数据集TotalText时出现错误shapely.errors.TopologicalError: The operation 'GEOSIntersection_r' could not be performed. Likely cause is invalidity of the geometry <shapely.geometry.polygon.Polygon object at 0x7f4a807ef880>
数据集和标注文件来自官方文档提供的项目下载,json文件来自项目代码生成
Beta Was this translation helpful? Give feedback.
All reactions