Lornatang / SRGAN-PyTorch

A simple and complete implementation of super-resolution paper.
Apache License 2.0
410 stars 105 forks source link

python V3.8.5 TypeError: 'type' object is not subscriptable #94

Closed Zzhenping closed 2 months ago

Zzhenping commented 2 months ago

(venv) PS F:\ai\SRGAN-PyTorch> python.exe test.py --config_path ./configs/test/SRGAN_x4-SRGAN_ImageNet-Set5.yaml Traceback (most recent call last): File "test.py", line 26, in from dataset import CUDAPrefetcher, PairedImageDataset File "F:\ai\SRGAN-PyTorch\dataset.py", line 25, in from imgproc import image_to_tensor, image_resize File "F:\ai\SRGAN-PyTorch\imgproc.py", line 514, in center: tuple[int, int] = None, TypeError: 'type' object is not subscriptable

python version: 3.8.5