Skip to content

Commit b5c4cc3

Browse files
authored
chore: changes for submission v4.1 (#916)
* Update settings for stable_diffusion task * Remove image_classification V1 task * Remove BenchmarkId: imageClassification and imageClassificationOffline
1 parent 1053d6b commit b5c4cc3

File tree

6 files changed

+2
-160
lines changed

6 files changed

+2
-160
lines changed

flutter/assets/tasks.pbtxt

Lines changed: 2 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -216,86 +216,12 @@ task {
216216
}
217217
}
218218

219-
task {
220-
id: "image_classification"
221-
name: "Image Classification"
222-
min_query_count: 1024
223-
min_duration: 60
224-
max_duration: 600
225-
max_throughput: 1000
226-
max_accuracy: 1.0
227-
scenario: "SingleStream"
228-
datasets {
229-
type: IMAGENET
230-
full {
231-
name: "Imagenet classification validation set"
232-
input_path: "local:///mlperf_datasets/imagenet/img"
233-
groundtruth_path: "local:///mlperf_datasets/imagenet/imagenet_val_full.txt"
234-
}
235-
lite {
236-
name: "Open images subset for classification"
237-
input_path: "https://github.com/mlcommons/mobile_models/raw/main/v0_7/datasets/imagenet.zip"
238-
groundtruth_path: ""
239-
}
240-
tiny {
241-
name: "Imagenet dataset for integration test"
242-
input_path: "https://github.com/mlcommons/mobile_models/raw/main/v0_7/datasets/imagenet_tiny.zip"
243-
groundtruth_path: "https://github.com/mlcommons/mobile_models/raw/main/v3_0/assets/imagenet_tiny-groundtruth.txt"
244-
}
245-
}
246-
model {
247-
id: "mobilenetedgetpu_224_v1_0"
248-
name: "MobileNetEdgeTPU 224 1.0"
249-
offset: 1
250-
image_width: 224
251-
image_height: 224
252-
num_classes: 1000
253-
}
254-
}
255-
256-
task {
257-
id: "image_classification_offline"
258-
name: "Image Classification (Offline)"
259-
min_query_count: 24576
260-
min_duration: 0
261-
max_duration: 0
262-
max_throughput: 2000
263-
max_accuracy: 1.0
264-
scenario: "Offline"
265-
datasets {
266-
type: IMAGENET
267-
full {
268-
name: "Imagenet classification validation set"
269-
input_path: "local:///mlperf_datasets/imagenet/img"
270-
groundtruth_path: "local:///mlperf_datasets/imagenet/imagenet_val_full.txt"
271-
}
272-
lite {
273-
name: "Open images subset for classification"
274-
input_path: "https://github.com/mlcommons/mobile_models/raw/main/v0_7/datasets/imagenet.zip"
275-
groundtruth_path: ""
276-
}
277-
tiny {
278-
name: "Imagenet dataset for integration test"
279-
input_path: "https://github.com/mlcommons/mobile_models/raw/main/v0_7/datasets/imagenet_tiny.zip"
280-
groundtruth_path: "https://github.com/mlcommons/mobile_models/raw/main/v3_0/assets/imagenet_tiny-groundtruth.txt"
281-
}
282-
}
283-
model {
284-
id: "mobilenetedgetpu_224_v1_0"
285-
name: "MobileNetEdgeTPU 224 1.0"
286-
offset: 1
287-
image_width: 224
288-
image_height: 224
289-
num_classes: 1000
290-
}
291-
}
292-
293219
task {
294220
id: "stable_diffusion"
295221
name: "Stable Diffusion"
296-
min_query_count: 5
222+
min_query_count: 1024
297223
min_duration: 60
298-
max_duration: 600
224+
max_duration: 300
299225
max_throughput: 2000
300226
max_accuracy: 1.0
301227
scenario: "SingleStream"

flutter/integration_test/expected_accuracy.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ key: <accelerator> OR <accelerator>|<backendName>
1616
- neuron > Android MediaTek
1717
*/
1818

19-
const Map<String, Interval> _imageClassification = {
20-
'cpu': Interval(min: 1.00, max: 1.00),
21-
'npu': Interval(min: 0.89, max: 0.91),
22-
'tpu': Interval(min: 0.89, max: 0.91),
23-
'ane': Interval(min: 1.00, max: 1.00),
24-
'cpu&gpu&ane': Interval(min: 1.00, max: 1.00),
25-
'snpe_dsp': Interval(min: 0.78, max: 0.82),
26-
'psnpe_dsp': Interval(min: 0.78, max: 0.82),
27-
'neuron-mdla': Interval(min: 0.88, max: 0.91),
28-
};
29-
3019
const Map<String, Interval> _imageClassificationV2 = {
3120
'cpu': Interval(min: 0.88, max: 0.91),
3221
'npu': Interval(min: 0.88, max: 0.91),
@@ -100,13 +89,11 @@ const Map<String, Interval> _stableDiffusion = {
10089
};
10190

10291
const benchmarkExpectedAccuracy = {
103-
BenchmarkId.imageClassification: _imageClassification,
10492
BenchmarkId.imageClassificationV2: _imageClassificationV2,
10593
BenchmarkId.objectDetection: _objectDetection,
10694
BenchmarkId.imageSegmentationV2: _imageSegmentation,
10795
BenchmarkId.naturalLanguageProcessing: _naturalLanguageProcessing,
10896
BenchmarkId.superResolution: _superResolution,
10997
BenchmarkId.stableDiffusion: _stableDiffusion,
110-
BenchmarkId.imageClassificationOffline: _imageClassification,
11198
BenchmarkId.imageClassificationOfflineV2: _imageClassificationV2,
11299
};

flutter/integration_test/expected_throughput.dart

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,6 @@ const _kDN2103 = 'DN2103'; // OnePlus DN2103
2929
const _kIphoneOnGitHubAction = 'iPhone15,3';
3030
const _kIphoneOnMacbookM1 = 'iPhone14,7';
3131

32-
const Map<String, Map<String, Interval>> _imageClassification = {
33-
_kTFLiteBackend: {
34-
_kCloudBuildX23: Interval(min: 4, max: 12),
35-
_kCloudBuildX28: Interval(min: 4, max: 13),
36-
_kRyzen5600: Interval(min: 31, max: 37),
37-
_kPixel5: Interval(min: 80, max: 130),
38-
_kPixel6: Interval(min: 600, max: 1100),
39-
_kIphoneOnGitHubAction: Interval(min: 1, max: 8),
40-
_kIphoneOnMacbookM1: Interval(min: 19, max: 27),
41-
},
42-
_kCoreMLBackend: {
43-
_kIphoneOnGitHubAction: Interval(min: 1, max: 12),
44-
},
45-
_kPixelBackend: {
46-
_kPixel6: Interval(min: 700, max: 1200),
47-
},
48-
_kQtiBackend: {
49-
_kS22Ultra: Interval(min: 1600, max: 2400),
50-
},
51-
_kMediatekBackend: {
52-
_kDN2103: Interval(min: 30, max: 55),
53-
},
54-
};
55-
5632
const Map<String, Map<String, Interval>> _imageClassificationV2 = {
5733
_kTFLiteBackend: {
5834
_kCloudBuildX23: Interval(min: 1, max: 9),
@@ -198,30 +174,6 @@ const Map<String, Map<String, Interval>> _stableDiffusion = {
198174
},
199175
};
200176

201-
const Map<String, Map<String, Interval>> _imageClassificationOffline = {
202-
_kTFLiteBackend: {
203-
_kCloudBuildX23: Interval(min: 8, max: 14),
204-
_kCloudBuildX28: Interval(min: 7, max: 16),
205-
_kRyzen5600: Interval(min: 45, max: 60),
206-
_kPixel5: Interval(min: 120, max: 190),
207-
_kPixel6: Interval(min: 800, max: 1700),
208-
_kIphoneOnGitHubAction: Interval(min: 2, max: 15),
209-
_kIphoneOnMacbookM1: Interval(min: 30, max: 45),
210-
},
211-
_kCoreMLBackend: {
212-
_kIphoneOnGitHubAction: Interval(min: 2, max: 20),
213-
},
214-
_kPixelBackend: {
215-
_kPixel6: Interval(min: 900, max: 1800),
216-
},
217-
_kQtiBackend: {
218-
_kS22Ultra: Interval(min: 2400, max: 3500),
219-
},
220-
_kMediatekBackend: {
221-
_kDN2103: Interval(min: 75, max: 140),
222-
},
223-
};
224-
225177
const Map<String, Map<String, Interval>> _imageClassificationOfflineV2 = {
226178
_kTFLiteBackend: {
227179
_kCloudBuildX23: Interval(min: 1, max: 9),
@@ -247,13 +199,11 @@ const Map<String, Map<String, Interval>> _imageClassificationOfflineV2 = {
247199
};
248200

249201
const benchmarkExpectedThroughput = {
250-
BenchmarkId.imageClassification: _imageClassification,
251202
BenchmarkId.imageClassificationV2: _imageClassificationV2,
252203
BenchmarkId.objectDetection: _objectDetection,
253204
BenchmarkId.imageSegmentationV2: _imageSegmentationV2,
254205
BenchmarkId.naturalLanguageProcessing: _naturalLanguageProcessing,
255206
BenchmarkId.superResolution: _superResolution,
256207
BenchmarkId.stableDiffusion: _stableDiffusion,
257-
BenchmarkId.imageClassificationOffline: _imageClassificationOffline,
258208
BenchmarkId.imageClassificationOfflineV2: _imageClassificationOfflineV2,
259209
};

flutter/lib/app_constants.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,19 @@ class WidgetKeys {
1616
}
1717

1818
class BenchmarkId {
19-
static const imageClassification = 'image_classification';
2019
static const objectDetection = 'object_detection';
2120
static const imageSegmentationV2 = 'image_segmentation_v2';
2221
static const naturalLanguageProcessing = 'natural_language_processing';
2322
static const superResolution = 'super_resolution';
24-
static const imageClassificationOffline = 'image_classification_offline';
2523
static const imageClassificationV2 = 'image_classification_v2';
2624
static const imageClassificationOfflineV2 = 'image_classification_offline_v2';
2725
static const stableDiffusion = 'stable_diffusion';
2826

2927
static const allIds = [
30-
imageClassification,
3128
objectDetection,
3229
imageSegmentationV2,
3330
naturalLanguageProcessing,
3431
superResolution,
35-
imageClassificationOffline,
3632
imageClassificationV2,
3733
imageClassificationOfflineV2,
3834
stableDiffusion,

flutter/lib/benchmark/info.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@ class BenchmarkInfo {
2727

2828
BenchmarkLocalizationInfo getLocalizedInfo(AppLocalizations stringResources) {
2929
switch (task.id) {
30-
case (BenchmarkId.imageClassification):
31-
return BenchmarkLocalizationInfo(
32-
name: stringResources.benchNameImageClassification,
33-
detailsTitle: stringResources.benchInfoImageClassification,
34-
detailsContent: stringResources.benchInfoImageClassificationDesc,
35-
);
36-
case (BenchmarkId.imageClassificationOffline):
37-
return BenchmarkLocalizationInfo(
38-
name: stringResources.benchNameImageClassificationOffline,
39-
detailsTitle: stringResources.benchInfoImageClassification,
40-
detailsContent: stringResources.benchInfoImageClassificationDesc,
41-
);
4230
case (BenchmarkId.imageClassificationV2):
4331
return BenchmarkLocalizationInfo(
4432
name: stringResources.benchNameImageClassification,

flutter/lib/ui/icons.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,21 @@ class AppIcons {
6666

6767
class BenchmarkIcons {
6868
static final darkSet = {
69-
BenchmarkId.imageClassification: AppIcons.imageClassification,
7069
BenchmarkId.imageClassificationV2: AppIcons.imageClassification,
7170
BenchmarkId.objectDetection: AppIcons.objectDetection,
7271
BenchmarkId.imageSegmentationV2: AppIcons.imageSegmentation,
7372
BenchmarkId.naturalLanguageProcessing: AppIcons.languageProcessing,
7473
BenchmarkId.superResolution: AppIcons.superResolution,
75-
BenchmarkId.imageClassificationOffline: AppIcons.imageClassificationOffline,
7674
BenchmarkId.imageClassificationOfflineV2:
7775
AppIcons.imageClassificationOffline,
7876
};
7977

8078
static final lightSet = {
81-
BenchmarkId.imageClassification: AppIcons.imageClassificationWhite,
8279
BenchmarkId.imageClassificationV2: AppIcons.imageClassificationWhite,
8380
BenchmarkId.objectDetection: AppIcons.objectDetectionWhite,
8481
BenchmarkId.imageSegmentationV2: AppIcons.imageSegmentationWhite,
8582
BenchmarkId.naturalLanguageProcessing: AppIcons.languageProcessingWhite,
8683
BenchmarkId.superResolution: AppIcons.superResolutionWhite,
87-
BenchmarkId.imageClassificationOffline:
88-
AppIcons.imageClassificationOfflineWhite,
8984
BenchmarkId.imageClassificationOfflineV2:
9085
AppIcons.imageClassificationOfflineWhite,
9186
};

0 commit comments

Comments
 (0)