Pretrained model & demo test datasets Download and Locations

Pretrained model - ESRGAN

cd BasicSR
python scripts/download_pretrained_models.py ESRGAN

Pretrained model path directory: …/BasicSR/experiments/pretrained_models, for example,

cd ~/AA/Derrick/BasicSR/experiments/pretrained_models

Demo test datasets

python scripts/data_preparation/download_datasets.py Set5
python scripts/data_preparation/download_datasets.py Set14

Demo test dataset location, same as Dataset location

cd BasicSR/datasets/

Other Pretrained model

https://drive.google.com/drive/folders/15DgDtfaLASQ3iAPJEVHQF49g9msexECG?usp=sharing

Execution

  1. Option 1 - with yml file

    python basicsr/test.py -opt options/test/ESRGAN/test_ESRGAN_x4_woGT.yml
    
  2. Option 2 - without yml file

    # executation of our own photos
    python inference/inference_esrgan.py --model_path experiments/pretrained_models/ESRGAN/ESRGAN_SRx4_DF2KOST_official-ff704c30.pth --input datasets/upload2_reshape
    

Result folder location

cd BasicSR/results

Data preparation

Video to JPG by frames

  1. OpenCV

    import cv2
    cv2.VideoCapture()
    
  2. Suggested app:

    https://www.dvdvideosoft.com/products/dvd/Free-Video-to-JPG-Converter.htm

    Only Compatible with Windows OS

    22 frames at 20:43:52 in video