Update pipeline.py
Browse files- pipeline.py +1 -2
pipeline.py
CHANGED
@@ -24,8 +24,7 @@ class PreTrainedPipeline():
|
|
24 |
|
25 |
|
26 |
|
27 |
-
def load_image(
|
28 |
-
img = tf.io.read_file(image_path)
|
29 |
img = tf.io.decode_jpeg(img, channels=3)
|
30 |
img = tf.image.resize(img, (299, 299))
|
31 |
img = tf.keras.applications.inception_v3.preprocess_input(img)
|
|
|
24 |
|
25 |
|
26 |
|
27 |
+
def load_image(img):
|
|
|
28 |
img = tf.io.decode_jpeg(img, channels=3)
|
29 |
img = tf.image.resize(img, (299, 299))
|
30 |
img = tf.keras.applications.inception_v3.preprocess_input(img)
|