MCPcopy Create free account

hub / github.com/PanJinquan/tensorflow_models_learning / functions

Functions624 in github.com/PanJinquan/tensorflow_models_learning

↓ 21 callersFunctioncreate_test_input
Create test input tensor. Args: batch_size: The number of images per batch or `None` if unknown. height: The height of each image or `None`
slim/nets/resnet_v1_test.py:30
↓ 19 callersFunctioncreate_test_input
Create test input tensor. Args: batch_size: The number of images per batch or `None` if unknown. height: The height of each image or `None`
slim/nets/resnet_v2_test.py:30
↓ 19 callersFunctionop
(opfunc, **params)
slim/nets/mobilenet/mobilenet.py:112
↓ 16 callersFunctionresnet_v1_block
Helper function for creating a resnet_v1 bottleneck block. Args: scope: The scope of the block. base_depth: The depth of the bottleneck lay
slim/nets/resnet_v1.py:258
↓ 16 callersFunctionresnet_v2_block
Helper function for creating a resnet_v2 bottleneck block. Args: scope: The scope of the block. base_depth: The depth of the bottleneck lay
slim/nets/resnet_v2.py:227
↓ 12 callersMethod_resnet_small
A shallow and thin ResNet v1 for faster tests.
slim/nets/resnet_v1_test.py:311
↓ 12 callersFunctionadd_and_check_final
(name, net)
slim/nets/inception_resnet_v2.py:153
↓ 12 callersMethodclone_scope
Name scope to create the clone. Args: clone_index: Int, representing the clone_index. Returns: A name_scope suitable for `tf.nam
slim/deployment/model_deploy.py:600
↓ 12 callersFunctionget_example_nums
统计tf_records图像的个数(example)个数 :param tf_records_filenames: tf_records文件路径 :return:
create_tf_record.py:32
↓ 12 callersFunctionread_records
解析record文件:源文件的图像数据是RGB,uint8,[0,255],一般作为训练数据时,需要归一化到[0,1] :param filename: :param resize_height: :param resize_width: :param ty
create_tf_record.py:137
↓ 11 callersMethod_resnet_small
A shallow and thin ResNet v2 for faster tests.
slim/nets/resnet_v2_test.py:247
↓ 11 callersFunctionadd_and_check_final
(name, net)
slim/nets/inception_v4.py:169
↓ 11 callersMethodclone_device
Device used to create the clone and all the ops inside the clone. Args: clone_index: Int, representing the clone_index. Returns:
slim/deployment/model_deploy.py:577
↓ 11 callersFunctionget_batch_images
:param images:图像 :param labels:标签 :param batch_size: :param labels_nums:标签个数 :param one_hot:是否将labels转为one_hot的形式 :param shuf
create_tf_record.py:110
↓ 10 callersMethod_layer_output_size
(self, input_size, kernel_size=4, stride=2, pad=2)
slim/nets/pix2pix_test.py:94
↓ 9 callersMethodoptimizer_device
Device to use with the optimizer. Returns: A value suitable for `tf.device()`.
slim/deployment/model_deploy.py:619
↓ 8 callersMethodinputs_device
Device to use to build the inputs. Returns: A value suitable for `tf.device()`.
slim/deployment/model_deploy.py:630
↓ 8 callersMethodvariables_device
Returns the device to use for variables created inside the clone. Returns: A value suitable for `tf.device()`.
slim/deployment/model_deploy.py:642
↓ 7 callersFunctionGetInt
(name, root, index=0)
slim/datasets/process_bounding_boxes.py:105
↓ 6 callersFunction_bytes_feature
Wrapper for inserting bytes features into Example proto.
slim/datasets/build_imagenet_data.py:173
↓ 6 callersFunctionadd_and_check_endpoint
(endpoint_name, net)
slim/nets/nasnet/nasnet.py:446
↓ 6 callersMethodcaching_device
Returns the device to use for caching variables. Variables are cached on the worker CPU when using replicas. Returns: A device string
slim/deployment/model_deploy.py:564
↓ 5 callersFunction_int64_feature
Wrapper for inserting int64 features into Example proto.
slim/datasets/build_imagenet_data.py:159
↓ 5 callersFunctionadd_and_check_endpoint
(endpoint_name, net)
slim/nets/nasnet/pnasnet.py:93
↓ 5 callersFunctionfind_ops
Find ops of a given type in graphdef or a graph. Args: optype: operation type (e.g. Conv2D) Returns: List of operations.
slim/nets/mobilenet/mobilenet_v2_test.py:30
↓ 4 callersFunction_fixed_padding
Pads the input along the spatial dimensions independently of input size. Pads the input such that if it was used in a convolution with 'VALID' padd
slim/nets/mobilenet/conv_blocks.py:24
↓ 4 callersFunction_float_feature
Wrapper for inserting float features into Example proto.
slim/datasets/build_imagenet_data.py:166
↓ 4 callersMethod_input_and_output_same_shape_helper
(self, kernel_size)
slim/nets/cyclegan_test.py:58
↓ 4 callersFunction_int64_feature
(value)
create_tf_record.py:23
↓ 4 callersFunctionget_channel_dim
(shape, data_format=INVALID)
slim/nets/nasnet/nasnet_utils.py:63
↓ 4 callersFunctionpadded
(net, scope)
slim/nets/pix2pix.py:246
↓ 4 callersFunctionresnet_v1
Generator for v1 ResNet models. This function generates a family of ResNet v1 models. See the resnet_v1_*() methods for specific model instantiat
slim/nets/resnet_v1.py:142
↓ 4 callersFunctionresnet_v2
Generator for v2 (preactivation) ResNet models. This function generates a family of ResNet v2 models. See the resnet_v2_*() methods for specific
slim/nets/resnet_v2.py:111
↓ 3 callersFunctionGetItem
(name, root, index=0)
slim/datasets/process_bounding_boxes.py:95
↓ 3 callersFunction_build_nasnet_base
Constructs a NASNet image model.
slim/nets/nasnet/nasnet.py:435
↓ 3 callersMethod_error_if_height_not_multiple_of_four_helper
(self, height)
slim/nets/cyclegan_test.py:78
↓ 3 callersMethod_error_if_width_not_multiple_of_four_helper
(self, width)
slim/nets/cyclegan_test.py:94
↓ 3 callersMethod_test_generator_graph_helper
Check that generator can take small and non-square inputs.
slim/nets/cyclegan_test.py:37
↓ 3 callersFunction_update_hparams
Update hparams for given is_training option.
slim/nets/nasnet/nasnet.py:110
↓ 3 callersMethoddecode_jpeg
(self, image_data)
slim/datasets/build_imagenet_data.py:258
↓ 3 callersFunctionint64_feature
Returns a TF-Feature of int64s. Args: values: A scalar or list of values. Returns: A TF-Feature.
slim/datasets/dataset_utils.py:30
↓ 3 callersFunctionnetwork_fn
(images, **kwargs)
slim/nets/nets_factory.py:144
↓ 3 callersFunctionread_image
读取图片数据,默认返回的是uint8,[0,255] :param filename: :param resize_height: :param resize_width: :param normalization:是否归一化到[0.,1.0] :r
create_tf_record.py:82
↓ 3 callersFunctionsafe_arg_scope
Returns `slim.arg_scope` with all None arguments removed. Arguments: funcs: Functions to pass to `arg_scope`. **kwargs: Arguments to pass t
slim/nets/mobilenet/mobilenet.py:127
↓ 3 callersFunctionwrapped_partial
(func, *args, **kwargs)
slim/nets/mobilenet_v1.py:395
↓ 3 callersFunctionwrapped_partial
(func, *args, **kwargs)
slim/nets/mobilenet/mobilenet_v2.py:158
↓ 2 callersMethod__init__
(self, num_conv_filters, operations, used_hiddenstates, hiddenstate_indices, drop_path_keep_pro
slim/nets/nasnet/nasnet_utils.py:253
↓ 2 callersFunction_add_to_tfrecord
Loads data from the binary MNIST files and writes files to a TFRecord. Args: data_filename: The filename of the MNIST images. labels_filena
slim/datasets/download_and_convert_mnist.py:102
↓ 2 callersFunction_add_to_tfrecord
Loads data from the cifar10 pickle files and writes files to a TFRecord. Args: filename: The filename of the cifar10 pickle file. tfrecord_
slim/datasets/download_and_convert_cifar10.py:64
↓ 2 callersMethod_apply_conv_operation
Applies the predicted conv operation to net.
slim/nets/nasnet/nasnet_utils.py:345
↓ 2 callersFunction_aspect_preserving_resize
Resize images preserving the original aspect ratio. Args: image: A 3-D image `Tensor`. smallest_side: A python integer or scalar `Tensor` i
slim/preprocessing/vgg_preprocessing.py:261
↓ 2 callersFunction_build_pnasnet_base
Constructs a PNASNet image model.
slim/nets/nasnet/pnasnet.py:83
↓ 2 callersFunction_convert_dataset
Converts the given filenames to a TFRecord dataset. Args: split_name: The name of the dataset, either 'train' or 'validation'. filenames: A
slim/datasets/download_and_convert_flowers.py:107
↓ 2 callersFunction_crop
Crops the given image using the provided offsets and sizes. Note that the method doesn't assume we know the input image size but it does assume w
slim/preprocessing/vgg_preprocessing.py:47
↓ 2 callersFunction_fixed_padding
Pads the input along the spatial dimensions independently of input size. Pads the input such that if it was used in a convolution with 'VALID' padd
slim/nets/mobilenet_v1.py:142
↓ 2 callersFunction_gather_clone_loss
Gather the loss for a single clone. Args: clone: A Clone namedtuple. num_clones: The number of clones being deployed. regularization_lo
slim/deployment/model_deploy.py:198
↓ 2 callersFunction_get_dataset_filename
(dataset_dir, split_name, shard_id)
slim/datasets/download_and_convert_flowers.py:101
↓ 2 callersFunction_get_output_filename
Creates the output filename. Args: dataset_dir: The directory where the temporary files are stored. split_name: The name of the train/test
slim/datasets/download_and_convert_mnist.py:132
↓ 2 callersFunction_get_output_filename
Creates the output filename. Args: dataset_dir: The dataset directory where the dataset is stored. split_name: The name of the train/test s
slim/datasets/download_and_convert_cifar10.py:111
↓ 2 callersFunction_mean_image_subtraction
Subtracts the given means from each image channel. For example: means = [123.68, 116.779, 103.939] image = _mean_image_subtraction(image, m
slim/preprocessing/vgg_preprocessing.py:198
↓ 2 callersFunction_process_dataset
Process a complete data set and save it as a TFRecord. Args: name: string, unique identifier specifying the data set. directory: string, ro
slim/datasets/build_imagenet_data.py:584
↓ 2 callersMethod_reduced_default_blocks
Returns the default blocks, scaled down to make test run faster.
slim/nets/pix2pix_test.py:27
↓ 2 callersFunction_reduced_kernel_size_for_small_input
Define kernel size which is automatically reduced for small input. If the shape of the input images is unknown at graph construction time this fu
slim/nets/inception_v3.py:548
↓ 2 callersFunction_set_arg_scope_defaults
Sets arg scope defaults for all items present in defaults. Args: defaults: dictionary/list of pairs, containing a mapping from function to
slim/nets/mobilenet/mobilenet.py:73
↓ 2 callersFunction_split_divisible
Evenly splits num, num_ways so each piece is a multiple of divisible_by.
slim/nets/mobilenet/conv_blocks.py:60
↓ 2 callersFunctionapply_with_random_selector
Computes func(x, sel), with sel sampled from [0...num_cases-1]. Args: x: input Tensor. func: Python function to apply. num_cases: Pytho
slim/preprocessing/inception_preprocessing.py:26
↓ 2 callersFunctionbytes_feature
Returns a TF-Feature of bytes. Args: values: A string. Returns: A TF-Feature.
slim/datasets/dataset_utils.py:44
↓ 2 callersFunctioncreate_records
实现将图像原始数据,label,长,宽等信息保存为record文件 注意:读取的图像数据默认是uint8,再转为tf的字符串型BytesList保存,解析请需要根据需要转换类型 :param image_dir:原始图像的目录 :param file:输入保存图片信
create_tf_record.py:196
↓ 2 callersMethoddecode_jpeg
(self, sess, image_data)
slim/datasets/download_and_convert_flowers.py:64
↓ 2 callersFunctionfactorized_reduction
Reduces the shape of net without information loss due to striding.
slim/nets/nasnet/nasnet_utils.py:87
↓ 2 callersFunctionget_channel_index
(data_format=INVALID)
slim/nets/nasnet/nasnet_utils.py:56
↓ 2 callersFunctionget_files_list
实现遍历dir目录下,所有文件(包含子文件夹的文件) :param dir:指定文件夹目录 :return:包含所有文件的列表->list
create_labels_files.py:34
↓ 2 callersFunctionshow_image
显示图片 :param title: 图像标题 :param image: 图像的数据 :return:
create_tf_record.py:43
↓ 2 callersFunctionsplit_conv
Creates a split convolution. Split convolution splits the input and output into 'num_blocks' blocks of approximately the same size each, and on
slim/nets/mobilenet/conv_blocks.py:317
↓ 2 callersFunctionwrite_txt
保存txt数据 :param content:需要保存的数据,type->list :param filename:文件名 :param mode:读写模式:'w' or 'a' :return: void
create_labels_files.py:14
↓ 1 callersFunctionFindNumberBoundingBoxes
(root)
slim/datasets/process_bounding_boxes.py:109
↓ 1 callersFunctionProcessXMLAnnotation
Process a single XML file containing a bounding box.
slim/datasets/process_bounding_boxes.py:118
↓ 1 callersMethod_addBesselsCorrection
(self, sample_size, expected_var)
slim/deployment/model_deploy_test.py:479
↓ 1 callersFunction_add_gradients_summaries
Add histogram summaries to gradients. Note: The summaries are also added to the SUMMARIES collection. Args: grads_and_vars: A list of gradie
slim/deployment/model_deploy.py:449
↓ 1 callersFunction_add_output_tensor_nodes
Adds output nodes. Adjust according to specified implementations. Adds the following nodes for output tensors: * classes: A float32
tools/exporter.py:173
↓ 1 callersMethod_apply_drop_path
Apply drop_path regularization. Args: net: the Tensor that gets drop_path regularization applied. current_step: a float32 Tensor with
slim/nets/nasnet/nasnet_utils.py:404
↓ 1 callersFunction_build_aux_head
Auxiliary head used for all models across all datasets.
slim/nets/nasnet/nasnet.py:224
↓ 1 callersFunction_build_bounding_box_lookup
Build a lookup from image file to bounding boxes. Args: bounding_box_file: string, path to file with bounding boxes annotations. Assumes
slim/datasets/build_imagenet_data.py:636
↓ 1 callersFunction_build_model_graph
Build the desired graph.
tools/exporter.py:285
↓ 1 callersFunction_build_synset_lookup
Build lookup for synset to human-readable label. Args: imagenet_metadata_file: string, path to file containing mapping from synset to hum
slim/datasets/build_imagenet_data.py:604
↓ 1 callersFunction_bytes_feature
(value)
create_tf_record.py:26
↓ 1 callersMethod_cell_base
Runs the beginning of the conv cell before the predicted ops are run.
slim/nets/nasnet/nasnet_utils.py:284
↓ 1 callersFunction_central_crop
Performs central crops of the given image list. Args: image_list: a list of image tensors of the same dimension but possibly varying chan
slim/preprocessing/vgg_preprocessing.py:173
↓ 1 callersFunction_cifar_stem
Stem used for models trained on Cifar.
slim/nets/nasnet/nasnet.py:275
↓ 1 callersFunction_clean_up_temporary_files
Removes temporary files used to create the dataset. Args: dataset_dir: The directory where the temporary files are stored.
slim/datasets/download_and_convert_mnist.py:172
↓ 1 callersFunction_clean_up_temporary_files
Removes temporary files used to create the dataset. Args: dataset_dir: The directory where the temporary files are stored.
slim/datasets/download_and_convert_flowers.py:153
↓ 1 callersFunction_clean_up_temporary_files
Removes temporary files used to create the dataset. Args: dataset_dir: The directory where the temporary files are stored.
slim/datasets/download_and_convert_cifar10.py:145
↓ 1 callersMethod_combine_unused_states
Concatenate the unused hidden states of the cell.
slim/nets/nasnet/nasnet_utils.py:373
↓ 1 callersFunction_configure_learning_rate
Configures the learning rate. Args: num_samples_per_epoch: The number of samples in each epoch of training. global_step: The global_step te
slim/train_image_classifier.py:229
↓ 1 callersFunction_configure_optimizer
Configures the optimizer used for training. Args: learning_rate: A scalar or `Tensor` learning rate. Returns: An instance of an optimize
slim/train_image_classifier.py:273
↓ 1 callersFunction_convert_to_example
Build an Example proto for an example. Args: filename: string, path to an image file, e.g., '/path/to/example.JPG' image_buffer: string, JP
slim/datasets/build_imagenet_data.py:178
↓ 1 callersFunction_dataset_exists
(dataset_dir)
slim/datasets/download_and_convert_flowers.py:167
↓ 1 callersFunction_default_generator_blocks
Returns the default generator block definitions. Returns: A list of generator blocks.
slim/nets/pix2pix.py:111
↓ 1 callersFunction_download_dataset
Downloads MNIST locally. Args: dataset_dir: The directory where the temporary files are stored.
slim/datasets/download_and_convert_mnist.py:145
↓ 1 callersFunction_dynamic_or_static_shape
(tensor)
slim/nets/cyclegan.py:119
next →1–100 of 624, ranked by callers