File size: 262 Bytes
6be1ab7
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import os
from tqdm import tqdm
import cv2

paths = os.listdir("basicsr/data/gt")

for img_path in tqdm(paths):
    img = cv2.imread("basicsr/data/gt/" + img_path)
    img = cv2.resize(img, (384, 384))
    cv2.imwrite("basicsr/data/hq/" + img_path, img)