- ** Strategy-1 : ** Perform NAFNet deblurring, and then SPSR superresolution of images before COLMAP routine + GS routine
- ** Strategy-2 : ** Peform Real-ESRGAN deblurring and then SPSR superresolution of images before COLMAP routine + GS routine
- ** Strategy-3 : ** Poisson blending of Strategy-1 and Strategy-2 outputs (before COLMAP routine + GS routine)
Platform: Ubuntu 22+
cd Real-ESRGAN
pip install basicsr
pip install -r requirements.txt
python setup.py develop
wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.5.0/realesr-general-x4v3.pth
For inference, the basic commands are:
python inference_realesrgan.py -n realesr-general-x4v3 -i <folder of images>
rm -rf esrgan_output
mv results esrgan_output
cd NAFNet
gdown https://drive.google.com/file/d/14D4V4raNYIOhETfcuuLI3bGLB-OYIv6X/view?usp=sharing --fuzzy
mv NAFNet-REDS-width64.pth experiments/pretrained_models
pip install -r requirements.txt
python setup.py develop --no_cuda_ext
python deblur.py --dir <folder of images>
chmod +x run_strategy_1.sh
./run_strategy_1 <path to images folder>
chmod +x run_strategy_2.sh
./run_strategy_2 <path to images folder>
chmod +x run_strategy_3.sh
./run_strategy_3 <path to images folder>
I use Nerfstudio (which uses Splatfacto) and Hloc for rendering the gaussian splats, and use original GS repo code for evaluating metrics. For rendering and evaluation, run:
cd rendering_and_metrics
python gs_schedule.py --dir <folder containing images to render (which can be blurr)> --gt_dir <ground truths for those images, especially if they are blurr>
The results are stored in "args.dir"+"_gs" folder as renderings and metrics (.txt) file.
Ground Truth | Blurry | NAFNet->SPSR (Strategy-1) |
---|---|---|
SSIM : 0.8418334 PSNR : 34.5210227 LPIPS: 0.0444530 |
SSIM : 0.7365065 PSNR : 31.6519640 LPIPS: 0.2315612 |
SSIM : 0.7202776 PSNR : 31.8796042 LPIPS: 0.1643362 |
SSIM: 0.8537942
PSNR: 34.8942894
LPIPS: 0.0486813
Original Gaussian Splatting | Preprocessed-Gaussian Splatting (Strategy-1) | Preprocessed-Gaussian Splatting (Strategy-3) |
---|---|---|
BAD-Gaussians | Deblur-NeRF |
---|---|