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

Has anyone been able to get this to run under AWS Lambda #22

Open BrianSHenderson opened 3 years ago

BrianSHenderson commented 3 years ago

Alternatively is it available as a Lambda Layer?

lolipopshock commented 3 years ago

Making Layout Parser a service is on our roadmap, and feel free to contribute to our repo if you've made any progress! Thanks!

Shoshin23 commented 2 years ago

I've tried and failed to get LP on run on AWS Lambda. Firstly the size of the dependencies make it near impossible to deploy a zip file to Lambda(cause all zip files should be under >265MB).

I also tried the container approach but it was really hard to install the dependencies on an Amazon Linux container. This is cause of missing gc++, versioning issues, etc. I managed to finally get everything installed but for some reason I couldn't run inference inside the container at all.

Given that I'm fairly new to lambdas, there might be some stupid mistakes on my side but if this was an existing layer then it'll be super easy to work with.

ElToro13 commented 2 years ago

@lolipopshock I was able to run this under AWS Lambda. I am not sure about the license whether I can make it publically available.