Show HN: PDF reflow in the browser with local AI model
1–6 of 6 posts
Re: Show HN: PDF reflow in the browser with local AI model
#2Hope you find this useful. The original version used heuristics, but frankly it was breaking on many more PDF that I'd want to admint.
This new AI-based version that uses a YOLO detector trained specifically on Doc Layout dataset seems to do a very very good job.
Re: Show HN: PDF reflow in the browser with local AI model
#3Re: Show HN: PDF reflow in the browser with local AI model
#4Did you find tune a model?
Converted to ONNX of course, and also CoreML for the iOS app. I haven't yet tried on Android. Does it work for you if you have an Android phone?
Re: Show HN: PDF reflow in the browser with local AI model
#5Did you find tune a model?
Not yet. for now this one from Alessandro works well: https://huggingface.co/Armaggheddon/yolo26-document-layout Converted to ONNX of course, and also CoreML for the iOS app. I haven't yet tried on Android. Does it work for you if you have an Android phone?
I notice some inconsistent behavior with the placement of footnotes sometimes occurring inline with the text. That's kind of a tough edge case.
Re: Show HN: PDF reflow in the browser with local AI model
#6Earlier quoted context omitted.
Not yet. for now this one from Alessandro works well: https://huggingface.co/Armaggheddon/yolo26-document-layout Converted to ONNX of course, and also CoreML for the iOS app. I haven't yet tried on Android. Does it work for you if you have an Android phone?
Works fine for me on android. I notice some inconsistent behavior with the placement of footnotes sometimes occurring inline with the text. That's kind of a tough edge case.