BUILD 15 KB
Newer Older
1
# Description:
2
#   Contains files for loading, training and evaluating TF-Slim-based models.
3

4
5
6
package(
    default_visibility = ["//visibility:public"],
)
7
8
9
10
11
12
13
14

licenses(["notice"])  # Apache 2.0

exports_files(["LICENSE"])

py_library(
    name = "dataset_utils",
    srcs = ["datasets/dataset_utils.py"],
Derek Chow's avatar
Derek Chow committed
15
    deps = [
16
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
17
    ],
18
19
)

derekjchow's avatar
derekjchow committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
sh_binary(
    name = "download_and_convert_imagenet",
    srcs = ["datasets/download_and_convert_imagenet.sh"],
    data = [
        "datasets/download_imagenet.sh",
        "datasets/imagenet_2012_validation_synset_labels.txt",
        "datasets/imagenet_lsvrc_2015_synsets.txt",
        "datasets/imagenet_metadata.txt",
        "datasets/preprocess_imagenet_validation_data.py",
        "datasets/process_bounding_boxes.py",
        ":build_imagenet_data",
    ],
)

py_binary(
    name = "build_imagenet_data",
    srcs = ["datasets/build_imagenet_data.py"],
    deps = [
38
        # "//numpy",
39
        # "//tensorflow",
derekjchow's avatar
derekjchow committed
40
41
42
    ],
)

43
py_library(
44
45
    name = "download_and_convert_cifar10",
    srcs = ["datasets/download_and_convert_cifar10.py"],
Derek Chow's avatar
Derek Chow committed
46
47
    deps = [
        ":dataset_utils",
48
        # "//numpy",
49
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
50
    ],
51
52
)

53
py_library(
54
55
    name = "download_and_convert_flowers",
    srcs = ["datasets/download_and_convert_flowers.py"],
Derek Chow's avatar
Derek Chow committed
56
57
    deps = [
        ":dataset_utils",
58
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
59
    ],
60
61
)

62
py_library(
63
64
    name = "download_and_convert_mnist",
    srcs = ["datasets/download_and_convert_mnist.py"],
Derek Chow's avatar
Derek Chow committed
65
66
    deps = [
        ":dataset_utils",
67
        # "//numpy",
68
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
69
    ],
70
71
)

72
73
74
75
76
77
78
py_binary(
    name = "download_and_convert_data",
    srcs = ["download_and_convert_data.py"],
    deps = [
        ":download_and_convert_cifar10",
        ":download_and_convert_flowers",
        ":download_and_convert_mnist",
79
        # "//tensorflow",
80
81
82
    ],
)

83
py_library(
84
85
    name = "cifar10",
    srcs = ["datasets/cifar10.py"],
Derek Chow's avatar
Derek Chow committed
86
87
    deps = [
        ":dataset_utils",
88
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
89
    ],
90
91
)

92
py_library(
93
94
    name = "flowers",
    srcs = ["datasets/flowers.py"],
Derek Chow's avatar
Derek Chow committed
95
96
    deps = [
        ":dataset_utils",
97
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
98
    ],
99
100
)

101
py_library(
102
103
    name = "imagenet",
    srcs = ["datasets/imagenet.py"],
Derek Chow's avatar
Derek Chow committed
104
105
    deps = [
        ":dataset_utils",
106
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
107
    ],
108
109
)

110
py_library(
111
112
    name = "mnist",
    srcs = ["datasets/mnist.py"],
Derek Chow's avatar
Derek Chow committed
113
114
    deps = [
        ":dataset_utils",
115
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
116
    ],
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
)

py_library(
    name = "dataset_factory",
    srcs = ["datasets/dataset_factory.py"],
    deps = [
        ":cifar10",
        ":flowers",
        ":imagenet",
        ":mnist",
    ],
)

py_library(
    name = "model_deploy",
132
    srcs = ["deployment/model_deploy.py"],
Derek Chow's avatar
Derek Chow committed
133
    deps = [
134
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
135
    ],
136
137
138
139
)

py_test(
    name = "model_deploy_test",
140
    srcs = ["deployment/model_deploy_test.py"],
141
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
142
143
    deps = [
        ":model_deploy",
144
        # "//numpy",
145
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
146
    ],
147
148
149
)

py_library(
150
151
    name = "cifarnet_preprocessing",
    srcs = ["preprocessing/cifarnet_preprocessing.py"],
Derek Chow's avatar
Derek Chow committed
152
    deps = [
153
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
154
    ],
155
156
157
158
)

py_library(
    name = "inception_preprocessing",
159
    srcs = ["preprocessing/inception_preprocessing.py"],
Derek Chow's avatar
Derek Chow committed
160
    deps = [
161
162
        # "//tensorflow",
        # "//tensorflow/python:control_flow_ops",
Derek Chow's avatar
Derek Chow committed
163
    ],
164
165
166
167
)

py_library(
    name = "lenet_preprocessing",
168
    srcs = ["preprocessing/lenet_preprocessing.py"],
Derek Chow's avatar
Derek Chow committed
169
    deps = [
170
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
171
    ],
172
173
174
175
)

py_library(
    name = "vgg_preprocessing",
176
    srcs = ["preprocessing/vgg_preprocessing.py"],
Derek Chow's avatar
Derek Chow committed
177
    deps = [
178
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
179
    ],
180
181
182
183
)

py_library(
    name = "preprocessing_factory",
184
    srcs = ["preprocessing/preprocessing_factory.py"],
185
    deps = [
186
        ":cifarnet_preprocessing",
187
188
189
        ":inception_preprocessing",
        ":lenet_preprocessing",
        ":vgg_preprocessing",
190
        # "//tensorflow",
191
192
193
    ],
)

194
195
196
197
198
199
200
# Typical networks definitions.

py_library(
    name = "nets",
    deps = [
        ":alexnet",
        ":cifarnet",
201
        ":cyclegan",
202
        ":i3d",
203
204
        ":inception",
        ":lenet",
205
        ":mobilenet",
206
        ":nasnet",
207
        ":overfeat",
208
        ":pix2pix",
maximneumann's avatar
maximneumann committed
209
        ":pnasnet",
210
211
        ":resnet_v1",
        ":resnet_v2",
212
        ":s3dg",
213
214
215
216
217
218
219
220
        ":vgg",
    ],
)

py_library(
    name = "alexnet",
    srcs = ["nets/alexnet.py"],
    srcs_version = "PY2AND3",
221
    deps = [
pkulzc's avatar
pkulzc committed
222
        # "//tensorflow",
223
    ],
224
225
226
227
228
229
230
)

py_test(
    name = "alexnet_test",
    size = "medium",
    srcs = ["nets/alexnet_test.py"],
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
231
232
    deps = [
        ":alexnet",
233
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
234
    ],
235
236
237
238
239
)

py_library(
    name = "cifarnet",
    srcs = ["nets/cifarnet.py"],
Derek Chow's avatar
Derek Chow committed
240
    deps = [
241
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
242
    ],
243
244
)

245
246
247
248
249
py_library(
    name = "cyclegan",
    srcs = ["nets/cyclegan.py"],
    deps = [
        # "//numpy",
250
        # "//tensorflow",
251
252
253
254
255
256
257
258
259
260
    ],
)

py_test(
    name = "cyclegan_test",
    srcs = ["nets/cyclegan_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
    deps = [
        ":cyclegan",
261
        # "//tensorflow",
262
263
264
265
266
267
268
    ],
)

py_library(
    name = "dcgan",
    srcs = ["nets/dcgan.py"],
    deps = [
269
        # "//tensorflow",
270
271
272
273
274
275
276
277
278
279
    ],
)

py_test(
    name = "dcgan_test",
    srcs = ["nets/dcgan_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
    deps = [
        ":dcgan",
280
        # "//tensorflow",
281
282
283
    ],
)

284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
py_library(
    name = "i3d",
    srcs = ["nets/i3d.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":i3d_utils",
        ":s3dg",
        # "//tensorflow",
    ],
)

py_test(
    name = "i3d_test",
    size = "large",
    srcs = ["nets/i3d_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
    deps = [
        ":i3d",
        # "//tensorflow",
    ],
)

py_library(
    name = "i3d_utils",
    srcs = ["nets/i3d_utils.py"],
    srcs_version = "PY2AND3",
    deps = [
        # "//tensorflow",
    ],
)

316
317
318
319
320
321
322
323
324
py_library(
    name = "inception",
    srcs = ["nets/inception.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":inception_resnet_v2",
        ":inception_v1",
        ":inception_v2",
        ":inception_v3",
Alex Kurakin's avatar
Alex Kurakin committed
325
        ":inception_v4",
326
327
328
    ],
)

Alex Kurakin's avatar
Alex Kurakin committed
329
330
331
332
py_library(
    name = "inception_utils",
    srcs = ["nets/inception_utils.py"],
    srcs_version = "PY2AND3",
333
    deps = [
pkulzc's avatar
pkulzc committed
334
        # "//tensorflow",
335
    ],
Alex Kurakin's avatar
Alex Kurakin committed
336
337
)

338
339
340
341
py_library(
    name = "inception_v1",
    srcs = ["nets/inception_v1.py"],
    srcs_version = "PY2AND3",
Alex Kurakin's avatar
Alex Kurakin committed
342
343
    deps = [
        ":inception_utils",
344
        # "//tensorflow",
Alex Kurakin's avatar
Alex Kurakin committed
345
    ],
346
347
348
349
350
351
)

py_library(
    name = "inception_v2",
    srcs = ["nets/inception_v2.py"],
    srcs_version = "PY2AND3",
Alex Kurakin's avatar
Alex Kurakin committed
352
353
    deps = [
        ":inception_utils",
354
        # "//tensorflow",
Alex Kurakin's avatar
Alex Kurakin committed
355
    ],
356
357
358
359
360
361
)

py_library(
    name = "inception_v3",
    srcs = ["nets/inception_v3.py"],
    srcs_version = "PY2AND3",
Alex Kurakin's avatar
Alex Kurakin committed
362
363
    deps = [
        ":inception_utils",
364
        # "//tensorflow",
Alex Kurakin's avatar
Alex Kurakin committed
365
366
367
368
369
370
371
372
373
    ],
)

py_library(
    name = "inception_v4",
    srcs = ["nets/inception_v4.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":inception_utils",
374
        # "//tensorflow",
Alex Kurakin's avatar
Alex Kurakin committed
375
    ],
376
377
378
379
380
381
)

py_library(
    name = "inception_resnet_v2",
    srcs = ["nets/inception_resnet_v2.py"],
    srcs_version = "PY2AND3",
382
    deps = [
pkulzc's avatar
pkulzc committed
383
        # "//tensorflow",
384
    ],
385
386
387
388
389
390
391
392
)

py_test(
    name = "inception_v1_test",
    size = "large",
    srcs = ["nets/inception_v1_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
393
394
    deps = [
        ":inception",
395
        # "//numpy",
396
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
397
    ],
398
399
400
401
402
403
404
405
)

py_test(
    name = "inception_v2_test",
    size = "large",
    srcs = ["nets/inception_v2_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
406
407
    deps = [
        ":inception",
408
        # "//numpy",
409
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
410
    ],
411
412
413
414
415
416
417
418
)

py_test(
    name = "inception_v3_test",
    size = "large",
    srcs = ["nets/inception_v3_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
419
420
    deps = [
        ":inception",
421
        # "//numpy",
422
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
423
    ],
424
425
)

Alex Kurakin's avatar
Alex Kurakin committed
426
427
428
429
430
431
py_test(
    name = "inception_v4_test",
    size = "large",
    srcs = ["nets/inception_v4_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
432
433
    deps = [
        ":inception",
434
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
435
    ],
Alex Kurakin's avatar
Alex Kurakin committed
436
437
)

438
439
440
441
442
443
py_test(
    name = "inception_resnet_v2_test",
    size = "large",
    srcs = ["nets/inception_resnet_v2_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
444
445
    deps = [
        ":inception",
446
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
447
    ],
448
449
)

450
451
452
py_library(
    name = "lenet",
    srcs = ["nets/lenet.py"],
Derek Chow's avatar
Derek Chow committed
453
    deps = [
454
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
455
    ],
456
457
)

andrewghoward's avatar
andrewghoward committed
458
459
460
461
py_library(
    name = "mobilenet_v1",
    srcs = ["nets/mobilenet_v1.py"],
    srcs_version = "PY2AND3",
462
    deps = [
pkulzc's avatar
pkulzc committed
463
        # "//tensorflow",
464
    ],
andrewghoward's avatar
andrewghoward committed
465
466
)

467
468
469
470
py_library(
    name = "mobilenet_v2",
    srcs = glob(["nets/mobilenet/*.py"]),
    srcs_version = "PY2AND3",
471
    deps = [
472
        # "//tensorflow",
473
474
475
    ],
)

476
477
478
479
480
481
482
483
484
485
486
487
py_test(
    name = "mobilenet_v2_test",
    srcs = ["nets/mobilenet/mobilenet_v2_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":mobilenet",
        # "//tensorflow",
    ],
)

py_library(
    name = "mobilenet",
488
489
    deps = [
        ":mobilenet_v1",
490
        ":mobilenet_v2",
491
492
493
    ],
)

andrewghoward's avatar
andrewghoward committed
494
495
496
497
498
499
500
501
py_test(
    name = "mobilenet_v1_test",
    size = "large",
    srcs = ["nets/mobilenet_v1_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
    deps = [
        ":mobilenet_v1",
502
        # "//numpy",
503
        # "//tensorflow",
504
505
506
    ],
)

507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
py_binary(
    name = "mobilenet_v1_train",
    srcs = ["nets/mobilenet_v1_train.py"],
    deps = [
        ":dataset_factory",
        ":mobilenet_v1",
        ":preprocessing_factory",
        # "//tensorflow",
    ],
)

py_binary(
    name = "mobilenet_v1_eval",
    srcs = ["nets/mobilenet_v1_eval.py"],
    deps = [
        ":dataset_factory",
        ":mobilenet_v1",
        ":preprocessing_factory",
        # "//tensorflow",
    ],
)

529
530
531
532
533
py_library(
    name = "nasnet_utils",
    srcs = ["nets/nasnet/nasnet_utils.py"],
    srcs_version = "PY2AND3",
    deps = [
534
        # "//tensorflow",
535
536
537
538
539
540
541
542
543
    ],
)

py_library(
    name = "nasnet",
    srcs = ["nets/nasnet/nasnet.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":nasnet_utils",
544
        # "//tensorflow",
545
546
547
548
549
550
551
552
553
554
    ],
)

py_test(
    name = "nasnet_utils_test",
    size = "medium",
    srcs = ["nets/nasnet/nasnet_utils_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":nasnet_utils",
555
        # "//tensorflow",
556
557
558
559
560
561
562
563
564
565
566
    ],
)

py_test(
    name = "nasnet_test",
    size = "large",
    srcs = ["nets/nasnet/nasnet_test.py"],
    shard_count = 10,
    srcs_version = "PY2AND3",
    deps = [
        ":nasnet",
567
        # "//tensorflow",
andrewghoward's avatar
andrewghoward committed
568
569
570
    ],
)

maximneumann's avatar
maximneumann committed
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
py_library(
    name = "pnasnet",
    srcs = ["nets/nasnet/pnasnet.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":nasnet",
        ":nasnet_utils",
        # "//tensorflow",
    ],
)

py_test(
    name = "pnasnet_test",
    size = "large",
    srcs = ["nets/nasnet/pnasnet_test.py"],
    shard_count = 4,
    srcs_version = "PY2AND3",
    deps = [
        ":pnasnet",
        # "//tensorflow",
    ],
)

594
py_library(
595
596
597
    name = "overfeat",
    srcs = ["nets/overfeat.py"],
    srcs_version = "PY2AND3",
598
    deps = [
pkulzc's avatar
pkulzc committed
599
        # "//tensorflow",
600
    ],
601
602
603
604
605
606
607
)

py_test(
    name = "overfeat_test",
    size = "medium",
    srcs = ["nets/overfeat_test.py"],
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
608
609
    deps = [
        ":overfeat",
610
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
611
    ],
612
613
)

614
615
616
617
py_library(
    name = "pix2pix",
    srcs = ["nets/pix2pix.py"],
    srcs_version = "PY2AND3",
618
    deps = [
pkulzc's avatar
pkulzc committed
619
        # "//tensorflow",
620
    ],
621
622
623
624
625
626
627
628
)

py_test(
    name = "pix2pix_test",
    srcs = ["nets/pix2pix_test.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":pix2pix",
629
        # "//tensorflow",
630
631
632
    ],
)

633
634
635
636
py_library(
    name = "resnet_utils",
    srcs = ["nets/resnet_utils.py"],
    srcs_version = "PY2AND3",
637
    deps = [
pkulzc's avatar
pkulzc committed
638
        # "//tensorflow",
639
    ],
640
641
642
643
644
645
646
647
)

py_library(
    name = "resnet_v1",
    srcs = ["nets/resnet_v1.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":resnet_utils",
648
        # "//tensorflow",
649
650
651
652
653
654
655
    ],
)

py_test(
    name = "resnet_v1_test",
    size = "medium",
    srcs = ["nets/resnet_v1_test.py"],
Derek Chow's avatar
Derek Chow committed
656
    shard_count = 2,
657
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
658
    deps = [
659
        ":resnet_utils",
Derek Chow's avatar
Derek Chow committed
660
        ":resnet_v1",
661
        # "//numpy",
662
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
663
    ],
664
665
666
667
668
669
670
671
)

py_library(
    name = "resnet_v2",
    srcs = ["nets/resnet_v2.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":resnet_utils",
672
        # "//tensorflow",
673
674
675
676
677
678
679
    ],
)

py_test(
    name = "resnet_v2_test",
    size = "medium",
    srcs = ["nets/resnet_v2_test.py"],
Derek Chow's avatar
Derek Chow committed
680
    shard_count = 2,
681
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
682
    deps = [
683
        ":resnet_utils",
Derek Chow's avatar
Derek Chow committed
684
        ":resnet_v2",
685
        # "//numpy",
686
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
687
    ],
688
689
)

690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
py_library(
    name = "s3dg",
    srcs = ["nets/s3dg.py"],
    srcs_version = "PY2AND3",
    deps = [
        ":i3d_utils",
        # "//tensorflow",
    ],
)

py_test(
    name = "s3dg_test",
    size = "large",
    srcs = ["nets/s3dg_test.py"],
    shard_count = 3,
    srcs_version = "PY2AND3",
    deps = [
        ":s3dg",
        # "//tensorflow",
    ],
)

712
713
714
715
py_library(
    name = "vgg",
    srcs = ["nets/vgg.py"],
    srcs_version = "PY2AND3",
716
    deps = [
pkulzc's avatar
pkulzc committed
717
        # "//tensorflow",
718
    ],
719
720
721
722
723
724
725
)

py_test(
    name = "vgg_test",
    size = "medium",
    srcs = ["nets/vgg_test.py"],
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
726
727
    deps = [
        ":vgg",
728
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
729
    ],
730
731
732
733
734
)

py_library(
    name = "nets_factory",
    srcs = ["nets/nets_factory.py"],
Derek Chow's avatar
Derek Chow committed
735
736
    deps = [
        ":nets",
737
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
738
    ],
739
740
741
742
)

py_test(
    name = "nets_factory_test",
743
    size = "large",
744
    srcs = ["nets/nets_factory_test.py"],
745
    shard_count = 3,
746
    srcs_version = "PY2AND3",
Derek Chow's avatar
Derek Chow committed
747
748
    deps = [
        ":nets_factory",
749
        # "//tensorflow",
Derek Chow's avatar
Derek Chow committed
750
    ],
751
752
)

753
754
py_library(
    name = "train_image_classifier_lib",
755
756
757
758
759
760
    srcs = ["train_image_classifier.py"],
    deps = [
        ":dataset_factory",
        ":model_deploy",
        ":nets_factory",
        ":preprocessing_factory",
761
        # "//tensorflow",
762
    ],
763
764
)

765
766
767
py_binary(
    name = "train_image_classifier",
    srcs = ["train_image_classifier.py"],
768
769
    # WARNING: not supported in bazel; will be commented out by copybara.
    # paropts = ["--compress"],
770
771
772
773
774
    deps = [
        ":train_image_classifier_lib",
    ],
)

775
776
py_library(
    name = "eval_image_classifier_lib",
777
    srcs = ["eval_image_classifier.py"],
778
779
    deps = [
        ":dataset_factory",
780
        ":nets_factory",
781
        ":preprocessing_factory",
782
        # "//tensorflow",
783
784
    ],
)
785

786
787
788
789
790
791
792
793
py_binary(
    name = "eval_image_classifier",
    srcs = ["eval_image_classifier.py"],
    deps = [
        ":eval_image_classifier_lib",
    ],
)

794
795
796
py_binary(
    name = "export_inference_graph",
    srcs = ["export_inference_graph.py"],
797
798
    # WARNING: not supported in bazel; will be commented out by copybara.
    # paropts = ["--compress"],
799
800
801
    deps = [
        ":dataset_factory",
        ":nets_factory",
802
803
        # "//tensorflow",
        # "//tensorflow/python:platform",
804
805
806
807
808
809
810
811
812
813
814
815
816
    ],
)

py_test(
    name = "export_inference_graph_test",
    size = "medium",
    srcs = ["export_inference_graph_test.py"],
    srcs_version = "PY2AND3",
    tags = [
        "manual",
    ],
    deps = [
        ":export_inference_graph",
817
818
        # "//tensorflow",
        # "//tensorflow/python:platform",
819
820
    ],
)