{"id":13426185,"url":"https://github.com/puneet29/stylizeapp","last_synced_at":"2026-01-03T09:58:58.809Z","repository":{"id":130294405,"uuid":"190631157","full_name":"puneet29/stylizeapp","owner":"puneet29","description":"A flask website for style transfer","archived":false,"fork":false,"pushed_at":"2020-10-01T13:14:14.000Z","size":94340,"stargazers_count":35,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-28T04:25:39.224Z","etag":null,"topics":["computer-vision","deeplearning","flask","machine-learning","pytorch","style","styletransfer","transfer"],"latest_commit_sha":null,"homepage":"https://bit.ly/stylizeapp","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puneet29.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"puneet29","custom":["https://www.paypal.me/puneet29saini"]}},"created_at":"2019-06-06T18:34:12.000Z","updated_at":"2024-01-01T15:00:19.000Z","dependencies_parsed_at":"2024-02-03T09:01:43.129Z","dependency_job_id":null,"html_url":"https://github.com/puneet29/stylizeapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puneet29%2Fstylizeapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puneet29%2Fstylizeapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puneet29%2Fstylizeapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puneet29%2Fstylizeapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puneet29","download_url":"https://codeload.github.com/puneet29/stylizeapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243792292,"owners_count":20348610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","deeplearning","flask","machine-learning","pytorch","style","styletransfer","transfer"],"created_at":"2024-07-31T00:01:28.458Z","updated_at":"2026-01-03T09:58:58.803Z","avatar_url":"https://github.com/puneet29.png","language":"JavaScript","funding_links":["https://github.com/sponsors/puneet29","https://www.paypal.me/puneet29saini"],"categories":["JavaScript"],"sub_categories":[],"readme":"# Style Transfer Website\n\nA website that applies artistic styles to your photo. Based on the Artistic Style Transfer using Neural Networks. This project is an extension of [Style transfer app](https://github.com/puneet29/StyleTransferApp)\n\n## Live at [bit.ly/stylizeapp](https://bit.ly/stylizeapp)\n\nHosted using AWS EC2, AWS S3, Gunicorn and Flask.\n\n## Architecture\n\n![AWS Architecture](static/images/aws.png)\n\n## Quick Start\n\n### Running locally\n\n1. Clone the repository\n\n    ```bash\n    git clone https://github.com/puneet29/stylizeapp.git\n    cd stylizeapp\n    ```\n\n2. Create new virtual environment\n    - On windows:\n\n        ```bash\n        py -3 -m venv venv\n        ```\n\n    - On Linux:\n\n        ```bash\n        python3 -m venv venv\n        ```\n\n3. Activate virtual environment\n    - On windows:\n\n        ```bash\n        venv\\Scripts\\activate\n        ```\n\n    - On Linux:\n\n        ```bash\n        . venv/bin/activate\n        ```\n\n4. Install all the dependencies\n\n    ```bash\n    pip3 install -r requirements\n    ```\n\n5. Change the secret key in ```__init__.py``` at [#19](https://github.com/puneet29/stylizeapp/blob/master/__init__.py#L19). Replace ```os.urandom(24)```\n   with actual bytes value.\n\n6. Run Web App\n\n    ```bash\n    gunicorn -w 4 -t 600 __init__:app\n    ```\n\n### Running on server\n\nFollow the same procedure, except 6th step. While running webapp we want the process to be daemonized, so that it runs in the background. For that:\n\n- Run Web App\n\n    ```bash\n    gunicorn -b 0.0.0.0:80 -w 4 -t 600 __init__:app -D\n    ```\n\nWe bind our application to all HTTP IPv4 addresses on the server using\n0.0.0.0:80 and run 4 gunicorn processes that serve our application. The timeout\nfor each gunicorn worker is set to 600 seconds, to account for 10 min delay\nduring uploading process. -D option daemonizes the process.\n\nRefer to [this medium article](https://medium.com/@puneet29/how-i-built-and-deployed-my-first-machine-learning-project-4c75d1effe4e?source=friends_link\u0026sk=661c75cff27a77554c8292677216d449) on how I built this app. Also refer to \n[this gist](https://gist.github.com/puneet29/083f8eb14f78f2d7db3bba506e0faa34.js)\non how to setup an AWS EC2 instance.\n\n## Libraries used\n\n- Pytorch\n- Flask\n- Scipy\n- Gunicorn\n- Boto3\n- Beautiful Soup 4\n- Requests\n\n## References\n\n- [A Neural Algorithm of Artistic Style](https://arxiv.org/abs/1508.06576)\n- [Perceptual Losses for Real-Time Style Transfer and Super-Resolution](https://arxiv.org/abs/1603.08155)\n- [Instance Normalization](https://arxiv.org/pdf/1607.08022.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuneet29%2Fstylizeapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuneet29%2Fstylizeapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuneet29%2Fstylizeapp/lists"}