Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PanJinquan/tensorflow_models_learning
/ functions
Functions
624 in github.com/PanJinquan/tensorflow_models_learning
⨍
Functions
624
◇
Types & classes
42
↓ 1 callers
Function
_extract_images
Extract the images into a numpy array. Args: filename: The path to an MNIST images file. num_images: The number of images in the file. R
slim/datasets/download_and_convert_mnist.py:64
↓ 1 callers
Function
_extract_labels
Extract the labels into a vector of int64 label IDs. Args: filename: The path to an MNIST labels file. num_labels: The number of labels in
slim/datasets/download_and_convert_mnist.py:84
↓ 1 callers
Function
_find_human_readable_labels
Build a list of human-readable labels. Args: synsets: list of strings; each string is a unique WordNet ID. synset_to_human: dict of synset
slim/datasets/build_imagenet_data.py:540
↓ 1 callers
Function
_find_image_bounding_boxes
Find the bounding boxes for a given image file. Args: filenames: list of strings; each string is a path to an image file. image_to_bboxes:
slim/datasets/build_imagenet_data.py:558
↓ 1 callers
Function
_find_image_files
Build a list of all images files and labels in the data set. Args: data_dir: string, path to the root directory of images. Assumes that
slim/datasets/build_imagenet_data.py:465
↓ 1 callers
Function
_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/mobilenet.py:36
↓ 1 callers
Function
_get_filenames_and_classes
Returns a list of filenames and inferred class names. Args: dataset_dir: A directory containing a set of subdirectories representing clas
slim/datasets/download_and_convert_flowers.py:72
↓ 1 callers
Function
_get_init_fn
Returns a function run by the chief worker to warm-start the training. Note that the init_fn is only run when initializing the model during the ver
slim/train_image_classifier.py:325
↓ 1 callers
Function
_get_outputs_from_inputs
(input_tensors, model, output_collection_name)
tools/exporter.py:275
↓ 1 callers
Function
_get_variables_to_train
Returns a list of variables to train. Returns: A list of variables to train by the optimizer.
slim/train_image_classifier.py:372
↓ 1 callers
Function
_imagenet_stem
Stem used for models trained on ImageNet.
slim/nets/nasnet/nasnet.py:248
↓ 1 callers
Function
_is_cmyk
Determine if file contains a CMYK JPEG format image. Args: filename: string, path of the image file. Returns: boolean indicating if the
slim/datasets/build_imagenet_data.py:280
↓ 1 callers
Function
_is_png
Determine if a file contains a PNG format image. Args: filename: string, path of the image file. Returns: boolean indicating if the imag
slim/datasets/build_imagenet_data.py:266
↓ 1 callers
Function
_make_divisible
(v, divisor, min_value=None)
slim/nets/mobilenet/mobilenet.py:62
↓ 1 callers
Function
_make_divisible
(v, divisor, min_value=None)
slim/nets/mobilenet/conv_blocks.py:50
↓ 1 callers
Function
_operation_to_filter_shape
(operation)
slim/nets/nasnet/nasnet_utils.py:144
↓ 1 callers
Function
_operation_to_info
Takes in operation name and returns meta information. An example would be 'separable_3x3_4' -> (3, 4). Args: operation: String that correspo
slim/nets/nasnet/nasnet_utils.py:159
↓ 1 callers
Function
_operation_to_num_layers
(operation)
slim/nets/nasnet/nasnet_utils.py:152
↓ 1 callers
Function
_operation_to_pooling_info
Parses the pooling operation string to return its type and shape.
slim/nets/nasnet/nasnet_utils.py:219
↓ 1 callers
Function
_operation_to_pooling_shape
Takes in the operation string and returns the pooling kernel shape.
slim/nets/nasnet/nasnet_utils.py:209
↓ 1 callers
Function
_operation_to_pooling_type
Takes in the operation string and returns the pooling type.
slim/nets/nasnet/nasnet_utils.py:203
↓ 1 callers
Function
_optimize_clone
Compute losses and gradients for a single clone. Args: optimizer: A tf.Optimizer object. clone: A Clone namedtuple. num_clones: The nu
slim/deployment/model_deploy.py:241
↓ 1 callers
Function
_pooling
Parses operation and performs the correct pooling operation on net.
slim/nets/nasnet/nasnet_utils.py:226
↓ 1 callers
Function
_process_image
Process a single image file. Args: filename: string, path to an image file e.g., '/path/to/example.JPG'. coder: instance of ImageCoder to p
slim/datasets/build_imagenet_data.py:305
↓ 1 callers
Function
_process_image_files
Process and save list of images as TFRecord of Example protos. Args: name: string, unique identifier specifying the data set filenames: lis
slim/datasets/build_imagenet_data.py:413
↓ 1 callers
Function
_random_crop
Crops the given list of images. The function applies the same crop to each image in the list. This can be effectively applied when there are mult
slim/preprocessing/vgg_preprocessing.py:90
↓ 1 callers
Method
_reduce_prev_layer
Matches dimension of prev_layer to the curr_layer.
slim/nets/nasnet/nasnet_utils.py:264
↓ 1 callers
Function
_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/mobilenet_v1.py:406
↓ 1 callers
Function
_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_v2.py:541
↓ 1 callers
Method
_resnet_plain
A plain ResNet without extra layers before or after the ResNet blocks.
slim/nets/resnet_v1_test.py:154
↓ 1 callers
Method
_resnet_plain
A plain ResNet without extra layers before or after the ResNet blocks.
slim/nets/resnet_v2_test.py:154
↓ 1 callers
Function
_scope_all
(scope, default_scope=None)
slim/nets/mobilenet/mobilenet.py:298
↓ 1 callers
Function
_smallest_size_at_least
Computes new shape with the smallest side equal to `smallest_side`. Computes new shape with the smallest side equal to `smallest_side` while pres
slim/preprocessing/vgg_preprocessing.py:231
↓ 1 callers
Method
_stack_blocks_nondense
A simplified ResNet Block stacker without output stride control.
slim/nets/resnet_v1_test.py:190
↓ 1 callers
Method
_stack_blocks_nondense
A simplified ResNet Block stacker without output stride control.
slim/nets/resnet_v2_test.py:190
↓ 1 callers
Function
_stacked_separable_conv
Takes in an operations and parses it to the correct sep operation.
slim/nets/nasnet/nasnet_utils.py:175
↓ 1 callers
Function
_sum_clones_gradients
Calculate the sum gradient for each shared variable across all clones. This function assumes that the clone_grads has been scaled appropriately by
slim/deployment/model_deploy.py:416
↓ 1 callers
Function
_v1_compatible_scope_naming
(scope)
slim/nets/mobilenet/conv_blocks.py:79
↓ 1 callers
Function
_validate_image_inputs
(inputs)
slim/nets/dcgan.py:28
↓ 1 callers
Function
batch_test
:param record_file: record文件路径 :param resize_height: :param resize_width: :return: :PS:image_batch, label_batch一般作为网络的输入
create_tf_record.py:262
↓ 1 callers
Function
block8
Builds the 8x8 resnet block.
slim/nets/inception_resnet_v2.py:85
↓ 1 callers
Function
block_inception_a
Builds Inception-A block for Inception v4 network.
slim/nets/inception_v4.py:34
↓ 1 callers
Function
block_inception_b
Builds Inception-B block for Inception v4 network.
slim/nets/inception_v4.py:75
↓ 1 callers
Function
block_inception_c
Builds Inception-C block for Inception v4 network.
slim/nets/inception_v4.py:121
↓ 1 callers
Function
block_reduction_a
Builds Reduction-A block for Inception v4 network.
slim/nets/inception_v4.py:55
↓ 1 callers
Function
block_reduction_b
Builds Reduction-B block for Inception v4 network.
slim/nets/inception_v4.py:99
↓ 1 callers
Function
build_model
Build the mobilenet_v1 model for evaluation. Returns: g: graph with rewrites after insertion of quantization ops and batch norm folding.
slim/nets/mobilenet_v1_eval.py:104
↓ 1 callers
Function
build_model
Builds graph for model to train with rewrites for quantization. Returns: g: Graph with fake quantization ops and batch norm folding suitable fo
slim/nets/mobilenet_v1_train.py:114
↓ 1 callers
Function
cifar_config
()
slim/nets/nasnet/nasnet.py:39
↓ 1 callers
Method
cmyk_to_rgb
(self, image_data)
slim/datasets/build_imagenet_data.py:254
↓ 1 callers
Function
create_clones
Creates multiple clones according to config using a `model_fn`. The returned values of `model_fn(*args, **kwargs)` are collected along with the s
slim/deployment/model_deploy.py:143
↓ 1 callers
Function
create_readable_names_for_imagenet_labels
Create a dict mapping label id to human readable string. Returns: labels_to_names: dictionary where keys are integers from to 1000 and
slim/datasets/imagenet.py:66
↓ 1 callers
Function
distort_color
Distort the color of a Tensor image. Each color distortion is non-commutative and thus ordering of the color ops matters. Ideally we would random
slim/preprocessing/inception_preprocessing.py:45
↓ 1 callers
Function
distorted_bounding_box_crop
Generates cropped_image using a one of the bboxes randomly distorted. See `tf.image.sample_distorted_bounding_box` for more documentation. Args:
slim/preprocessing/inception_preprocessing.py:99
↓ 1 callers
Function
drop_path
Drops out a whole example hiddenstate with the specified probability.
slim/nets/nasnet/nasnet_utils.py:130
↓ 1 callers
Function
eval_model
Evaluates mobilenet_v1.
slim/nets/mobilenet_v1_eval.py:134
↓ 1 callers
Function
expand_input_by_factor
(n, divisible_by=8)
slim/nets/mobilenet/conv_blocks.py:158
↓ 1 callers
Function
freeze_graph
:param input_checkpoint: :param output_graph: PB模型保存路径 :return:
convert_pb.py:60
↓ 1 callers
Function
freeze_graph_test
:param pb_path:pb文件的路径 :param image_path:测试图片的路径 :return:
convert_pb.py:23
↓ 1 callers
Function
freeze_graph_with_def_protos
Converts all variables in a graph and checkpoint into constants.
tools/exporter.py:41
↓ 1 callers
Function
get_checkpoint_init_fn
Returns the checkpoint init_fn if the checkpoint is provided.
slim/nets/mobilenet_v1_train.py:164
↓ 1 callers
Function
get_learning_rate
()
slim/nets/mobilenet_v1_train.py:57
↓ 1 callers
Function
get_quant_delay
()
slim/nets/mobilenet_v1_train.py:66
↓ 1 callers
Function
global_pool
Applies avg pool to produce 1x1 output. NOTE: This function is funcitonally equivalenet to reduce_mean, but it has baked in average pool which ha
slim/nets/mobilenet/mobilenet.py:389
↓ 1 callers
Function
imagenet_input
Data reader for imagenet. Reads in imagenet data and performs pre-processing on the images. Args: is_training: bool specifying if train or
slim/nets/mobilenet_v1_eval.py:46
↓ 1 callers
Function
imagenet_input
Data reader for imagenet. Reads in imagenet data and performs pre-processing on the images. Args: is_training: bool specifying if train or
slim/nets/mobilenet_v1_train.py:76
↓ 1 callers
Function
inception_resnet_v2_base
Inception model from http://arxiv.org/abs/1602.07261. Constructs an Inception Resnet v2 network from inputs to the given final endpoint. This me
slim/nets/inception_resnet_v2.py:111
↓ 1 callers
Function
inception_v1_base
Defines the Inception V1 base architecture. This architecture is defined in: Going deeper with convolutions Christian Szegedy, Wei Liu, Yan
slim/nets/inception_v1.py:29
↓ 1 callers
Function
inception_v2_base
Inception v2 (6a2). Constructs an Inception v2 network from inputs to the given final endpoint. This method can construct the network up to the l
slim/nets/inception_v2.py:29
↓ 1 callers
Function
inception_v3_base
Inception model from http://arxiv.org/abs/1512.00567. Constructs an Inception v3 network from inputs to the given final endpoint. This method can
slim/nets/inception_v3.py:29
↓ 1 callers
Function
inception_v4_base
Creates the Inception V4 network up to the given final endpoint. Args: inputs: a 4-D tensor of size [batch_size, height, width, 3]. final_e
slim/nets/inception_v4.py:147
↓ 1 callers
Function
large_imagenet_config
Large ImageNet configuration based on PNASNet-5.
slim/nets/nasnet/pnasnet.py:34
↓ 1 callers
Function
large_imagenet_config
()
slim/nets/nasnet/nasnet.py:68
↓ 1 callers
Function
load_labels_file
载图txt文件,文件中每行为一个图片信息,且以空格隔开:图像路径 标签1 标签2,如:test_image/1.jpg 0 2 :param filename: :param labels_num :labels个数 :param shuffle :是否打乱顺序
create_tf_record.py:57
↓ 1 callers
Function
metrics
Specify the metrics for eval. Args: logits: Logits output from the graph. labels: Ground truth labels for inputs. Returns: Eval Op
slim/nets/mobilenet_v1_eval.py:83
↓ 1 callers
Function
mobile_imagenet_config
Mobile ImageNet configuration based on PNASNet-5.
slim/nets/nasnet/pnasnet.py:51
↓ 1 callers
Function
mobile_imagenet_config
()
slim/nets/nasnet/nasnet.py:94
↓ 1 callers
Function
mobilenet
Creates mobilenet V2 network. Inference mode is created by default. To create training use training_scope below. with tf.contrib.slim.arg_scop
slim/nets/mobilenet/mobilenet_v2.py:86
↓ 1 callers
Function
mobilenet_base
Mobilenet base network. Constructs a network from inputs to the given final endpoint. By default the network is constructed in inference mode. To
slim/nets/mobilenet/mobilenet.py:149
↓ 1 callers
Function
mobilenet_v1_base
Mobilenet v1. Constructs a Mobilenet v1 network from inputs to the given final endpoint. Args: inputs: a tensor of shape [batch_size, height
slim/nets/mobilenet_v1.py:168
↓ 1 callers
Function
net_evaluation
(sess,loss,accuracy,val_images_batch,val_labels_batch,val_nums)
mobilenet_train_val.py:32
↓ 1 callers
Function
net_evaluation
(sess,loss,accuracy,val_images_batch,val_labels_batch,val_nums)
resnet_v1_train_val.py:32
↓ 1 callers
Function
net_evaluation
(sess,loss,accuracy,val_images_batch,val_labels_batch,val_nums)
inception_v3_train_val.py:30
↓ 1 callers
Function
net_evaluation
(sess,loss,accuracy,val_images_batch,val_labels_batch,val_nums)
vgg_train_val.py:29
↓ 1 callers
Function
net_evaluation
(sess,loss,accuracy,val_images_batch,val_labels_batch,val_nums)
inception_v1_train_val.py:30
↓ 1 callers
Function
optimize_clones
Compute clone losses and gradients for the given list of `Clones`. Note: The regularization_losses are added to the first clone losses. Args:
slim/deployment/model_deploy.py:267
↓ 1 callers
Method
png_to_jpeg
(self, image_data)
slim/datasets/build_imagenet_data.py:250
↓ 1 callers
Function
predict
(models_path,image_dir,labels_filename,labels_nums, data_format)
predict.py:15
↓ 1 callers
Function
preprocess_for_eval
Prepare one image for evaluation. If height and width are specified it would output an image with that size by applying resize_bilinear. If ce
slim/preprocessing/inception_preprocessing.py:244
↓ 1 callers
Function
preprocess_for_eval
Preprocesses the given image for evaluation. Args: image: A `Tensor` representing an image of arbitrary size. output_height: The height of
slim/preprocessing/vgg_preprocessing.py:319
↓ 1 callers
Function
preprocess_for_eval
Preprocesses the given image for evaluation. Args: image: A `Tensor` representing an image of arbitrary size. output_height: The height of
slim/preprocessing/cifarnet_preprocessing.py:77
↓ 1 callers
Function
preprocess_for_train
Distort one image for training a network. Distorting images provides a useful technique for augmenting the data set during training in order to m
slim/preprocessing/inception_preprocessing.py:156
↓ 1 callers
Function
preprocess_for_train
Preprocesses the given image for training. Note that the actual resizing scale is sampled from [`resize_size_min`, `resize_size_max`]. Args:
slim/preprocessing/vgg_preprocessing.py:286
↓ 1 callers
Function
preprocess_for_train
Preprocesses the given image for training. Note that the actual resizing scale is sampled from [`resize_size_min`, `resize_size_max`]. Args:
slim/preprocessing/cifarnet_preprocessing.py:30
↓ 1 callers
Method
read_image_dims
(self, sess, image_data)
slim/datasets/download_and_convert_flowers.py:60
↓ 1 callers
Function
replace_variable_values_with_moving_averages
Replaces variable values in the checkpoint with their moving averages. If the current checkpoint has shadow variables maintaining moving averages
tools/exporter.py:105
↓ 1 callers
Function
step_train
循环迭代训练过程 :param train_op: 训练op :param loss: loss函数 :param accuracy: 准确率函数 :param train_images_batch: 训练images数据 :param tr
mobilenet_train_val.py:48
↓ 1 callers
Function
step_train
循环迭代训练过程 :param train_op: 训练op :param loss: loss函数 :param accuracy: 准确率函数 :param train_images_batch: 训练images数据 :param tr
resnet_v1_train_val.py:48
↓ 1 callers
Function
step_train
循环迭代训练过程 :param train_op: 训练op :param loss: loss函数 :param accuracy: 准确率函数 :param train_images_batch: 训练images数据 :param tr
inception_v3_train_val.py:46
↓ 1 callers
Function
step_train
循环迭代训练过程 :param train_op: 训练op :param loss: loss函数 :param accuracy: 准确率函数 :param train_images_batch: 训练images数据 :param tr
inception_v1_train_val.py:46
← previous
next →
101–200 of 624, ranked by callers