Skip to content
Snippets Groups Projects
Commit dfa4cb00 authored by Srijeet Roy's avatar Srijeet Roy
Browse files

fix SSIM error

parent 5a879eb2
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,8 @@ from evaluation.helpers.score_infinity import calculate_FID_infinity_path, calcu
def image_to_tensor(path, sample='all', device='cpu'):
transform_resize = transforms.Compose([transforms.ToTensor(), transforms.Resize(128), transforms.Lambda(lambda x: (x * 255).type(torch.uint8))])
transform = transforms.Compose([transforms.ToTensor(), transforms.Lambda(lambda x: (x * 255).type(torch.uint8)) ])
transform_resize = transforms.Compose([transforms.ToTensor(), transforms.Resize(128), transforms.Lambda(lambda x: (x * 255))])
transform = transforms.Compose([transforms.ToTensor(), transforms.Lambda(lambda x: (x * 255)) ])
filelist = []
for p, subdirs, files in os.walk(path):
for f in files:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment