vendored from git@github.com:sczhou/CodeFormer.git  c5b4593074ba6214284d6acd5f1719b6c5d739af
