-
Notifications
You must be signed in to change notification settings - Fork 13.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying this to a server (i.e. Heroku, etc) #3
Comments
That's a good question. The only issue deploying it to Heroku or anothersimilar service would be getting dlib installed correctly. Everything else should just be pure Python. To install dlib, you'd probably have to create a custom Heroku buildpack with dlib or create a docker image and use Heroku's new support for deploying docker images. I haven't tried either way yet. But if I get some free time, I might play around with it. |
I verified that you definitely need a custom buildpack for heroku to compile dlib:
|
Have you tried deploying to Google Cloud? @ageitgey |
No, I haven't tried deploying it to Google Compute Engine yet. But there's no reason it shouldn't work with the proper setup. I just don't have a pre-made configuration to share because I haven't needed to do it yet. Setting this up on a VM-based service like Amazon EC2 or Google Compute Engine should be pretty similar to setting it up on Linux locally. You can follow the normal installation directions. |
I added an example Dockerfile to the repo that you can use to deploy an app built with face_recognition to any hosting service that supports Docker-based deployment. By default, it just runs one of the examples: $ cd face_recognition
$ docker build .
< wait a long time >
Successfully built 7283e496fd36
$ docker run 7283e496fd36
Is the unknown face a picture of Biden? False
Is the unknown face a picture of Obama? True
Is the unknown face a new person that we've never seen before? False But you could copy the Dockerfile to your own app and tweak it so it runs your app (that depends on face_recognition) instead. |
requirements.txt |
simply including cmake in the requirements.txt fixed it for me
|
Hey, I have been trying to deploy an app which uses face_recognition to Heroku and there is a problem with installing 'dlib'. The buildpack for it has become stale. Here is the following errror:
Here is the requirements.txt file I'm using:
I have tried both @Shraeyas and @quentindemetz suggestions but neither of them work for me. If anyone found a way around this, please help. Thanks in advance. |
I did the same and it installed the cmake but then showed me an error like this:
Have you faced such an error, and if yes how did you solve it? |
If you order packages in requirements file in this order, it'll work. |
! Push rejected, failed to compile Python app. |
use heroku bash for install new package now follow same process you have done in your laptop. It will open cmd for you Enjoy....!! |
@mvdream When you run bash on Heroku, it boots up a new virtual machine instance and it doesn't save changes you make to it after you exit it. If you install this way, all your changes will be instantly lost and are never visible to a running web server. |
Any chance you could provide an example or some input on how to deploy this to Heroku or other similar services? Couldn't figure out how to get the original version using lua scripts to work on Heroku.
Some insight would be useful!
Thanks for all of this btw!
The text was updated successfully, but these errors were encountered: