Skip to content

Commit f907c70

Browse files
committed
https://github.com/CompVis/taming-transformers/pull/153
fix get_image_size This example throws this error "ImportError: cannot import name '_get_image_size' from 'torchvision.transforms.functional'" Related to this Fixed by this PR.
1 parent 3ba01b2 commit f907c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

taming/data/image_transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import torch
66
from torch import Tensor
77
from torchvision.transforms import RandomCrop, functional as F, CenterCrop, RandomHorizontalFlip, PILToTensor
8-
from torchvision.transforms.functional import _get_image_size as get_image_size
8+
from torchvision.transforms.functional import get_image_size as get_image_size
99

1010
from taming.data.helper_types import BoundingBox, Image
1111

0 commit comments

Comments
 (0)