123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- # Description:
- # Contains files for loading, training and evaluating TF-Slim-based models.
- package(default_visibility = [
- ":internal",
- "//domain_adaptation:__subpackages__",
- ])
- licenses(["notice"]) # Apache 2.0
- exports_files(["LICENSE"])
- package_group(name = "internal")
- py_library(
- name = "dataset_utils",
- srcs = ["datasets/dataset_utils.py"],
- )
- py_library(
- name = "download_and_convert_cifar10",
- srcs = ["datasets/download_and_convert_cifar10.py"],
- deps = [":dataset_utils"],
- )
- py_library(
- name = "download_and_convert_flowers",
- srcs = ["datasets/download_and_convert_flowers.py"],
- deps = [":dataset_utils"],
- )
- py_library(
- name = "download_and_convert_mnist",
- srcs = ["datasets/download_and_convert_mnist.py"],
- deps = [":dataset_utils"],
- )
- 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",
- ],
- )
- py_binary(
- name = "cifar10",
- srcs = ["datasets/cifar10.py"],
- deps = [":dataset_utils"],
- )
- py_binary(
- name = "flowers",
- srcs = ["datasets/flowers.py"],
- deps = [":dataset_utils"],
- )
- py_binary(
- name = "imagenet",
- srcs = ["datasets/imagenet.py"],
- deps = [":dataset_utils"],
- )
- py_binary(
- name = "mnist",
- srcs = ["datasets/mnist.py"],
- deps = [":dataset_utils"],
- )
- py_library(
- name = "dataset_factory",
- srcs = ["datasets/dataset_factory.py"],
- deps = [
- ":cifar10",
- ":flowers",
- ":imagenet",
- ":mnist",
- ],
- )
- py_library(
- name = "model_deploy",
- srcs = ["deployment/model_deploy.py"],
- )
- py_test(
- name = "model_deploy_test",
- srcs = ["deployment/model_deploy_test.py"],
- srcs_version = "PY2AND3",
- deps = [":model_deploy"],
- )
- py_library(
- name = "cifarnet_preprocessing",
- srcs = ["preprocessing/cifarnet_preprocessing.py"],
- )
- py_library(
- name = "inception_preprocessing",
- srcs = ["preprocessing/inception_preprocessing.py"],
- )
- py_library(
- name = "lenet_preprocessing",
- srcs = ["preprocessing/lenet_preprocessing.py"],
- )
- py_library(
- name = "vgg_preprocessing",
- srcs = ["preprocessing/vgg_preprocessing.py"],
- )
- py_library(
- name = "preprocessing_factory",
- srcs = ["preprocessing/preprocessing_factory.py"],
- deps = [
- ":cifarnet_preprocessing",
- ":inception_preprocessing",
- ":lenet_preprocessing",
- ":vgg_preprocessing",
- ],
- )
- # Typical networks definitions.
- py_library(
- name = "nets",
- deps = [
- ":alexnet",
- ":cifarnet",
- ":inception",
- ":lenet",
- ":overfeat",
- ":resnet_v1",
- ":resnet_v2",
- ":vgg",
- ],
- )
- py_library(
- name = "alexnet",
- srcs = ["nets/alexnet.py"],
- srcs_version = "PY2AND3",
- )
- py_test(
- name = "alexnet_test",
- size = "medium",
- srcs = ["nets/alexnet_test.py"],
- srcs_version = "PY2AND3",
- deps = [":alexnet"],
- )
- py_library(
- name = "cifarnet",
- srcs = ["nets/cifarnet.py"],
- )
- py_library(
- name = "inception",
- srcs = ["nets/inception.py"],
- srcs_version = "PY2AND3",
- deps = [
- ":inception_resnet_v2",
- ":inception_v1",
- ":inception_v2",
- ":inception_v3",
- ":inception_v4",
- ],
- )
- py_library(
- name = "inception_utils",
- srcs = ["nets/inception_utils.py"],
- srcs_version = "PY2AND3",
- )
- py_library(
- name = "inception_v1",
- srcs = ["nets/inception_v1.py"],
- srcs_version = "PY2AND3",
- deps = [
- ":inception_utils",
- ],
- )
- py_library(
- name = "inception_v2",
- srcs = ["nets/inception_v2.py"],
- srcs_version = "PY2AND3",
- deps = [
- ":inception_utils",
- ],
- )
- py_library(
- name = "inception_v3",
- srcs = ["nets/inception_v3.py"],
- srcs_version = "PY2AND3",
- deps = [
- ":inception_utils",
- ],
- )
- py_library(
- name = "inception_v4",
- srcs = ["nets/inception_v4.py"],
- srcs_version = "PY2AND3",
- deps = [
- ":inception_utils",
- ],
- )
- py_library(
- name = "inception_resnet_v2",
- srcs = ["nets/inception_resnet_v2.py"],
- srcs_version = "PY2AND3",
- )
- py_test(
- name = "inception_v1_test",
- size = "large",
- srcs = ["nets/inception_v1_test.py"],
- shard_count = 3,
- srcs_version = "PY2AND3",
- deps = [":inception"],
- )
- py_test(
- name = "inception_v2_test",
- size = "large",
- srcs = ["nets/inception_v2_test.py"],
- shard_count = 3,
- srcs_version = "PY2AND3",
- deps = [":inception"],
- )
- py_test(
- name = "inception_v3_test",
- size = "large",
- srcs = ["nets/inception_v3_test.py"],
- shard_count = 3,
- srcs_version = "PY2AND3",
- deps = [":inception"],
- )
- py_test(
- name = "inception_v4_test",
- size = "large",
- srcs = ["nets/inception_v4_test.py"],
- shard_count = 3,
- srcs_version = "PY2AND3",
- deps = [":inception"],
- )
- py_test(
- name = "inception_resnet_v2_test",
- size = "large",
- srcs = ["nets/inception_resnet_v2_test.py"],
- shard_count = 3,
- srcs_version = "PY2AND3",
- deps = [":inception"],
- )
- py_library(
- name = "lenet",
- srcs = ["nets/lenet.py"],
- )
- py_library(
- name = "overfeat",
- srcs = ["nets/overfeat.py"],
- srcs_version = "PY2AND3",
- )
- py_test(
- name = "overfeat_test",
- size = "medium",
- srcs = ["nets/overfeat_test.py"],
- srcs_version = "PY2AND3",
- deps = [":overfeat"],
- )
- py_library(
- name = "resnet_utils",
- srcs = ["nets/resnet_utils.py"],
- srcs_version = "PY2AND3",
- )
- py_library(
- name = "resnet_v1",
- srcs = ["nets/resnet_v1.py"],
- srcs_version = "PY2AND3",
- deps = [
- ":resnet_utils",
- ],
- )
- py_test(
- name = "resnet_v1_test",
- size = "medium",
- srcs = ["nets/resnet_v1_test.py"],
- srcs_version = "PY2AND3",
- deps = [":resnet_v1"],
- )
- py_library(
- name = "resnet_v2",
- srcs = ["nets/resnet_v2.py"],
- srcs_version = "PY2AND3",
- deps = [
- ":resnet_utils",
- ],
- )
- py_test(
- name = "resnet_v2_test",
- size = "medium",
- srcs = ["nets/resnet_v2_test.py"],
- srcs_version = "PY2AND3",
- deps = [":resnet_v2"],
- )
- py_library(
- name = "vgg",
- srcs = ["nets/vgg.py"],
- srcs_version = "PY2AND3",
- )
- py_test(
- name = "vgg_test",
- size = "medium",
- srcs = ["nets/vgg_test.py"],
- srcs_version = "PY2AND3",
- deps = [":vgg"],
- )
- py_library(
- name = "nets_factory",
- srcs = ["nets/nets_factory.py"],
- deps = [":nets"],
- )
- py_test(
- name = "nets_factory_test",
- size = "medium",
- srcs = ["nets/nets_factory_test.py"],
- srcs_version = "PY2AND3",
- deps = [":nets_factory"],
- )
- py_binary(
- name = "train_image_classifier",
- srcs = ["train_image_classifier.py"],
- deps = [
- ":dataset_factory",
- ":model_deploy",
- ":nets_factory",
- ":preprocessing_factory",
- ],
- )
- py_binary(
- name = "eval_image_classifier",
- srcs = ["eval_image_classifier.py"],
- deps = [
- ":dataset_factory",
- ":model_deploy",
- ":nets_factory",
- ":preprocessing_factory",
- ],
- )
|