Lornatang / SRGAN-PyTorch

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

TypeError: 'type' object is not subscriptable #73

Closed angrebobo closed 1 year ago

angrebobo commented 1 year ago

Traceback (most recent call last): File "/tmp/huangsibo/srgan/train_srgan.py", line 26, in from dataset import CUDAPrefetcher, TrainValidImageDataset, TestImageDataset File "/tmp/huangsibo/srgan/dataset.py", line 32, in class TrainValidImageDataset(Dataset): File "/tmp/huangsibo/srgan/dataset.py", line 57, in TrainValidImageDataset def getitem(self, batch_index: int) -> [dict[str, Tensor], dict[str, Tensor]]: TypeError: 'type' object is not subscriptable

Satyajit1993 commented 1 year ago

How to solve this error

def getitem(self, batch_index: int) -> [dict[str, Tensor], dict[str, Tensor]]: TypeError: 'type' object is not subscriptable

Lornatang commented 1 year ago

Wait me fix this error

Lornatang commented 1 year ago

Fixed. @angrebobo @Satyajit1993