Skip to content

Harduex/GFPGAN_telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

instagram-unfollowers-tracker

Telegram bot written in node typescript for GFPGAN Real-world Face Restoration tool

telegram_bot_usage_example

Install GFPGAN

Clone repo

git clone https://github.com/TencentARC/GFPGAN.git
cd GFPGAN

Install dependent packages

# 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

Install our bot

# clone this repo

Create telegram bot with BotFather and get the TELEGRAM_BOT_TOKEN

https://telegram.me/BotFather

install dependencies

nvm use
npm i

.env

touch .env

in .env:

TELEGRAM_BOT_TOKEN="your_telegram_bot_token"
GFPGAN_PROJECT_PATH="/path/to/GFPGAN"
DATA_PATH="/path/to/data"

Usage

$ npm i
$ npm run start:dev

Send /help from your telegram bot to check all commands.

/cropped_faces
/restored_faces
/cmp

Releases

No releases published

Packages

No packages published