{"id":24098464,"url":"https://github.com/matlab-deep-learning/artistic-style-transfer","last_synced_at":"2025-06-23T18:02:21.767Z","repository":{"id":106329265,"uuid":"295788138","full_name":"matlab-deep-learning/artistic-style-transfer","owner":"matlab-deep-learning","description":"Artistic fast style transfer with a webcam","archived":false,"fork":false,"pushed_at":"2025-05-06T15:19:55.000Z","size":19851,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-06T16:46:56.669Z","etag":null,"topics":["deep-learning","example","fast-style-transfer","matlab","neural-network","webcam"],"latest_commit_sha":null,"homepage":"https://mathworks.com/products/deep-learning.html","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matlab-deep-learning.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":"supporting_files/checkRequiredInstallation.p","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-09-15T16:34:08.000Z","updated_at":"2025-05-06T15:19:58.000Z","dependencies_parsed_at":"2023-09-29T14:32:59.537Z","dependency_job_id":null,"html_url":"https://github.com/matlab-deep-learning/artistic-style-transfer","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/matlab-deep-learning%2Fartistic-style-transfer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2Fartistic-style-transfer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2Fartistic-style-transfer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2Fartistic-style-transfer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matlab-deep-learning","download_url":"https://codeload.github.com/matlab-deep-learning/artistic-style-transfer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252942326,"owners_count":21829050,"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":["deep-learning","example","fast-style-transfer","matlab","neural-network","webcam"],"created_at":"2025-01-10T14:46:01.664Z","updated_at":"2025-05-07T19:25:01.348Z","avatar_url":"https://github.com/matlab-deep-learning.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Artistic Style Transfer with a Webcam  [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=matlab-deep-learning/artistic-style-transfer)\n\nThis repository contains an application which converts the input from your webcam to an artistic equivalent.\nThis is implemented using real-time style transfer described in the paper by \n[Johnson et al. *Perceptual Losses for Real-Time Style Transfer\nand Super-Resolution*](https://arxiv.org/pdf/1603.08155.pdf). \nThe neural networks, contained in the `networks` folder, were trained using the COCO dataset,\n which was collected by the COCO Consortium (cocodataset.org).\n\n- [📦 Requirements](#requirements)\n- [🏁 Getting Started](#getting-started)\n- [🖼️ Usage](#usage)\n- [❓ Resolution and Feature Size](#resolution-and-feature-size)\n- [💬 Contribute](#contribute)\n\n## Requirements\n\nMake sure you have the minimum following requirements:\n\n- [MATLAB R2020a or later](https://www.mathworks.com/products/get-matlab.html?s_tid=gn_getml)\n- [Deep Learning Toolbox](https://www.mathworks.com/products/deep-learning.html)\n- [MATLAB Support Package for USB Webcams](https://www.mathworks.com/matlabcentral/fileexchange/45182-matlab-support-package-for-usb-webcams)\n- A webcam\n- [A supported GPU](https://mathworks.com/help/parallel-computing/gpu-computing-requirements.html) (optional for better performance)\n\nNote that, once you have MATLAB installed, the easiest way to install toolboxes and support packages\n is the [Add-On Explorer](https://www.mathworks.com/help/matlab/matlab_env/get-add-ons.html). \n\n## Getting Started\n\n1. Download or [clone](https://www.mathworks.com/help/matlab/matlab_prog/use-source-control-with-projects.html#mw_4cc18625-9e78-4586-9cc4-66e191ae1c2c)\n this repository to your machine.\n2. Open the repository in MATLAB.\n3. Connect a supported webcam if no built-in webcam is available.\n4. Open the project file `ArtisticStyleTransfer.prj`. This action adds the necessary folders to the path and opens the project view.\n5. Right click on the `ArtisticStyleTransfer.mlapp` file and choose **Run**.\n\n## Usage\n\nWhen you open the app, the pretrained networks in the `networks` folder are loaded. This operation takes a few seconds to complete.\nOnce loading is completed, you should see something similar to the image below.\n\n![](readme_images/AppGUI.jpg)\n\nFrom this view, you can:\n\n1. Change the applied style using the dropdown menu or the left and right arrows.\n2. Take a picture. The images are saved in a folder called `pictures`. This folder is created in your current working directory.\n3. Choose whether to use the CPU or the GPU for the image processing. If a GPU is not available, this option is disabled.\n4. Choose a resolution. Note that a low resolution results in less image processing and a more responsive app.\n\n## Resolution and Feature Size\n\nIf you change the resolution, then you can notice that the size of the features also changes. \nThis is because the pre-trained networks have learned features of a predefined size in terms of pixels. \nWhen you reduce the resolution, you are effectively giving a smaller image to the network. \nThe app resizes the image to fill the screen. \nTherefore, if you set the resolution to low, the features appear larger within the image, even though the features are of the same size in terms of pixels. \nThis is demonstrated in the image below.\n\n![](readme_images/inputSize.png)\n\n## Contribute\n\nPlease file any bug reports or feature requests as [GitHub issues](https://github.com/matlab-deep-learning/artistic-style-transfer/issues).\n \n_Copyright 2020 The MathWorks, Inc._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab-deep-learning%2Fartistic-style-transfer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatlab-deep-learning%2Fartistic-style-transfer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab-deep-learning%2Fartistic-style-transfer/lists"}