{"id":20661025,"url":"https://github.com/ai-forever/real-esrgan","last_synced_at":"2025-05-16T06:02:09.303Z","repository":{"id":37575166,"uuid":"423766322","full_name":"ai-forever/Real-ESRGAN","owner":"ai-forever","description":"PyTorch implementation of Real-ESRGAN model","archived":false,"fork":false,"pushed_at":"2024-04-15T18:19:26.000Z","size":10409,"stargazers_count":567,"open_issues_count":30,"forks_count":178,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-11T04:19:08.379Z","etag":null,"topics":["esrgan","python","pytorch","real-esrgan","real-world-super-resolution","super-resolution"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ai-forever.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":"2021-11-02T08:41:49.000Z","updated_at":"2025-05-07T05:06:56.000Z","dependencies_parsed_at":"2024-01-14T03:50:43.265Z","dependency_job_id":"29be4cae-37de-43cf-a756-52c7b578f10a","html_url":"https://github.com/ai-forever/Real-ESRGAN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-forever%2FReal-ESRGAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-forever%2FReal-ESRGAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-forever%2FReal-ESRGAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ai-forever%2FReal-ESRGAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ai-forever","download_url":"https://codeload.github.com/ai-forever/Real-ESRGAN/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254478160,"owners_count":22077675,"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":["esrgan","python","pytorch","real-esrgan","real-world-super-resolution","super-resolution"],"created_at":"2024-11-16T19:06:52.090Z","updated_at":"2025-05-16T06:02:09.209Z","avatar_url":"https://github.com/ai-forever.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-ESRGAN\nPyTorch implementation of a Real-ESRGAN model trained on custom dataset. This model shows better results on faces compared to the original version. It is also easier to integrate this model into your projects.\n\n\u003e This is not an official implementation. We partially use code from the [original repository](https://github.com/xinntao/Real-ESRGAN)\n\nReal-ESRGAN is an upgraded [ESRGAN](https://arxiv.org/abs/1809.00219) trained with pure synthetic data is capable of enhancing details while removing annoying artifacts for common real-world images. \n\nYou can try it in [google colab](https://colab.research.google.com/drive/1YlWt--P9w25JUs8bHBOuf8GcMkx-hocP?usp=sharing) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1YlWt--P9w25JUs8bHBOuf8GcMkx-hocP?usp=sharing)\n\n- [Paper (Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data)](https://arxiv.org/abs/2107.10833)\n- [Original implementation](https://github.com/xinntao/Real-ESRGAN)\n- [Huggingface 🤗](https://huggingface.co/sberbank-ai/Real-ESRGAN)\n\n### Installation\n\n```bash\npip install git+https://github.com/sberbank-ai/Real-ESRGAN.git\n```\n\n### Usage\n\n---\n\nBasic usage:\n\n```python\nimport torch\nfrom PIL import Image\nimport numpy as np\nfrom RealESRGAN import RealESRGAN\n\ndevice = torch.device('cuda' if torch.cuda.is_available() else 'cpu')\n\nmodel = RealESRGAN(device, scale=4)\nmodel.load_weights('weights/RealESRGAN_x4.pth', download=True)\n\npath_to_image = 'inputs/lr_image.png'\nimage = Image.open(path_to_image).convert('RGB')\n\nsr_image = model.predict(image)\n\nsr_image.save('results/sr_image.png')\n```\n\n### Examples\n\n---\n\nLow quality image:\n\n![](inputs/lr_image.png)\n\nReal-ESRGAN result:\n\n![](results/sr_image.png)\n\n---\n\nLow quality image:\n\n![](inputs/lr_face.png)\n\nReal-ESRGAN result:\n\n![](results/sr_face.png)\n\n---\n\nLow quality image:\n\n![](inputs/lr_lion.png)\n\nReal-ESRGAN result:\n\n![](results/sr_lion.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-forever%2Freal-esrgan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fai-forever%2Freal-esrgan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fai-forever%2Freal-esrgan/lists"}