{"id":13482789,"url":"https://github.com/luoxier/CycleGAN_Tensorlayer","last_synced_at":"2025-03-27T13:33:08.721Z","repository":{"id":72877660,"uuid":"104489821","full_name":"luoxier/CycleGAN_Tensorlayer","owner":"luoxier","description":"Re-implement CycleGAN in Tensorlayer","archived":false,"fork":false,"pushed_at":"2018-07-16T08:30:50.000Z","size":90540,"stargazers_count":89,"open_issues_count":6,"forks_count":25,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-30T16:41:22.663Z","etag":null,"topics":["cyclegan","gan","resize-convolution","tensorlayer"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/luoxier.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":"2017-09-22T15:26:11.000Z","updated_at":"2024-09-19T01:38:04.000Z","dependencies_parsed_at":"2023-03-24T05:19:42.600Z","dependency_job_id":null,"html_url":"https://github.com/luoxier/CycleGAN_Tensorlayer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoxier%2FCycleGAN_Tensorlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoxier%2FCycleGAN_Tensorlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoxier%2FCycleGAN_Tensorlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luoxier%2FCycleGAN_Tensorlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luoxier","download_url":"https://codeload.github.com/luoxier/CycleGAN_Tensorlayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245854737,"owners_count":20683406,"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":["cyclegan","gan","resize-convolution","tensorlayer"],"created_at":"2024-07-31T17:01:05.526Z","updated_at":"2025-03-27T13:33:08.715Z","avatar_url":"https://github.com/luoxier.png","language":"Python","funding_links":[],"categories":["Models/Projects","Model Deployment library"],"sub_categories":["Tensorflow \u003ca name=\"tensorflow\"/\u003e"],"readme":"# CycleGAN_Tensorlayer\nRe-implement CycleGAN in TensorLayer\n\n- Original CycleGAN\n- Improved CycleGAN with resize-convolution\n\n\n\n### Prerequisites:\n\n* TensorLayer\n* TensorFlow\n* Python\n\n### Run:\n```Bash\nCUDA_VISIBLE_DEVICES=0 python main.py \n```\n\n(if datasets are collected by yourself, you can use dataset_clean.py or dataset_crop.py to pre-process images)\n\n\n### Theory:\n\nThe generator process:\n\n![Image text](https://github.com/luoxier/CycleGAN_Tensorlayer/blob/master/figures/generator.png \"generator\")  \n\nThe discriminator process:\n\n![Image text](https://github.com/luoxier/CycleGAN_Tensorlayer/blob/master/figures/discriminator.png \"discriminator\")  \n\n \n\n### Result Improvement\n* Data augmentation\n* Resize convolution[4]\n* Instance normalization[5]\n\n\n\n#### data augmentation:\n![Image text](https://github.com/luoxier/CycleGAN_Tensorlayer/blob/master/figures/data_augmentation.png) \n\n\n#### Instance normalization（comparision by original paper https://arxiv.org/abs/1607.08022）:\n![Image text](https://github.com/luoxier/CycleGAN_Tensorlayer/blob/master/figures/instance_norm.png) \n\n\n#### Resize convolution (Remove Checkerboard Artifacts):\n\n![Image text](https://github.com/luoxier/CycleGAN_Tensorlayer/blob/master/figures/compare1.png) \n\n![Image text](https://github.com/luoxier/CycleGAN_Tensorlayer/blob/master/figures/compare2.png) \n\n### Final Results:\n\n![Image text](https://github.com/luoxier/CycleGAN_Tensorlayer/blob/master/figures/result.png)  \n\n![Image text](https://github.com/luoxier/CycleGAN_Tensorlayer/blob/master/figures/result2.png) \n\n\n\n### Reference:\n\n* [1] Original Paper: https://arxiv.org/pdf/1703.10593.pdf\n* [2] Original implement in Torch: https://github.com/junyanz/CycleGAN/\n* [3] TensorLayer by HaoDong: https://github.com/zsdonghao/tensorlayer\n* [4] Resize Convolution: https://distill.pub/2016/deconv-checkerboard/\n* [5] Instance Normalization: https://arxiv.org/abs/1607.08022\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluoxier%2FCycleGAN_Tensorlayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluoxier%2FCycleGAN_Tensorlayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluoxier%2FCycleGAN_Tensorlayer/lists"}