Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
|
@@ -43,7 +43,7 @@ class PreTrainedPipeline():
|
|
| 43 |
"""
|
| 44 |
|
| 45 |
hidden = tf.zeros((1, 512))
|
| 46 |
-
|
| 47 |
temp_input = tf.expand_dims(load_image(image)[0], 0)
|
| 48 |
img_tensor_val = self.image_features_extract_model(temp_input)
|
| 49 |
img_tensor_val = tf.reshape(img_tensor_val, (img_tensor_val.shape[0],
|
|
|
|
| 43 |
"""
|
| 44 |
|
| 45 |
hidden = tf.zeros((1, 512))
|
| 46 |
+
max_length = 46
|
| 47 |
temp_input = tf.expand_dims(load_image(image)[0], 0)
|
| 48 |
img_tensor_val = self.image_features_extract_model(temp_input)
|
| 49 |
img_tensor_val = tf.reshape(img_tensor_val, (img_tensor_val.shape[0],
|