{"id":24098493,"url":"https://github.com/matlab-deep-learning/image-domain-conversion-using-cyclegan","last_synced_at":"2025-08-10T22:18:43.145Z","repository":{"id":118344458,"uuid":"271499723","full_name":"matlab-deep-learning/Image-domain-conversion-using-CycleGAN","owner":"matlab-deep-learning","description":"MATLAB example of deep learning for image domain conversion","archived":false,"fork":false,"pushed_at":"2020-06-16T06:24:01.000Z","size":46770,"stargazers_count":17,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-07T19:47:39.913Z","etag":null,"topics":["cyclegan","deep-neural-networks","deeplearning","example","image-conversion","matlab","matlab-deep-learning"],"latest_commit_sha":null,"homepage":"https://www.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.txt","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-11T09:00:45.000Z","updated_at":"2024-11-11T05:26:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"9bbdf91d-775a-406e-a7c7-c1439205f636","html_url":"https://github.com/matlab-deep-learning/Image-domain-conversion-using-CycleGAN","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/matlab-deep-learning/Image-domain-conversion-using-CycleGAN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FImage-domain-conversion-using-CycleGAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FImage-domain-conversion-using-CycleGAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FImage-domain-conversion-using-CycleGAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FImage-domain-conversion-using-CycleGAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matlab-deep-learning","download_url":"https://codeload.github.com/matlab-deep-learning/Image-domain-conversion-using-CycleGAN/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matlab-deep-learning%2FImage-domain-conversion-using-CycleGAN/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269795783,"owners_count":24477099,"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-08-10T02:00:08.965Z","response_time":71,"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":["cyclegan","deep-neural-networks","deeplearning","example","image-conversion","matlab","matlab-deep-learning"],"created_at":"2025-01-10T14:46:15.194Z","updated_at":"2025-08-10T22:18:43.120Z","avatar_url":"https://github.com/matlab-deep-learning.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image domain conversion using CycleGAN\nThis example shows how to convert images from one domain into another using CycleGAN\n\nCycleGAN is a GAN model that is generally used for the following purposes.\n\n   -  Style transfer (images and paintings) \n   -  Season conversion \n   -  Day / night conversion \n   -  Object transformation \n\nThe difference from Pix2Pix, which also perform image-image conversion, is that CycleGAN uses unsupervised learning, so there is no need for a paired image dataset.\nIn this example, even with unsupervised learning, you can see the model convert the images by understanding whether the fruit was a whole one or a cut one.\n\n![result image](https://github.com/matlab-deep-learning/Image-domain-conversion-using-CycleGAN/raw/master/pics_for_doc/image_6.png)\n![result image](https://github.com/matlab-deep-learning/Image-domain-conversion-using-CycleGAN/raw/master/pics_for_doc/image_7.png)\n\n## **Requirements**\n- [MATLAB](https://jp.mathworks.com/products/matlab.html)\n- [Deep Learning Toolbox](https://jp.mathworks.com/products/deep-learning.html)\n- [Image Processing Toolbox](https://jp.mathworks.com/products/image.html)\n- [Parallel Computing Toolbox](https://jp.mathworks.com/products/parallel-computing.html)\n\nMATLAB version should be R2019b and later \n\n\n## **Usage**\nThe repository provides the following files:\n\n-\tCycleGANExample.mlx — Example showing how to train the CycleGAN model\n-\tgenerator.m — Function to create a CycleGAN generator network\n-\tdiscriminator.m — Function to create a CycleGAN discriminator network\n-\tcycleGanImageDatastore.m — Datastore to prepare batches of images for training\n-  cycleGAN_1000.mat -  Pretrained model that converts apples to oranges and vice-versa\n\nTo run, open CycleGANExample.mlx and run the script. You can train the model or use the pretrained model by setting the doTraining flag to false. \n\n\n# **Reference**\n[Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks](http://openaccess.thecvf.com/content_ICCV_2017/papers/Zhu_Unpaired_Image-To-Image_Translation_ICCV_2017_paper.pdf)\n (Jun-Yan Zhu.etc, 2017)\n\n\nCopyright 2019-2020 The MathWorks, Inc.\n**[Download a free MATLAB trial for Deep Learning](https://www.mathworks.com/products/deep-learning.html)**\n\n[![View Image domain conversion using CycleGAN on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://jp.mathworks.com/matlabcentral/fileexchange/76986-image-domain-conversion-using-cyclegan)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab-deep-learning%2Fimage-domain-conversion-using-cyclegan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatlab-deep-learning%2Fimage-domain-conversion-using-cyclegan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatlab-deep-learning%2Fimage-domain-conversion-using-cyclegan/lists"}