{"id":22243822,"url":"https://github.com/guyi2000/palette-pl-sample","last_synced_at":"2025-08-24T12:42:41.889Z","repository":{"id":210196549,"uuid":"621311641","full_name":"guyi2000/Palette-PL-sample","owner":"guyi2000","description":"A minimum exemplar of the Palette model implemented using the PyTorch Lightning framework.","archived":false,"fork":false,"pushed_at":"2023-03-30T12:16:21.000Z","size":463,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T10:44:47.193Z","etag":null,"topics":["ai","diffusion","diffusion-models","pytorch-lightning"],"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/guyi2000.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}},"created_at":"2023-03-30T12:11:58.000Z","updated_at":"2024-06-02T05:47:30.000Z","dependencies_parsed_at":"2023-12-01T10:40:05.404Z","dependency_job_id":null,"html_url":"https://github.com/guyi2000/Palette-PL-sample","commit_stats":null,"previous_names":["guyi2000/palette-pl-sample"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guyi2000/Palette-PL-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyi2000%2FPalette-PL-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyi2000%2FPalette-PL-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyi2000%2FPalette-PL-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyi2000%2FPalette-PL-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guyi2000","download_url":"https://codeload.github.com/guyi2000/Palette-PL-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyi2000%2FPalette-PL-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271866509,"owners_count":24836329,"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-24T02:00:11.135Z","response_time":111,"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","diffusion","diffusion-models","pytorch-lightning"],"created_at":"2024-12-03T04:29:26.602Z","updated_at":"2025-08-24T12:42:41.811Z","avatar_url":"https://github.com/guyi2000.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Palette: image-to-image diffusion model\n\nA minimum exemplar of the [Palette](https://iterative-refinement.github.io/palette/) model implemented using the [PyTorch Lightning](https://lightning.ai/docs/pytorch/latest/) framework.\n\n## Environment Setup\n\nSetup the environment with the following commands:\n\n```shell\nconda create -n palette\nconda activate palette\n# Install pytorch \u0026 torchvision\nconda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia\n# Install pytorch-lightning\nconda install pytorch-lightning -c conda-forge\n# Install pytorch-lightning CLO\npip install \"pytorch-lightning[extra]\"\n# Install tensorboard\nconda install tensorboard\n# Install opencv for python\npip install opencv-python\n```\n\nThen, you need download the dataset [CelebaHQ here](https://www.kaggle.com/datasets/badasstechie/celebahq-resized-256x256). Put it in the `./data` directory and unzip.\n\n```shell\nunzip achieve.zip\n```\n\n## Usage\n\nTo **train** the model, run the following command:\n\n```shell\npython main.py fit -c ./conf/config.yaml\n```\n\nTo **test** the model, run the following command:\n\n```shell\npython main.py test -c ./conf/config.yaml\n```\n\n## Acknowledgments\n\nThis code borrows heavily from [guided diffusion model](https://github.com/openai/guided-diffusion) and so on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyi2000%2Fpalette-pl-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguyi2000%2Fpalette-pl-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyi2000%2Fpalette-pl-sample/lists"}