{"id":34914669,"url":"https://github.com/rohith04mvk/ai-art-generator","last_synced_at":"2025-12-26T12:03:28.036Z","repository":{"id":41387956,"uuid":"325910291","full_name":"Rohith04MVK/AI-Art-Generator","owner":"Rohith04MVK","description":"A program that can add an artistic touch to any image.","archived":false,"fork":false,"pushed_at":"2023-09-26T15:48:51.000Z","size":1534,"stargazers_count":97,"open_issues_count":0,"forks_count":20,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-29T07:40:46.738Z","etag":null,"topics":["ai","art","deep-learning","machine-learning","style-transfer","tensorflow2","vgg19"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rohith04MVK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-01-01T03:25:53.000Z","updated_at":"2025-03-11T17:05:47.000Z","dependencies_parsed_at":"2023-09-26T19:43:13.849Z","dependency_job_id":null,"html_url":"https://github.com/Rohith04MVK/AI-Art-Generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rohith04MVK/AI-Art-Generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohith04MVK%2FAI-Art-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohith04MVK%2FAI-Art-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohith04MVK%2FAI-Art-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohith04MVK%2FAI-Art-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rohith04MVK","download_url":"https://codeload.github.com/Rohith04MVK/AI-Art-Generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohith04MVK%2FAI-Art-Generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28054243,"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","status":"online","status_checked_at":"2025-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","art","deep-learning","machine-learning","style-transfer","tensorflow2","vgg19"],"created_at":"2025-12-26T12:03:05.488Z","updated_at":"2025-12-26T12:03:28.027Z","avatar_url":"https://github.com/Rohith04MVK.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eAI-Art-Generator\u003c/h1\u003e\n\n[![made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/18nLCUAQZJ-vuOIn04IrBMubqsV6VO_9j?usp=sharing)[![Made with Tensorflow](https://aleen42.github.io/badges/src/tensorflow.svg)](https://www.tensorflow.org/)\n\n\u003ch2 align=\"center\"\u003eOverview\u003c/h2\u003e\n\n## Simple Art style transferer\nYou give a style image and the model learns the features and transfers it to the content image\nBest recommended to run with a GPU for the fastest result\n\n## How it works?\n\nNeural style transfer is an optimization technique that involves creating a new image that merges the content of one image with the style of another. Here's a high-level overview of how the AI-Art-Generator works:\n\n    - Load the content image and the style image.\n    - Preprocess the images by resizing and normalizing them.\n    - Create a model that combines a pre-trained convolutional neural network (CNN) with the VGG19 architecture.\n    - Define loss functions that measure the content loss and style loss between the generated image and the target image.\n    - Set up the optimization process using gradient descent to minimize the total loss.\n    - Iterate the optimization process to update the generated image and minimize the loss.\n    - Generate the final stylized image.\n\nBy minimizing the content loss, the generated image retains the content of the original content image. By minimizing the style loss, the generated image captures the artistic style of the style image. The balance between the content and style losses can be adjusted to control the final result.\n\n## Further reading\n\n[Gatys’ paper](https://arxiv.org/abs/1508.06576)\\\n[Gradient descent](https://developers.google.com/machine-learning/crash-course/reducing-loss/gradient-descent)\n\n## Credits\n[Tensorflow article](https://medium.com/tensorflow/neural-style-transfer-creating-art-with-deep-learning-using-tf-keras-and-eager-execution-7d541ac31398)\n(It was for version TensorFlow V1)\n\n\n## Some examples of the project\n\n#### Content and style images\n\n![image](https://cdn.discordapp.com/attachments/748848099891347498/794168270831353856/tRe7lwtniHiKzxOK0pl2g5HA6HwFwXCRc6dDhcDgcDofjIuESLYfD4XA4HI6LhEu0HA6HwFwOC4SLtFyOBwOh8PhuEi4RMvhcDgc.png)\n\n### Output\n\n![image](https://cdn.discordapp.com/attachments/748848099891347498/794168176110731264/uNsabtFDjw5F7SPtB5ZrBdeNPfbuXaH96JOWTIkCF3KLtdQhkyZMiQIffDA18yJAhQ5QhgYZMiQIXcoQwMfMmTIkDuUoYEPGTJky.png)\n\n## How to run locally?\n\n#### Clone the repo.\n``` sh\ngit clone https://github.com/Rohith04MVK/AI-Art-Generator\n```\n\n#### Setup conda.\n```sh\nconda create -n AI-Art-Generator python=3.8.5\n```\n```sh\nconda activate AI-Art-Generator\n```\n\n\n#### Install dependencies.\n\n```sh\npip install -r requirement.txt\n```\n#### OR\n```sh\nconda install --file requirement.txt\n```\n\n#### Replace the pictures.\nReplace line 10  `content_path` with the image you want to transform\nReplace line 11 `style_path` with the style picture you want to transfer\n\n#### Run the file!\n```sh\npython aiart.py\n```\n\n## Starchart\n[![Star History Chart](https://api.star-history.com/svg?repos=Rohith04MVK/AI-Art-Generator\u0026type=Date)](https://star-history.com/#Rohith04MVK/AI-Art-Generator\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohith04mvk%2Fai-art-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohith04mvk%2Fai-art-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohith04mvk%2Fai-art-generator/lists"}