{"id":17712619,"url":"https://github.com/bubao/fixoldimg","last_synced_at":"2025-03-31T10:14:30.005Z","repository":{"id":257829667,"uuid":"870767834","full_name":"bubao/fixOldImg","owner":"bubao","description":"黑白老照片上色","archived":false,"fork":false,"pushed_at":"2024-10-15T15:00:48.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-16T15:56:47.745Z","etag":null,"topics":["cli","express","gfpgan","python"],"latest_commit_sha":null,"homepage":"","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/bubao.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":"2024-10-10T16:21:09.000Z","updated_at":"2024-10-16T01:11:39.000Z","dependencies_parsed_at":"2024-10-16T15:57:41.579Z","dependency_job_id":"9087c390-600b-481b-9e47-0ce2c9001303","html_url":"https://github.com/bubao/fixOldImg","commit_stats":null,"previous_names":["bubao/fixoldimg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubao%2FfixOldImg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubao%2FfixOldImg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubao%2FfixOldImg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubao%2FfixOldImg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bubao","download_url":"https://codeload.github.com/bubao/fixOldImg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450475,"owners_count":20779421,"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":["cli","express","gfpgan","python"],"created_at":"2024-10-25T09:05:48.604Z","updated_at":"2025-03-31T10:14:29.983Z","avatar_url":"https://github.com/bubao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n![socialify](https://socialify.git.ci/bubao/fixOldImg/image?font=Source%20Code%20Pro\u0026language=1\u0026name=1\u0026owner=1\u0026pattern=Signal\u0026stargazers=1\u0026theme=Auto)\n\n- [Xintao/GFPGAN](https://huggingface.co/spaces/Xintao/GFPGAN)\n- [harisreedhar/Face-Upscalers-ONNX](https://github.com/harisreedhar/Face-Upscalers-ONNX)\n- [jantic/DeOldify](https://github.com/jantic/DeOldify)\n\n## 安装\n\n```shell\npython3.10 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\nmkdir output\nmkdir input\n```\n\n## 老照片上色\u0026修复\n\n测试表明，先上色在放大效果会好很多\n\n```shell\npython fix.py --input=./input/3.webp --output=./output/out25.jpg --version=deoldify\npython fix.py --input=./output/out25.jpg --output=./output/out26.jpg --version=v1.4\n```\n\n## api 调用\n\n这里使用了 Express.js 作为 API 服务，启动命令如下：\n\n```shell\nnvm use 22\nnpm ci\nnpm start\n```\n\n```http\nPOST /api/v1/gfpgan HTTP/1.1\nHost: 127.0.0.1:3000\nContent-Length: 279\nContent-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW\n\n------WebKitFormBoundary7MA4YWxkTrZu0gW\nContent-Disposition: form-data; name=\"version\"\n\n1.4\n------WebKitFormBoundary7MA4YWxkTrZu0gW\nContent-Disposition: form-data; name=\"input\"; filename=\"image.webp\"\nContent-Type: image/webp\n\n(data)\n------WebKitFormBoundary7MA4YWxkTrZu0gW--\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubao%2Ffixoldimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbubao%2Ffixoldimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubao%2Ffixoldimg/lists"}