Skip to content

Commit dd40334

Browse files
committed
limit data to link
1 parent e9f3373 commit dd40334

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/InMemPipeTestImagesLink.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_image_embedding(path):
7575

7676
if path is not None:
7777

78-
full_path = '/home/ubuntu/image_data/images/small_partial2/' + path
78+
full_path = '/home/ubuntu/image_data/images/small/' + path
7979

8080
# open image and convert to embedding
8181
try:
@@ -133,11 +133,14 @@ def get_image_embedding(path):
133133
args.setNumPartitions(16)
134134
args.setLabelDataSampleSize(0.2)
135135

136+
items1 = items.limit(100)
137+
items2 = items1.limit(10)
138+
136139
inputPipeSmallImages1=InMemoryPipe("smallImages1")
137-
inputPipeSmallImages1.setDataset(items)
140+
inputPipeSmallImages1.setDataset(items1)
138141

139142
inputPipeSmallImages2=InMemoryPipe("smallImages2")
140-
inputPipeSmallImages2.setDataset(items)
143+
inputPipeSmallImages2.setDataset(items2)
141144

142145
args.setData(inputPipeSmallImages1,inputPipeSmallImages2)
143146

0 commit comments

Comments
 (0)