tensorflow / graphics

TensorFlow Graphics: Differentiable Graphics Layers for TensorFlow
Apache License 2.0
2.76k stars 365 forks source link

tensorflow_graphics.image has no attribute 'transformer' #711

Open SHMCU opened 1 year ago

SHMCU commented 1 year ago

Hi,

Based on the document and code of tensorflow_graphics, it should have tensorflow_graphics.image.transformer, but in my code it complains the following error:

import tensorflow_graphics as tfg . . . . . . . . . . . .

img_perspective = tfg.image.transformer.perspective_transform(image=image, transform_matrix=H, resampling_type=tfg.image.transformer.ResamplingType.BILINEAR, border_type=tfg.image.transformer.BorderType.DUPLICATE) AttributeError: module 'tensorflow_graphics.image' has no attribute 'transformer'