File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def get_image_embedding(path):
75
75
76
76
if path is not None :
77
77
78
- full_path = '/home/ubuntu/image_data/images/small_partial2 /' + path
78
+ full_path = '/home/ubuntu/image_data/images/small /' + path
79
79
80
80
# open image and convert to embedding
81
81
try :
@@ -133,11 +133,14 @@ def get_image_embedding(path):
133
133
args .setNumPartitions (16 )
134
134
args .setLabelDataSampleSize (0.2 )
135
135
136
+ items1 = items .limit (100 )
137
+ items2 = items1 .limit (10 )
138
+
136
139
inputPipeSmallImages1 = InMemoryPipe ("smallImages1" )
137
- inputPipeSmallImages1 .setDataset (items )
140
+ inputPipeSmallImages1 .setDataset (items1 )
138
141
139
142
inputPipeSmallImages2 = InMemoryPipe ("smallImages2" )
140
- inputPipeSmallImages2 .setDataset (items )
143
+ inputPipeSmallImages2 .setDataset (items2 )
141
144
142
145
args .setData (inputPipeSmallImages1 ,inputPipeSmallImages2 )
143
146
You can’t perform that action at this time.
0 commit comments