{"id":21970212,"url":"https://github.com/pandede/cartoongan","last_synced_at":"2026-04-14T01:30:54.231Z","repository":{"id":166909255,"uuid":"199370264","full_name":"Pandede/CartoonGAN","owner":"Pandede","description":"Implement GAN to generate cartoon image","archived":false,"fork":false,"pushed_at":"2020-10-14T07:16:16.000Z","size":399,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T22:42:50.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pandede.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-07-29T03:18:28.000Z","updated_at":"2020-10-14T07:15:21.000Z","dependencies_parsed_at":"2023-05-21T16:30:24.458Z","dependency_job_id":null,"html_url":"https://github.com/Pandede/CartoonGAN","commit_stats":null,"previous_names":["pandede/cartoongan"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pandede/CartoonGAN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pandede%2FCartoonGAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pandede%2FCartoonGAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pandede%2FCartoonGAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pandede%2FCartoonGAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pandede","download_url":"https://codeload.github.com/Pandede/CartoonGAN/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pandede%2FCartoonGAN/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31778580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-29T14:38:00.924Z","updated_at":"2026-04-14T01:30:54.194Z","avatar_url":"https://github.com/Pandede.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CartoonGAN\nImplement GAN to generate cartoon image\n\n## Preparation\n1. Download the image data from [Google Drive](https://drive.google.com/file/d/1ohoXETVeFg-LGkzGupwIprKON57dT3Hc/view?usp=sharing) (447MB). The ZIP file includes 10000 500x500 PNG images, as illustrated below:\n![](./readme/cartoon_file.png)\n2. Adjust the required paramters in `config.ini`\n```ini\n[default]\n# Number of training epochs\nepoch = 1000\n# Save the model each n epochs\nsave_per_epoch = 20\n# Sampling size of generating image each epoch\nsample_size = 8\n\n# The image size of generating image\nimg_size = 64\n# The number of image channels (should be always RGB)\nimg_channel = 3\n# The dimension of input noise of generator\nnoise_size = 32\n# Batch size\nbatch_size = 256\n\n[path]\n# The folder path of images\ndata_src = ./Data/cartoon/\n# The folder path of saved models\nmodel_src = ./Pickle/\n# The folder path for saving the generated samples\nsample_src = ./Sample/\n[cuda]\n# The device string (training on CPU if device=cpu, or GPU if device=cuda)\ndevice = cuda:0\n```\n**WARNING**: The CNN layers of generator and discriminator must be modified if `img_size` is changed! The architecture of these model can be modified in `model.py`.\n\n## Run\nFor PyTorch user`python main_torch.py`\n\nFor Keras user `python main_keras.py`\n\n**NOTE** The keras version has not been modularized yet, it may be completed in next several commits.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandede%2Fcartoongan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpandede%2Fcartoongan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandede%2Fcartoongan/lists"}