Fix depreciated enum
This commit is contained in:
parent
3fe9df1450
commit
0be39a4887
|
@ -401,7 +401,7 @@ class AspectDataset(torch.utils.data.Dataset):
|
|||
(item[1], item[2]),
|
||||
bleed=0.0,
|
||||
centering=(0.5, 0.5),
|
||||
method=Image.Resampling.LANCZOS
|
||||
method=Image.Resampling(Image.LANCZOS)
|
||||
)
|
||||
|
||||
return_dict['pixel_values'] = self.transforms(image_file)
|
||||
|
|
Loading…
Reference in New Issue