Skip to content

Commit c7b6087

Browse files
Removed files
1 parent f1a971c commit c7b6087

File tree

3 files changed

+5
-86
lines changed

3 files changed

+5
-86
lines changed

Diff for: Data/download_pascal_sentence_data.py

-83
This file was deleted.

Diff for: Notebooks/Data_collection/download_pascal_sentence_data.ipynb

-1
This file was deleted.

Diff for: utils/utils.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import numpy as np
12
from skimage import io
3+
from efficientnet.keras import center_crop_and_resize, preprocess_input
24

35
def verify_image(img_file):
46
try:
@@ -7,12 +9,13 @@ def verify_image(img_file):
79
return False
810
return True
911

10-
def preprocess_image(image):
12+
def preprocess_image(image,image_size):
1113
image = imread(image)
12-
image_size = model.input_shape[1]
1314
x = center_crop_and_resize(image, image_size=image_size)
1415
x = preprocess_input(x)
1516
x = np.expand_dims(x, 0)
1617

1718
return x
1819

20+
def get_image_vector_pair()
21+

0 commit comments

Comments
 (0)