{"id":17660958,"url":"https://github.com/soulteary/docker-codeformer","last_synced_at":"2025-10-12T19:45:51.517Z","repository":{"id":184788968,"uuid":"672480149","full_name":"soulteary/docker-codeformer","owner":"soulteary","description":"快速体验 \u0026 上手 CodeFormer，2G 显存可以玩。","archived":false,"fork":false,"pushed_at":"2023-08-08T16:03:39.000Z","size":2045,"stargazers_count":30,"open_issues_count":3,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T13:37:30.757Z","etag":null,"topics":["codeformer","docker","docker-codeformer"],"latest_commit_sha":null,"homepage":"https://soulteary.com/2023/08/02/stable-diffusion-hardcore-survival-guide-codeformer-in-webui.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soulteary.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-30T08:22:27.000Z","updated_at":"2025-03-08T14:36:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0ac955f-b74d-4a4b-acd1-fcae36266622","html_url":"https://github.com/soulteary/docker-codeformer","commit_stats":null,"previous_names":["soulteary/docker-codeformer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fdocker-codeformer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fdocker-codeformer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fdocker-codeformer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soulteary%2Fdocker-codeformer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soulteary","download_url":"https://codeload.github.com/soulteary/docker-codeformer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248990327,"owners_count":21194738,"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":["codeformer","docker","docker-codeformer"],"created_at":"2024-10-23T17:09:48.633Z","updated_at":"2025-10-12T19:45:46.483Z","avatar_url":"https://github.com/soulteary.png","language":"Python","readme":"# Docker CodeFormer\n\n快速体验 \u0026 上手 CodeFormer。\n\n![](.github/preview.jpg)\n\n## 使用教程\n\n《[Stable Diffusion 硬核生存指南：WebUI 中的 CodeFormer](https://soulteary.com/2023/08/02/stable-diffusion-hardcore-survival-guide-codeformer-in-webui.html)》\n\n\n## 快速上手\n\n从 `Docker CodeFormer` 项目下载代码，并进入项目目录：\n\n```bash\ngit clone https://github.com/soulteary/docker-codeformer.git\n\ncd docker-codeformer\n```\n\n执行项目中的镜像构建工具：\n\n```bash\nscripts/build.sh\n```\n\n在完成基础镜像构建之后，可以从[网盘下载](https://pan.baidu.com/s/1rxaHRyYuff1gbt-g1y6DNA?pwd=soul) `weights.zip`。\n\n模型应用运行需要的所有模型都在这里了，下载完毕后，解压缩模型压缩包，将 `CodeFormer`、`facelib`、`realesrgan` 三个目录放置到 `weights` 目录中，完整的项目结构这样的：\n\n```bash\n├── LICENSE\n├── README.md\n├── assets\n│   └── image\n├── docker\n│   └── Dockerfile\n├── scripts\n│   └── build.sh\n├── src\n│   ├── app.py\n│   └── code-fix.py\n└── weights\n    ├── CodeFormer\n    ├── facelib\n    └── realesrgan\n```\n\n准备好模型文件之后，使用下面的命令启动模型应用：\n\n```bash\ndocker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 --rm -it -v `pwd`/weights/:/app/CodeFormer/weights -p 7860:7860 soulteary/docker-codeformer\n```\n\n稍等片刻，我们将看到类似下面的日志：\n\n```bash\nRunning on local URL:  http://0.0.0.0:7860\n\nTo create a public link, set `share=True` in `launch()`.\n```\n\n接着，我们就可以打开浏览器访问 `http://localhost:7860` 或者 `http://你的IP地址:7860` 来试试看啦。\n\n\n## 处理图片对比\n\n![](.github/case1.jpg)\n\n![](.github/case2.jpg)\n\n![](.github/case3.jpg)\n\n## 相关项目\n\n- [sczhou/CodeFormer](https://github.com/sczhou/CodeFormer)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulteary%2Fdocker-codeformer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoulteary%2Fdocker-codeformer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoulteary%2Fdocker-codeformer/lists"}