"megatron/text_generation/api.py" did not exist on "8126d77752083b734a91ffd3d37386ea68d59322"
refactor(draw_bbox): add line sorting visualization
Add a new function `draw_line_sort_bbox` to visualize the sorting of lines on each page. This includes indexing lines and handling both text and non-text elements such as tables and images for better content organization. Also, comment out GPU-related code for flexibility and remove overlaps in bounding box detection, which improves the accuracy of layout splitting.
Showing
Please register or sign in to comment