{"version":"v1","licence":"CC-BY-4.0","id":"codeformer","name":"CodeFormer","repo":"sczhou/CodeFormer","repository_url":"https://github.com/sczhou/CodeFormer","docs_url":"https://github.com/sczhou/CodeFormer#readme","description":"Face restoration model from NTU S-Lab with a fidelity slider, video input and face colorization; non-commercial licence.","summary":"CodeFormer restores blurry or damaged faces, with a weight (-w) that trades fidelity against quality, plus optional Real-ESRGAN background and face upscaling, video input, and colorization and inpainting for cropped faces. It is a Python research project (conda, PyTorch, CUDA). Code and weights are under the NTU S-Lab License 1.0, which allows non-commercial use only, so it cannot replace a paid tool for client work. It does not upscale general photos on its own. Last commit Nov 2025; weights released Aug 2022.","capabilities":["face-restoration","photo-upscaling"],"tags":["Face restoration","Non-commercial only","Source-available","Runs AI locally","CLI","Python"],"alternatives":[{"product":"topaz-gigapixel","jobs":["face-restoration","photo-upscaling"],"coverage":"partial","note":"Strong face recovery for personal use only; whole-image upscaling relies on Real-ESRGAN. Command line, non-commercial."}],"facts":{"runs_locally":{"status":"yes","value":"Yes, Python scripts on your machine","source_url":"https://github.com/sczhou/CodeFormer#readme","checked_at":"2026-10-16","confidence":"high","validation":"documentation_review","modes":["local"],"untrusted_source_quote":"python inference_codeformer.py -w 0.7 --input_path [image folder]|[image path]"},"code_license":{"status":"no","value":"NTU S-Lab License 1.0 (non-commercial)","source_url":"https://github.com/sczhou/CodeFormer/blob/master/LICENSE","checked_at":"2026-10-28","confidence":"high","validation":"documentation_review","spdx":null,"untrusted_source_quote":"Redistribution and use for non-commercial purpose in source and binary forms, with or without modification, are permitted"},"model_license":{"status":"no","value":"Weights fall under the same S-Lab non-commercial licence","source_url":"https://github.com/sczhou/CodeFormer#license","checked_at":"2026-10-28","confidence":"medium","validation":"documentation_review","spdx":null,"applies":true,"untrusted_source_quote":"This project is licensed under NTU S-Lab License 1.0. Redistribution and use should follow this license."},"commercial_use":{"status":"no","value":"No, non-commercial licence for code and weights","source_url":"https://github.com/sczhou/CodeFormer/blob/master/LICENSE","checked_at":"2026-10-28","confidence":"high","validation":"documentation_review","untrusted_source_quote":"Redistribution and use for non-commercial purpose in source and binary forms, with or without modification, are permitted"},"paid_services":{"status":"yes","value":"None required","source_url":"https://github.com/sczhou/CodeFormer#readme","checked_at":"2026-10-16","confidence":"medium","validation":"documentation_review","required":[],"optional":[]},"hardware":{"status":"yes","value":"PyTorch 1.7.1+ with CUDA 10.1+; VRAM not stated","source_url":"https://github.com/sczhou/CodeFormer#dependencies-and-installation","checked_at":"2026-10-16","confidence":"medium","validation":"documentation_review","cpu_ok":null,"min_vram_gb":null,"min_ram_gb":null,"untrusted_source_quote":"CUDA >= 10.1"},"platforms":{"status":"partial","value":"Not stated; the README has a note for Windows/Mac users (ffmpeg for video)","source_url":"https://github.com/sczhou/CodeFormer#readme","checked_at":"2026-10-16","confidence":"low","validation":"documentation_review","windows":"partial","macos":"partial","linux":"unknown","untrusted_source_quote":"For Windows/Mac users, please install ffmpeg first"},"setup":{"status":"yes","value":"Medium, conda environment, pip requirements, download weights with a script","source_url":"https://github.com/sczhou/CodeFormer#dependencies-and-installation","checked_at":"2026-10-16","confidence":"high","validation":"documentation_review","level":"medium","untrusted_source_quote":"conda create -n codeformer python=3.8 -y"}},"metrics":{"stars":18272,"forks":3726,"contributors":3,"archived":false,"last_push_at":"2025-11-18T12:03:30Z","latest_release":{"tag":"v0.1.0","published_at":"2022-08-10T12:54:36Z"},"fetched_at":"2026-12-02T01:21:17.154Z"},"url":"https://repoquarry.dev/projects/codeformer","note":"Installation guidance: follow docs_url. This service never installs or runs code."}