Spaces:
Runtime error
Runtime error
fix: change the call method signature
Browse files
utilities/visualization.py
CHANGED
|
@@ -8,7 +8,7 @@ class PlotAttention(object):
|
|
| 8 |
def __init__(self, model):
|
| 9 |
self.model = model
|
| 10 |
|
| 11 |
-
def
|
| 12 |
# resize the image to a 224, 224 dim
|
| 13 |
image = tf.image.convert_image_dtype(image, tf.float32)
|
| 14 |
image = tf.image.resize(image, (224, 224))
|
|
|
|
| 8 |
def __init__(self, model):
|
| 9 |
self.model = model
|
| 10 |
|
| 11 |
+
def __call__(self, image):
|
| 12 |
# resize the image to a 224, 224 dim
|
| 13 |
image = tf.image.convert_image_dtype(image, tf.float32)
|
| 14 |
image = tf.image.resize(image, (224, 224))
|