Telegram bot written in node typescript for GFPGAN Real-world Face Restoration tool
git clone https://github.com/TencentARC/GFPGAN.git
cd GFPGAN
# Install basicsr - https://github.com/xinntao/BasicSR
# We use BasicSR for both training and inference
pip install basicsr
# Install facexlib - https://github.com/xinntao/facexlib
# We use face detection and face restoration helper in the facexlib package
pip install facexlib
pip install -r requirements.txt
python setup.py develop
# If you want to enhance the background (non-face) regions with Real-ESRGAN,
# you also need to install the realesrgan package
pip install realesrgan
# clone this repo
nvm use
npm i
touch .env
TELEGRAM_BOT_TOKEN="your_telegram_bot_token"
GFPGAN_PROJECT_PATH="/path/to/GFPGAN"
DATA_PATH="/path/to/data"
$ npm i
$ npm run start:dev
Send /help from your telegram bot to check all commands.
/cropped_faces
/restored_faces
/cmp