Layout-Parser / layout-parser

A Unified Toolkit for Deep Learning Based Document Image Analysis
https://layout-parser.github.io/
Apache License 2.0
4.78k stars 459 forks source link

AttributeError: 'Layout' object has no attribute 'sort' #23

Closed mlamlamla closed 3 years ago

mlamlamla commented 3 years ago

Dear team, I was trying to implement https://github.com/Layout-Parser/layout-parser/blob/master/docs/example/deep_layout_parsing/index.rst but get the error "AttributeError: 'Layout' object has no attribute 'sort'". I see that I am easily able to write a sort function using "left_blocks._blocks[0].block.x_1" but just wanted to let you know. Thanks!

PS: I am using Mac and python 3.9, and followed https://github.com/Layout-Parser/layout-parser/issues/7#issuecomment-817200888 for installation.