PhotoUpscaler is an educational project for DLS: https://stepik.org/lesson/2104043/step/1?unit=2134957
It implements a ML model for image SuperRes upscaling (2x scale factor). This project contains:
- pre-trained model weights
- notebooks for training and testing the model locally
- telegram bot implementation for interactive upscaling
Description of the implementation process is available here: Detailed Worklog
Here are some examples comparing image patches scaled by my model, using traditional algorithms and by 3rd party model:
IMPORTANT:
Model weights are stored using Git LFS (Large File Storage).
Use git lfs install before cloning repo, otherwise pre-trained model weights will not be obtained.
- Open the
notebooks/train.ipynb - Follow the instructions in the notebook
- Open the
notebooks/test_patches.ipynb(for testing raw patches) ornotebooks/test_inference.ipynb(for testing final image assembling) - Follow the instructions in the notebook
- Ensure model
upscaler.ckptfile is presented in thecheckpointsfolder - Obtain a new bot token from @BotFather
- Add it to the
.envfile usingBOT_TOKEN=key - Run
botservice viadocker-compose.yml


