Closed coreynorthcutt closed 2 years ago
Unfortunately most of the modules cannot be removed as this package was just a simple way to solve captchas and wasn't really made with the intention of being small to be packaged for other products. I'm definitely interested in other solutions to image recognition as TF isn't exactly the fastest solution (was much faster before with Google Cloud Vision but they charge for that). If you have any suggestions for tools replacing TF I'm all ears (as I don't really want to deal ML myself).
Haven't heard anything about this for a few months so will be closing this issue. You can open a new issue if there is anything I can fix on my end.
Describe the bug "Bug" may be inaccurate, but the closest fit.
Heroku limits the compressed slug size to 500MB (a year ago it was 300MB). With Puppeteer, this clocks in at 635 MB.
To Reproduce Steps to reproduce the behavior:
Example:
and
Ideal solution appears to be to adapt this to Tensorflow sub-2.0, which is a fraction of the size. Or, trim out unused modules, if any... but TF is clearly the behemoth.