A minimalistic Web application that makes use of a simple facial image cartoonization network to generate cartoon sketch like output for any image fed as input ( based on CVPR2020 White-box cartoonizaiton paper ).
Live app available here.
- Simply execute the command 8pip install -r requirements.txt* to install the necessary dependencies.
- Clone this Repository to a directory and navigate to that directory.
- Run the command: python app.py
- This will run the web-app on localhost. Upload your desired Image and it will automatically download the cartoonized version of the same in your system.
- Feel free to play around with the codes, add more features, beautify it. 😉
NOTE: 1. Ensure your entire web app folder structure is maintained in the same format as you see here ( as in case of Flask ).
- Ensure you have Docker Installed and Setup in your OS (Windows/Mac/Linux). For detailed Instructions, please refer this.
- Navigate to the folder where you have cloned this repository ( where the Dockerfile is present ).
- Build the Docker Image (don't forget the dot!! 😄 ):
docker build --tag cartoonizer_app .
- Run the docker:
docker run --publish 8000:8080 --detach --name bb cartoonizer_app
This will launch the dockerized app. Navigate to localhost:8000 in your browser to have a look at your application. You can check the status of your all available running dockers by:
docker ps
-
Paper - @InProceedings{Wang_2020_CVPR, author = {Wang, Xinrui and Yu, Jinze}, title = {Learning to Cartoonize Using White-Box Cartoon Representations}, booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, month = {June}, year = {2020} }