MCPcopy Create free account

hub / github.com/Tencent/PocketFlow / functions

Functions751 in github.com/Tencent/PocketFlow

↓ 1 callersFunctionssd_random_expand
(image, bboxes, ratio=2., name=None)
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:290
↓ 1 callersFunctionssd_random_sample_patch
ssd_random_sample_patch. select one min_iou sample _width and _height from [0-width] and [0-height] check if the aspect ratio between 0.5-2. s
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:136
↓ 1 callersFunctionssd_random_sample_patch_wrapper
(image, labels, bboxes)
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:348
↓ 1 callersFunctiontest_pb_model
Test the *.pb model. Args: * file_path: file path to the *.pb model * net_input_name: network's input node's name * net_output_name: network'
tools/conversion/export_quant_tflite_model.py:110
↓ 1 callersFunctiontest_pb_model
Test the *.pb model. Args: * file_path: file path to the *.pb model * net_input_name: network's input node's name * net_output_name: network'
tools/conversion/export_pb_tflite_models.py:243
↓ 1 callersFunctiontest_pb_model
Test the *.pb model. Args: * file_path: file path to the *.pb model * net_input_name: network's input node's name * net_output_name: network'
tools/conversion/export_chn_pruned_tflite_model.py:110
↓ 1 callersFunctiontest_pb_model
Test the *.pb model.
tools/benchmark/calc_inference_time.py:35
↓ 1 callersFunctiontest_tflite_model
Test the *.tflite model. Args: * file_path: file path to the *.tflite model * net_input_data: network's input node's data
tools/conversion/export_pb_tflite_models.py:269
↓ 1 callersFunctiontest_tflite_model
Test the *.tflite model. Args: * file_path: file path to the *.tflite model * net_input_data: network's input node's data
tools/conversion/export_chn_pruned_tflite_model.py:141
↓ 1 callersFunctiontest_tflite_model
Test the *.tflite model.
tools/benchmark/calc_inference_time.py:58
↓ 1 callersMethodtrain
Train a model and periodically produce checkpoint files.
learners/weight_sparsification/learner.py:101
↓ 1 callersMethodtrain
(self)
learners/nonuniform_quantization/learner.py:118
↓ 1 callersMethodtrain
(self)
learners/uniform_quantization/learner.py:114
↓ 1 callersMethodtrain
Train the pruned model
learners/channel_pruning/learner.py:122
↓ 1 callersFunctiontrain_agent
Train the RL agent through multiple roll-outs. Args: * sess: TensorFlow session * env: environment * agent: RL agent
rl_agents/unit_tests/pendulum_v0.py:56
↓ 1 callersFunctiontrain_agent
Train the RL agent through multiple roll-outs. Args: * sess: TensorFlow session * env: environment * agent: RL agent
rl_agents/unit_tests/move_to_target.py:89
↓ 1 callersFunctiontraining_scope
Defines Mobilenet training scope. Usage: with tf.contrib.slim.arg_scope(mobilenet.training_scope()): logits, endpoints = mobilenet_v2.m
utils/external/mobilenet.py:415
↓ 1 callersFunctionvalidate_batch_size_for_multi_gpu
For multi-gpu, batch-size must be a multiple of the number of available GPUs. Note that this should eventually be handled by replicate_model_
utils/external/ssd_tensorflow/train_ssd.py:127
↓ 1 callersFunctionvoc_ap
ap = voc_ap(rec, prec, [use_07_metric]) Compute VOC AP given precision and recall. If use_07_metric is true, uses the VOC 07 11 point met
utils/external/ssd_tensorflow/voc_eval.py:88
↓ 1 callersFunctionvoc_eval
rec, prec, ap = voc_eval(detpath, annopath, imagesetfile,
utils/external/ssd_tensorflow/voc_eval.py:122
↓ 1 callersMethodwarm_start
Initialize the model for warm-start. Description: * We use a pre-trained ImageNet classification model to initialize the backbone part of the
nets/vgg_at_pascalvoc.py:479
Method__add_drop_train_vars
Add the dropped train variable to the `self.drop_trainable_vars` and dropped convolution name to the `drop_conv` Args: op: An dr
learners/channel_pruning/channel_pruner.py:646
Method__bucket_quantize
Non-uniform quantization function with bucketing Args: * x: A 'Tensor'. * mbits: A Tensor, indicating the quantization bits. * mode:
learners/nonuniform_quantization/utils.py:196
Method__build_feed_dict
(images_np)
learners/channel_pruning_rmt/learner.py:570
Method__call__
Add operations to classify a batch of input images. Args: inputs: A Tensor representing a batch of input images. training: A boolean.
utils/external/resnet_model.py:489
Method__call__
Create the actor network. Args: * states: state vectors (inputs to the actor network) * reuse: whether to reuse previously defined variab
rl_agents/ddpg/actor_critic.py:97
Method__call__
Create the critic network. Args: * states: state vectors (inputs to the critic network) * actions: action vectors (inputs to the critic n
rl_agents/ddpg/actor_critic.py:132
Method__enter__
(self)
utils/external/mobilenet.py:120
Method__exit__
(self, exc_type, exc_value, traceback)
utils/external/mobilenet.py:123
Method__init__
Constructor function.
utils/multi_gpu_wrapper.py:33
Method__init__
Creates a model for classifying an image. Args: resnet_size: A single integer for the size of the ResNet model. bottleneck: Use regul
utils/external/resnet_model.py:361
Method__init__
(self)
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:141
Method__init__
(self, img_shape, layers_shapes, anchor_scales, extra_anchor_scales, anchor_ratios, layer_steps)
utils/external/ssd_tensorflow/utility/anchor_manipulator.py:259
Method__init__
(self, data_format='channels_first')
utils/external/ssd_tensorflow/net/ssd_net.py:76
Method__init__
Constructor function.
nets/resnet_at_ilsvrc12.py:99
Method__init__
Constructor function.
nets/mobilenet_at_ilsvrc12.py:72
Method__init__
Constructor function.
nets/faster_rcnn_at_pascalvoc.py:471
Method__init__
Constructor function.
nets/lenet_at_cifar10.py:73
Method__init__
Constructor function. Note: DO NOT create any TF operations here!!! Args: * data_format: data format ('channels_last' OR 'channels_first
nets/abstract_model_helper.py:33
Method__init__
Constructor function.
nets/vgg_at_pascalvoc.py:416
Method__init__
Constructor function.
nets/resnet_at_cifar10.py:71
Method__init__
Constructor function. Args: * a_dims: number of action vector's dimensions * a_min: minimal value in the action vector * a_max: maxim
rl_agents/ddpg/actor_critic.py:81
Method__init__
Constructor function. Args: * scope: name scope in which the model is defined
rl_agents/ddpg/actor_critic.py:123
Method__init__
Constructor function. Args: * s_dims: number of state vector's dimensions * a_dims: number of action vector's dimensions * buf_size:
rl_agents/ddpg/replay_buffer.py:32
Method__init__
Constructor function. Args: * sess: TensorFlow session * s_dims: number of state vector's dimensions * a_dims: number of action vecto
rl_agents/ddpg/agent.py:122
Method__init__
Constructor function.
rl_agents/ddpg/noise.py:44
Method__init__
Constructor function.
rl_agents/ddpg/noise.py:72
Method__init__
Constructor function. Args: * sess: TensorFlow session * nb_dims: number of sample's dimensions
rl_agents/ddpg/running_mean_std.py:28
Method__init__
Constructor function.
rl_agents/unit_tests/move_to_target.py:42
Method__init__
Constructor function. Args: * is_train: whether to construct the training subset
datasets/pascalvoc_dataset.py:168
Method__init__
Constructor function. Args: * is_train: whether to construct the training subset
datasets/cifar10_dataset.py:75
Method__init__
Constructor function. Args: * is_train: whether to construct the training subset
datasets/abstract_dataset.py:38
Method__init__
Constructor function. Args: * is_train: whether to construct the training subset
datasets/ilsvrc12_dataset.py:98
Method__init__
Constructor function.
examples/convnet_at_fmnist.py:72
Method__init__
Constructor function. Args: * is_train: whether to construct the training subset
examples/fmnist_dataset.py:93
Method__init__
Constructor function. Args: * sm_writer: TensorFlow's summary writer * model_helper: model helper with definitions of model & dataset
learners/distillation_helper.py:40
Method__init__
Constructor function. Args: * sm_writer: TensorFlow's summary writer * model_helper: model helper with definitions of model & dataset
learners/abstract_learner.py:55
Method__init__
Constructor function. Args: * sm_writer: TensorFlow's summary writer * model_helper: model helper with definitions of model & dataset
learners/uniform_quantization_tf/learner.py:67
Method__init__
Constructor function. Args: * sm_writer: TensorFlow's summary writer * model_helper: model helper with definitions of model & dataset
learners/channel_pruning_gpu/learner.py:111
Method__init__
Constructor function. Args: * sm_writer: TensorFlow's summary writer * model_helper: model helper with definitions of model & dataset
learners/weight_sparsification/learner.py:70
Method__init__
Constructor function. Args: * sess: TensorFlow session * maskable_vars: list of maskable variables * skip_head_n_tail: whether to ski
learners/weight_sparsification/rl_helper.py:27
Method__init__
Constructor function. Args: * model_helper: model helper with definitions of model & dataset * mpi_comm: MPI communication object
learners/weight_sparsification/pr_optimizer.py:99
Method__init__
Constructor function. Args: * sm_writer: TensorFlow's summary writer * model_helper: model helper with definitions of model & dataset
learners/discr_channel_pruning/learner.py:102
Method__init__
Constructor function. Args: * sm_writer: TensorFlow's summary writer * model_helper: model helper with definitions of model & dataset
learners/channel_pruning_rmt/learner.py:116
Method__init__
(self, sess, bucket_size=0, use_buckets=False, ini
learners/nonuniform_quantization/utils.py:33
Method__init__
(self, sm_writer, model_helper)
learners/nonuniform_quantization/learner.py:82
Method__init__
Args: * sess: session to run the shape * total_bits: A scalar, total num of bits as budget * num_weights: A list of number of weights
learners/nonuniform_quantization/rl_helper.py:31
Method__init__
By passing the ops in the learner, we do not need to build the graph again for training and testing. Args: * dataset_name: a string that
learners/nonuniform_quantization/bit_optimizer.py:58
Method__init__
Constructor function. Args: * sm_writer: TensorFlow's summary writer * model_helper: model helper with definitions of model & dataset
learners/full_precision/learner.py:33
Method__init__
(self, sess, bucket_size=0, use_buckets=False, bucket_type='split')
learners/uniform_quantization/utils.py:34
Method__init__
(self, sm_writer, model_helper)
learners/uniform_quantization/learner.py:79
Method__init__
Args: * sess: session to run the shape; * total_bits: a scalar, total num of bits as budget; * num_weights: a list of number of weigh
learners/uniform_quantization/rl_helper.py:32
Method__init__
By passing the ops in the learner, we do not need to build the graph again for training and testing. Args: * dataset_name: a string that
learners/uniform_quantization/bit_optimizer.py:54
Method__init__
(self, sm_writer, model_helper)
learners/channel_pruning/learner.py:85
Method__init__
(self, model, images=None, labels=None, mem_images=None,
learners/channel_pruning/channel_pruner.py:54
Method__init__
(self, sess)
learners/channel_pruning/model_wrapper.py:34
Method__nonuni_quantize
Non-uniform quantization function Args: * x: A Tensor to be quantized. * mbits: A Tensor, specifying the quantization bits. * mode:
learners/nonuniform_quantization/utils.py:168
Method__save_best_pruned_model
save a in best purned model with a max evaluation result
learners/channel_pruning/learner.py:473
Method__solve_lasso
(x)
learners/channel_pruning_rmt/learner.py:774
Function_bottleneck_block_v1
A single block for ResNet v1, with a bottleneck. Similar to _building_block_v1(), except using the "bottleneck" blocks described in: Convolut
utils/external/resnet_model.py:202
Function_bottleneck_block_v2
A single block for ResNet v2, with a bottleneck. Similar to _building_block_v2(), except using the "bottleneck" blocks described in: Convolut
utils/external/resnet_model.py:257
Function_building_block_v1
A single block for ResNet v1, without a bottleneck. Convolution then batch normalization then ReLU as described by: Deep Residual Learning for
utils/external/resnet_model.py:109
Function_building_block_v2
A single block for ResNet v2, without a bottleneck. Batch normalization then ReLu then convolution as described by: Identity Mappings in Deep R
utils/external/resnet_model.py:156
Method_custom_dtype_getter
Creates variables in fp32, then casts to fp16 if necessary. This function is a custom getter. A custom getter is a function with the same sig
utils/external/resnet_model.py:435
Function_process_image_files_batch
Processes and saves list of images as TFRecord in 1 thread. Args: coder: instance of ImageCoder to provide TensorFlow image coding utils. t
utils/external/ssd_tensorflow/dataset/convert_tfrecords.py:255
Methodadapt
Adjust the standard deviation by multiplying with the decaying ratio.
rl_agents/ddpg/noise.py:83
Functionanchor_target_layer
Same as the anchor target layer in original Fast/er RCNN
utils/external/faster_rcnn_tensorflow/utility/anchor_target_layer_without_boxweight.py:55
Functionapply_activation
(x, name=None, activation_fn=None)
utils/external/mobilenet.py:32
Functionareas
(bboxes)
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:181
Functionauto_barrier
Automatically insert a barrier for multi-GPU training, or pass for single-GPU training. Args: * mpi_comm: MPI communication object
utils/misc_utils.py:25
Functionbboxes_draw_on_img
(img, classes, scores, bboxes, thickness=2)
utils/external/ssd_tensorflow/utility/draw_toolbox.py:46
Functionbody
(index, sampled_width, sampled_height, width, height)
utils/external/ssd_tensorflow/preprocessing/ssd_preprocessing.py:157
Methodbuild
Build iterator(s) for tf.data.Dataset() object. Args: * enbl_trn_val_split: whether to split into training & validation subsets Returns:
datasets/abstract_dataset.py:55
Methodbuild_dataset_eval
Build the data subset for evaluation, usually without data augmentation.
nets/resnet_at_ilsvrc12.py:114
Methodbuild_dataset_eval
Build the data subset for evaluation, usually without data augmentation.
nets/mobilenet_at_ilsvrc12.py:88
Methodbuild_dataset_eval
Build the data subset for evaluation, usually without data augmentation.
nets/faster_rcnn_at_pascalvoc.py:489
Methodbuild_dataset_eval
Build the data subset for evaluation, usually without data augmentation. Returns: * iterator: iterator over the evaluation subset
nets/abstract_model_helper.py:61
Methodbuild_dataset_eval
Build the data subset for evaluation, usually without data augmentation.
nets/vgg_at_pascalvoc.py:436
Methodbuild_dataset_eval
Build the data subset for evaluation, usually without data augmentation.
nets/resnet_at_cifar10.py:86
Methodbuild_dataset_eval
Build the data subset for evaluation, usually without data augmentation.
examples/convnet_at_fmnist.py:87
← previousnext →501–600 of 751, ranked by callers