Repository Analysis

tensorflow/models

Models and examples built with TensorFlow

28.8 Moderate AI signal View on GitHub
28.8
Adjusted Score
28.8
Raw Score
100%
Time Factor
2026-05-29
Last Push
77,665
Stars
Python
Language
768,500
Lines of Code
3394
Files
13082
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 19HIGH 1450MEDIUM 1537LOW 10076

Pattern Findings

13082 matches across 17 categories. Click a row to expand file-level details.

Cross-File Repetition907 hits · 4535 pts
SeverityFileLineSnippet
HIGHresearch/efficient-hrl/agent.py0returns the next action for the state. args: state: a [num_state_dims] tensor representing a state. context: a list of [
HIGHresearch/efficient-hrl/agent.py0returns the next action for the state. args: state: a [num_state_dims] tensor representing a state. context: a list of [
HIGHresearch/efficient-hrl/agent.py0returns the next action for the state. args: state: a [num_state_dims] tensor representing a state. context: a list of [
HIGHresearch/efficient-hrl/context/samplers.py0sample a batch of context. args: batch_size: batch size. returns: two [batch_size, num_context_dims] tensors.
HIGHresearch/efficient-hrl/context/samplers.py0sample a batch of context. args: batch_size: batch size. returns: two [batch_size, num_context_dims] tensors.
HIGHresearch/efficient-hrl/context/samplers.py0sample a batch of context. args: batch_size: batch size. returns: two [batch_size, num_context_dims] tensors.
HIGHresearch/efficient-hrl/context/samplers.py0sample a batch of context. args: batch_size: batch size. returns: two [batch_size, num_context_dims] tensors.
HIGHresearch/efficient-hrl/context/samplers.py0sample a batch of context. args: batch_size: batch size. returns: two [batch_size, num_context_dims] tensors.
HIGHresearch/efficient-hrl/context/samplers.py0sample a batch of context. args: batch_size: batch size. returns: two [batch_size, num_context_dims] tensors.
HIGHresearch/efficient-hrl/context/samplers.py0sample a batch of context. args: batch_size: batch size. returns: two [batch_size, num_context_dims] tensors.
HIGHresearch/rebar/rebar.py0returns sampled random variables parameterized by log_alpha.
HIGHresearch/rebar/rebar.py0returns sampled random variables parameterized by log_alpha.
HIGHresearch/rebar/rebar.py0returns sampled random variables parameterized by log_alpha.
HIGHresearch/rebar/rebar.py0returns sampled random variables parameterized by log_alpha.
HIGHresearch/lfads/distributions.py0compute the log-likelihood under the distribution. args: z (optional): value to compute likelihood for, if none, use sam
HIGHresearch/lfads/distributions.py0compute the log-likelihood under the distribution. args: z (optional): value to compute likelihood for, if none, use sam
HIGHresearch/lfads/distributions.py0compute the log-likelihood under the distribution. args: z (optional): value to compute likelihood for, if none, use sam
HIGHresearch/vid2depth/dataset/dataset_loader.py0checks whether we can find a valid sequence around this frame.
HIGHresearch/vid2depth/dataset/dataset_loader.py0checks whether we can find a valid sequence around this frame.
HIGHresearch/vid2depth/dataset/dataset_loader.py0checks whether we can find a valid sequence around this frame.
HIGHresearch/vid2depth/dataset/dataset_loader.py0checks whether we can find a valid sequence around this frame.
HIGH…search/object_detection/export_tflite_ssd_graph_lib.py0exports center-size encoded anchors as a constant tensor. args: anchors: a float32 tensor of shape [num_anchors, 4] cont
HIGH…search/object_detection/export_tflite_graph_lib_tf2.py0exports center-size encoded anchors as a constant tensor. args: anchors: a float32 tensor of shape [num_anchors, 4] cont
HIGH…/lstm_object_detection/export_tflite_lstd_graph_lib.py0exports center-size encoded anchors as a constant tensor. args: anchors: a float32 tensor of shape [num_anchors, 4] cont
HIGHresearch/object_detection/exporter_lib_v2.py0initializes a module for detection. args: detection_model: the detection model to use for inference. use_side_inputs: wh
HIGHresearch/object_detection/exporter_lib_v2.py0initializes a module for detection. args: detection_model: the detection model to use for inference. use_side_inputs: wh
HIGHresearch/object_detection/exporter_lib_v2.py0initializes a module for detection. args: detection_model: the detection model to use for inference. use_side_inputs: wh
HIGHresearch/object_detection/model_lib_tf2_test.py0tests that estimator and input function are constructed correctly.
HIGHresearch/object_detection/model_lib_tf2_test.py0tests that estimator and input function are constructed correctly.
HIGHresearch/object_detection/model_lib_tf1_test.py0tests that estimator and input function are constructed correctly.
HIGHresearch/object_detection/model_lib_tf1_test.py0tests that estimator and input function are constructed correctly.
HIGHresearch/object_detection/inputs_test.py0tests the training input function for fasterrcnnresnet50.
HIGHresearch/object_detection/inputs_test.py0tests the training input function for fasterrcnnresnet50.
HIGHresearch/object_detection/inputs_test.py0tests the training input function for fasterrcnnresnet50.
HIGHresearch/object_detection/inputs_test.py0tests the training input function for fasterrcnnresnet50.
HIGHresearch/object_detection/inputs_test.py0tests the eval input function for fasterrcnnresnet50.
HIGHresearch/object_detection/inputs_test.py0tests the eval input function for fasterrcnnresnet50.
HIGHresearch/object_detection/inputs_test.py0tests the eval input function for fasterrcnnresnet50.
HIGH…rch/object_detection/metrics/calibration_evaluation.py0returns a dictionary of eval metric ops. note that once value_op is called, the detections and groundtruth added via upd
HIGHresearch/object_detection/metrics/coco_evaluation.py0returns a dictionary of eval metric ops. note that once value_op is called, the detections and groundtruth added via upd
HIGHresearch/object_detection/metrics/coco_evaluation.py0returns a dictionary of eval metric ops. note that once value_op is called, the detections and groundtruth added via upd
HIGH…rch/object_detection/metrics/calibration_evaluation.py0clears the state to prepare for a fresh evaluation.
HIGHresearch/object_detection/metrics/coco_evaluation.py0clears the state to prepare for a fresh evaluation.
HIGHresearch/object_detection/metrics/coco_evaluation.py0clears the state to prepare for a fresh evaluation.
HIGHresearch/object_detection/metrics/coco_evaluation.py0clears the state to prepare for a fresh evaluation.
HIGHresearch/object_detection/metrics/lvis_evaluation.py0clears the state to prepare for a fresh evaluation.
HIGH…/object_detection/utils/object_detection_evaluation.py0clears the state to prepare for a fresh evaluation.
HIGH…/object_detection/utils/object_detection_evaluation.py0clears the state to prepare for a fresh evaluation.
HIGHresearch/object_detection/utils/vrd_evaluation.py0clears the state to prepare for a fresh evaluation.
HIGHresearch/object_detection/metrics/coco_evaluation.py0saves the detections into json_output_path in the format used by ms coco. args: json_output_path: string containing the
HIGHresearch/object_detection/metrics/coco_evaluation.py0saves the detections into json_output_path in the format used by ms coco. args: json_output_path: string containing the
HIGHresearch/object_detection/metrics/lvis_evaluation.py0saves the detections into json_output_path in the format used by ms coco. args: json_output_path: string containing the
HIGHresearch/object_detection/metrics/coco_evaluation.py0observes an evaluation result dict for a single example. when executing eagerly, once all observations have been observe
HIGHresearch/object_detection/metrics/coco_evaluation.py0observes an evaluation result dict for a single example. when executing eagerly, once all observations have been observe
HIGHresearch/object_detection/metrics/coco_evaluation.py0observes an evaluation result dict for a single example. when executing eagerly, once all observations have been observe
HIGHresearch/object_detection/metrics/lvis_evaluation.py0observes an evaluation result dict for a single example. when executing eagerly, once all observations have been observe
HIGH…/object_detection/utils/object_detection_evaluation.py0observes an evaluation result dict for a single example. when executing eagerly, once all observations have been observe
HIGH…/object_detection/utils/object_detection_evaluation.py0observes an evaluation result dict for a single example. when executing eagerly, once all observations have been observe
HIGH…earch/object_detection/metrics/lvis_evaluation_test.py0tests that map is calculated correctly on gt and detections.
HIGH…earch/object_detection/metrics/coco_evaluation_test.py0tests that map is calculated correctly on gt and detections.
847 more matches not shown…
Hyper-Verbose Identifiers3941 hits · 3716 pts
SeverityFileLineSnippet
LOWresearch/efficient-hrl/cond_fn.py134def failed_reset_after_n_episodes(agent,
LOWresearch/efficient-hrl/train_utils.py165def gen_debug_batch_summaries(batch):
LOWresearch/efficient-hrl/eval.py48def get_evaluate_checkpoint_fn(master, output_dir, eval_step_fns,
LOW…/efficient-hrl/context/context_transition_functions.py95def relative_context_transition_fn(
LOW…/efficient-hrl/context/context_transition_functions.py111def relative_context_multi_transition_fn(
LOWresearch/efficient-hrl/context/context.py345 def context_multi_transition_fn(self, contexts, **kwargs):
LOWresearch/efficient-hrl/agents/ddpg_agent.py439 def get_trainable_critic_vars(self):
LOWresearch/efficient-hrl/agents/ddpg_agent.py585 def get_trainable_critic_vars(self):
LOWresearch/efficient-hrl/agents/ddpg_agent.py708def gen_debug_td_error_summaries(
LOWresearch/efficient-hrl/utils/eval_utils.py30def evaluate_checkpoint_repeatedly(checkpoint_dir,
LOWresearch/autoaugment/train_cifar.py181 def _calc_num_trainable_params(self):
LOWresearch/autoaugment/train_cifar.py345 def _compute_final_accuracies(self, meval):
LOWresearch/autoaugment/shake_shake.py26def _shake_shake_skip_connection(x, output_filters, stride):
LOWresearch/rebar/rebar.py565 def get_simple_muprop_gradient(self):
LOWresearch/rebar/rebar.py659 def _create_gumbel_control_variate(self, logQHard, temperature=None):
LOWresearch/rebar/rebar.py687 def _create_gumbel_control_variate_quadratic(self, logQHard, temperature=None):
LOWresearch/rebar/rebar.py744 def multiply_by_eta_per_layer(self, h_grads, eta):
LOWresearch/rebar/rebar.py778 def get_dynamic_rebar_gradient(self):
LOWresearch/pcl_rl/env_spec.py134 def convert_env_actions_to_actions(self, actions):
LOWresearch/pcl_rl/controller.py346 def convert_from_batched_episodes(
LOWresearch/pcl_rl/controller.py373 def convert_to_batched_episodes(self, episodes, max_length=None):
LOWresearch/pcl_rl/trust_region.py110 def calc_fisher_vector_product(tangent):
LOWresearch/adversarial_text/train_utils.py99def maybe_restore_pretrained_model(sess, saver_for_restore, model_dir):
LOWresearch/adversarial_text/adversarial_losses.py124def random_perturbation_loss_bidir(embedded, length, loss_fn):
LOWresearch/adversarial_text/adversarial_losses.py145def virtual_adversarial_loss_bidir(logits, embedded, inputs,
LOWresearch/adversarial_text/adversarial_losses.py202def _kl_divergence_with_logits(q_logits, p_logits, weights):
LOWresearch/adversarial_text/inputs.py168def _read_single_sequence_example(file_list, tokens_shape=None):
LOWresearch/adversarial_text/gen_data.py56def build_shuffling_tf_record_writer(fname):
LOWresearch/adversarial_text/graphs.py670def make_restore_average_vars_dict():
LOWresearch/adversarial_text/layers.py368def _summarize_vars_and_grads(grads_and_vars):
LOWresearch/adversarial_text/data/data_utils.py325def write_vocab_and_frequency(ordered_vocab_freqs, output_dir):
LOWresearch/audioset/vggish/vggish_slim.py109def load_vggish_slim_checkpoint(session, checkpoint_path):
LOWresearch/audioset/vggish/mel_features.py114def spectrogram_to_mel_matrix(num_mel_bins=20,
LOWresearch/audioset/yamnet/features.py22def waveform_to_log_mel_spectrogram_patches(waveform, params):
LOWresearch/cvt_text/model/encoder.py72 def _get_unidirectional_reprs(self, word_reprs):
LOWresearch/lfads/run_lfads.py499def build_hyperparameter_dict(flags):
LOWresearch/lfads/distributions.py50def diag_gaussian_log_likelihood(z, mu=0.0, logvar=0.0):
LOWresearch/lfads/distributions.py68def gaussian_pos_log_likelihood(unused_mean, logvar, noise):
LOWresearch/lfads/utils.py303def list_t_bxn_to_tensor_bxtxn(values_t_bxn):
LOWresearch/lfads/utils.py323def tensor_bxtxn_to_list_t_bxn(tensor_bxtxn):
LOWresearch/lfads/lfads.py1091 def example_idxs_mod_batch_size(nexamples, batch_size):
LOWresearch/lfads/lfads.py1120 def randomize_example_idxs_mod_batch_size(nexamples, batch_size):
LOWresearch/lfads/lfads.py1191 def shuffle_and_flatten_datasets(self, datasets, kind='train'):
LOWresearch/lfads/lfads.py1735 def eval_model_runs_avg_epoch(self, data_name, data_extxd,
LOWresearch/lfads/lfads.py1838 def eval_model_runs_push_mean(self, data_name, data_extxd,
LOWresearch/lfads/synth_data/synthetic_data_utils.py233def add_alignment_projections(datasets, npcs, ntime=None, nsamples=None):
LOWresearch/vid2depth/model.py98 def build_inference_for_training(self):
LOWresearch/vid2depth/model.py341 def build_egomotion_test_graph(self):
LOWresearch/vid2depth/reader.py136 def augment_images_scale_crop(cls, im, intrinsics, out_h, out_w):
LOWresearch/vid2depth/reader.py213 def get_multi_scale_intrinsics(cls, intrinsics, num_scales):
LOWresearch/vid2depth/inference.py138def _normalize_depth_for_display(depth,
LOWresearch/vid2depth/ops/icp_test.py70 def _generate_organized_cloud(self):
LOWresearch/vid2depth/ops/icp_test.py95 def test_translate_small_cloud(self):
LOWresearch/vid2depth/ops/icp_test.py107 def test_translate_random_cloud(self):
LOWresearch/vid2depth/ops/icp_test.py133 def test_translate_organized_cloud(self):
LOWresearch/vid2depth/ops/icp_test.py145 def test_rotate_organized_cloud(self):
LOWresearch/vid2depth/ops/icp_test.py167 def test_translate_lidar_cloud(self):
LOWresearch/vid2depth/ops/icp_test.py179 def test_translate_lidar_cloud_ego_motion(self):
LOWresearch/vid2depth/ops/icp_test.py193 def test_rotate_lidar_cloud_ego_motion(self):
LOWresearch/vid2depth/ops/icp_test.py207 def test_no_change_lidar_cloud(self):
3881 more matches not shown…
Unused Imports2906 hits · 2852 pts
SeverityFileLineSnippet
LOWresearch/efficient-hrl/run_eval.py21
LOWresearch/efficient-hrl/run_eval.py22
LOWresearch/efficient-hrl/run_eval.py23
LOWresearch/efficient-hrl/train_utils.py18
LOWresearch/efficient-hrl/train_utils.py19
LOWresearch/efficient-hrl/train_utils.py20
LOWresearch/efficient-hrl/train_utils.py23
LOWresearch/efficient-hrl/train_utils.py28
LOWresearch/efficient-hrl/run_train.py21
LOWresearch/efficient-hrl/run_train.py22
LOWresearch/efficient-hrl/run_train.py23
LOWresearch/efficient-hrl/agent.py25
LOWresearch/efficient-hrl/train.py21
LOWresearch/efficient-hrl/train.py22
LOWresearch/efficient-hrl/train.py23
LOWresearch/efficient-hrl/train.py33
LOWresearch/efficient-hrl/train.py34
LOWresearch/efficient-hrl/eval.py23
LOWresearch/efficient-hrl/eval.py24
LOWresearch/efficient-hrl/eval.py25
LOWresearch/efficient-hrl/eval.py32
LOWresearch/efficient-hrl/context/gin_utils.py19
LOWresearch/efficient-hrl/context/gin_utils.py20
LOWresearch/efficient-hrl/context/gin_utils.py21
LOW…/efficient-hrl/context/context_transition_functions.py23
LOW…/efficient-hrl/context/context_transition_functions.py24
LOW…/efficient-hrl/context/context_transition_functions.py25
LOWresearch/efficient-hrl/context/gin_imports.py20
LOWresearch/efficient-hrl/context/gin_imports.py21
LOWresearch/efficient-hrl/context/gin_imports.py22
LOWresearch/efficient-hrl/context/gin_imports.py23
LOWresearch/efficient-hrl/context/gin_imports.py24
LOWresearch/efficient-hrl/context/context.py24
LOWresearch/efficient-hrl/context/context.py25
LOWresearch/efficient-hrl/context/context.py26
LOWresearch/efficient-hrl/context/rewards_functions.py25
LOWresearch/efficient-hrl/context/rewards_functions.py26
LOWresearch/efficient-hrl/context/rewards_functions.py27
LOWresearch/efficient-hrl/context/samplers.py21
LOWresearch/efficient-hrl/context/samplers.py22
LOWresearch/efficient-hrl/context/samplers.py23
LOWresearch/efficient-hrl/environments/maze_env_utils.py17
LOWresearch/efficient-hrl/utils/utils.py19
LOWresearch/efficient-hrl/utils/utils.py20
LOWresearch/efficient-hrl/utils/utils.py21
LOWresearch/efficient-hrl/utils/eval_utils.py19
LOWresearch/efficient-hrl/utils/eval_utils.py20
LOWresearch/efficient-hrl/utils/eval_utils.py21
LOWresearch/efficient-hrl/utils/eval_utils.py24
LOWresearch/efficient-hrl/scripts/local_eval.py19
LOWresearch/efficient-hrl/scripts/local_eval.py20
LOWresearch/efficient-hrl/scripts/local_eval.py21
LOWresearch/efficient-hrl/scripts/local_train.py19
LOWresearch/efficient-hrl/scripts/local_train.py20
LOWresearch/efficient-hrl/scripts/local_train.py21
LOWresearch/autoaugment/train_cifar.py19
LOWresearch/autoaugment/train_cifar.py20
LOWresearch/autoaugment/train_cifar.py21
LOWresearch/autoaugment/custom_ops.py21
LOWresearch/autoaugment/custom_ops.py22
2846 more matches not shown…
Decorative Section Separators925 hits · 2784 pts
SeverityFileLineSnippet
MEDIUMresearch/efficient-hrl/run_eval.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/cond_fn.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/train_utils.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/run_train.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/run_env.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/agent.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/train.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/eval.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/context/gin_utils.py14# ==============================================================================
MEDIUM…/efficient-hrl/context/context_transition_functions.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/context/gin_imports.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/context/context.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/context/rewards_functions.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/context/samplers.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/environments/maze_env.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/environments/ant_maze_env.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/environments/create_maze_env.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/environments/ant.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/environments/point_maze_env.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/environments/point.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/environments/maze_env_utils.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/agents/ddpg_agent.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/agents/ddpg_networks.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/agents/circular_buffer.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/utils/utils.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/utils/eval_utils.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/scripts/local_eval.py14# ==============================================================================
MEDIUMresearch/efficient-hrl/scripts/local_train.py14# ==============================================================================
MEDIUMresearch/autoaugment/train_cifar.py14# ==============================================================================
MEDIUMresearch/autoaugment/custom_ops.py14# ==============================================================================
MEDIUMresearch/autoaugment/shake_shake.py14# ==============================================================================
MEDIUMresearch/autoaugment/shake_drop.py14# ==============================================================================
MEDIUMresearch/autoaugment/data_utils.py14# ==============================================================================
MEDIUMresearch/autoaugment/helper_utils.py14# ==============================================================================
MEDIUMresearch/autoaugment/wrn.py14# ==============================================================================
MEDIUMresearch/autoaugment/augmentation_transforms.py14# ==============================================================================
MEDIUMresearch/autoaugment/policies.py14# ==============================================================================
MEDIUMresearch/rebar/rebar_train.py14# ==============================================================================
MEDIUMresearch/rebar/config.py14# ==============================================================================
MEDIUMresearch/rebar/rebar.py14# ==============================================================================
MEDIUMresearch/rebar/datasets.py14# ==============================================================================
MEDIUMresearch/rebar/logger.py14# ==============================================================================
MEDIUMresearch/rebar/download_data.py14# ==============================================================================
MEDIUMresearch/rebar/utils.py14# ==============================================================================
MEDIUMresearch/pcl_rl/objective.py14# ==============================================================================
MEDIUMresearch/pcl_rl/env_spec.py14# ==============================================================================
MEDIUMresearch/pcl_rl/controller.py14# ==============================================================================
MEDIUMresearch/pcl_rl/baseline.py14# ==============================================================================
MEDIUMresearch/pcl_rl/policy.py14# ==============================================================================
MEDIUMresearch/pcl_rl/model.py14# ==============================================================================
MEDIUMresearch/pcl_rl/optimizers.py14# ==============================================================================
MEDIUMresearch/pcl_rl/full_episode_objective.py14# ==============================================================================
MEDIUMresearch/pcl_rl/replay_buffer.py14# ==============================================================================
MEDIUMresearch/pcl_rl/gym_wrapper.py14# ==============================================================================
MEDIUMresearch/pcl_rl/trainer.py14# ==============================================================================
MEDIUMresearch/pcl_rl/trust_region.py14# ==============================================================================
MEDIUMresearch/pcl_rl/expert_paths.py14# ==============================================================================
MEDIUMresearch/adversarial_text/pretrain.py14# ==============================================================================
MEDIUMresearch/adversarial_text/train_utils.py14# ==============================================================================
MEDIUMresearch/adversarial_text/adversarial_losses.py14# ==============================================================================
865 more matches not shown…
Docstring Block Structure539 hits · 2695 pts
SeverityFileLineSnippet
HIGHresearch/efficient-hrl/agents/ddpg_agent.py187Returns the output of the actor network. Args: states: A [batch_size, num_state_dims] tensor representing a b
HIGHresearch/efficient-hrl/agents/ddpg_agent.py206Returns the output of the critic network. Args: states: A [batch_size, num_state_dims] tensor representing a
HIGHresearch/efficient-hrl/agents/ddpg_agent.py224Returns the output of the target actor network. The target network is used to compute stable targets for training.
HIGHresearch/efficient-hrl/agents/ddpg_agent.py241Returns the output of the target critic network. The target network is used to compute stable targets for training.
HIGHresearch/efficient-hrl/agents/ddpg_agent.py289Computes a loss for training the critic network. The loss is the mean squared error between the Q value predictions
HIGHresearch/efficient-hrl/agents/ddpg_agent.py343Computes a loss for training the actor network. Note that output does not represent an actual loss. It is called a
HIGHresearch/efficient-hrl/agents/ddpg_agent.py410Performs a soft update of the target network parameters. For each weight w_s in the actor/critic networks, and its
HIGHresearch/efficient-hrl/agents/ddpg_agent.py597Returns the output of the critic network. Args: states: A [batch_size, num_state_dims] tensor representing a
HIGHresearch/efficient-hrl/agents/ddpg_agent.py618Returns the output of the target critic network. The target network is used to compute stable targets for training.
HIGHresearch/efficient-hrl/agents/ddpg_agent.py677Performs a soft update of the target network parameters. For each weight w_s in the actor/critic networks, and its
HIGHresearch/efficient-hrl/agents/circular_buffer.py93Adds an element (list/tuple/dict of tensors) to the buffer. Args: tensors: (list/tuple/dict of tensors) to be
HIGHresearch/efficient-hrl/agents/circular_buffer.py107Adds an element (tensors) to the buffer based on the condition.. Args: tensors: (list/tuple of tensors) to be
HIGHresearch/efficient-hrl/agents/circular_buffer.py150Samples a batch of tensors from the buffer with replacement. Args: batch_size: (integer) number of elements t
HIGHresearch/efficient-hrl/agents/circular_buffer.py188Returns elements at the specified indices from the buffer. Args: indices: (list of integers or rank 1 int Ten
HIGHresearch/efficient-hrl/agents/circular_buffer.py221Returns elements at the specified indices from the buffer. Args: num_steps: (integer) length of trajectories
HIGHresearch/autoaugment/helper_utils.py44Evaluates `model` on held out data depending on `mode`. Args: session: TensorFlow session the model will be run w
HIGHresearch/adversarial_text/inputs.py128Returns input filenames for configuration. Args: phase: str, 'train', 'test', or 'valid'. bidir: bool, bidire
HIGHresearch/adversarial_text/inputs.py195Inputs for text model. Args: data_dir: str, directory containing TFRecord files of SequenceExample. fname: st
HIGHresearch/adversarial_text/data/document_generators.py76Generates Documents based on FLAGS.dataset. Args: dataset: str, identifies folder within IMDB data directory, tes
HIGHresearch/adversarial_text/data/document_generators.py115Given a Document, produces character or word tokens. Tokens can be either characters, or word-level tokens (unigrams
HIGHresearch/adversarial_text/data/document_generators.py161Generates Documents for IMDB dataset. Data from http://ai.stanford.edu/~amaas/data/sentiment/ Args: dataset: s
HIGHresearch/adversarial_text/data/document_generators.py225Generates Documents for DBpedia dataset. Dataset linked to at https://github.com/zhangxiangxiao/Crepe. Args: d
HIGHresearch/adversarial_text/data/document_generators.py270Generates Documents for Reuters Corpus (rcv1) dataset. Dataset described at http://www.ai.mit.edu/projects/jmlr/pap
HIGHresearch/adversarial_text/data/document_generators.py321Generates Documents for the Rotten Tomatoes dataset. Dataset available at http://www.cs.cornell.edu/people/pabo/movie
HIGHresearch/audioset/vggish/mel_features.py119Return a matrix that can post-multiply spectrogram rows to make mel. Returns a np.array matrix A that can be used to
HIGHresearch/lfads/lfads.py1092Given a number of examples, E, and a batch_size, B, generate indices [0, 1, 2, ... B-1; [B, B+1, ... 2*B-1;
HIGHresearch/lfads/lfads.py1121Indices 1:nexamples, randomized, in 2D form of shape = (nexamples / batch_size) x batch_size. The remainder is
HIGHresearch/object_detection/model_lib.py244Unstacks all tensors in `tensor_dict` along 0th dimension. Unstacks tensor from the tensor dict along 0th dimension a
HIGHresearch/object_detection/model_lib.py765Creates `Estimator`, input functions, and steps. Args: run_config: A `RunConfig`. hparams: (optional) A `HPar
HIGHresearch/object_detection/eval_util.py259Evaluates metrics defined in evaluators and returns summaries. This function loads the latest checkpoint in checkpoin
HIGHresearch/object_detection/eval_util.py433Periodically evaluates desired tensors using checkpoint_dirs or restore_fn. This function repeatedly loads a checkpoi
HIGHresearch/object_detection/eval_util.py777Merges all detection and groundtruth information for a single example. Note that evaluation tools require classes tha
HIGHresearch/object_detection/eval_util.py1069Returns the evaluator class according to eval_config, valid for categories. Args: eval_config: An `eval_pb2.EvalC
HIGHresearch/object_detection/inputs.py119Makes sure boxes have valid sizes (ymax >= ymin, xmax >= xmin). When the hardware supports assertions, the function r
HIGHresearch/object_detection/inputs.py163A single function that is responsible for all input data transformations. Data transformation functions are applied i
HIGHresearch/object_detection/inputs.py405Pads input tensors to static shapes. In case num_additional_channels > 0, we assume that the additional channels ha
HIGHresearch/object_detection/inputs.py777Returns `features` and `labels` tensor dictionaries for training. Args: train_config: A train_pb2.TrainConfig.
HIGHresearch/object_detection/inputs.py938Returns `features` and `labels` tensor dictionaries for evaluation. Args: eval_config: An eval_pb2.EvalConfig.
HIGHresearch/object_detection/metrics/coco_tools.py93Load annotations dictionary into COCO datastructure. See http://mscoco.org/dataset/#format for a description of the
HIGHresearch/object_detection/metrics/coco_tools.py236Computes detection/keypoint metrics. Args: include_metrics_per_category: If True, will include metrics per ca
HIGHresearch/object_detection/metrics/coco_tools.py401Export groundtruth of a single image to COCO format. This function converts groundtruth detection annotations represe
HIGHresearch/object_detection/metrics/coco_tools.py518Export groundtruth detection annotations in numpy arrays to COCO API. This function converts a set of groundtruth det
HIGHresearch/object_detection/metrics/coco_tools.py595Export detections of a single image to COCO format. This function converts detections represented as numpy arrays to
HIGHresearch/object_detection/metrics/coco_tools.py687Export detection masks of a single image to COCO format. This function converts detections represented as numpy array
HIGHresearch/object_detection/metrics/coco_tools.py746Export detection annotations in numpy arrays to COCO API. This function converts a set of predicted detections repres
HIGHresearch/object_detection/metrics/coco_tools.py810Export segmentation masks in numpy arrays to COCO API. This function converts a set of predicted instance masks repre
HIGHresearch/object_detection/metrics/coco_tools.py890Exports keypoints in numpy arrays to COCO API. This function converts a set of predicted keypoints represented as n
HIGHresearch/object_detection/metrics/coco_evaluation.py1744Separate normal and crowd groundtruth class_labels and masks. Args: crowd_gt_indices: None or array of shape
HIGHresearch/object_detection/metrics/coco_evaluation.py1794Match the predicted masks to groundtruths. Args: predicted_masks: array of shape [num_predictions, height, wi
HIGH…ch/object_detection/metrics/offline_eval_map_corloc.py77Reads pre-computed object detections and groundtruth from tf_record. Args: input_config: input config proto of ty
HIGHresearch/object_detection/metrics/lvis_tools.py124Export groundtruth of a single image to LVIS format. This function converts groundtruth detection annotations represe
HIGHresearch/object_detection/metrics/lvis_tools.py209Export detection masks of a single image to LVIS format. This function converts detections represented as numpy array
HIGH…search/object_detection/metrics/calibration_metrics.py53Calculates Expected Calibration Error (ECE). ECE is a scalar summary statistic of calibration error. It is the samp
HIGH…_detection/meta_architectures/faster_rcnn_meta_arch.py665Feature-extractor specific preprocessing. See base class. For Faster R-CNN, we perform image resizing in the b
HIGH…_detection/meta_architectures/faster_rcnn_meta_arch.py733Predicts unpostprocessed tensors from input tensor. This function takes an input batch of images and runs it throug
HIGH…_detection/meta_architectures/faster_rcnn_meta_arch.py1357Adds box predictors to RPN feature map to predict proposals. Note resulting tensors will not have been postprocesse
HIGH…_detection/meta_architectures/faster_rcnn_meta_arch.py1467Convert prediction tensors to final detections. This function converts raw predictions tensors to final detection r
HIGH…_detection/meta_architectures/faster_rcnn_meta_arch.py2392Computes scalar box classifier loss tensors. Uses self._detector_target_assigner to obtain regression and classific
HIGH…_detection/meta_architectures/faster_rcnn_meta_arch.py2821Returns a map of variables to load from a foreign checkpoint. See parent class for details. Args: fine_t
HIGH…detection/meta_architectures/context_rcnn_meta_arch.py334Overrides the get_side_inputs function in the base class. This function returns context_features and valid_context_
479 more matches not shown…
Over-Commented Block2675 hits · 2658 pts
SeverityFileLineSnippet
LOWresearch/efficient-hrl/run_eval.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/cond_fn.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/train_utils.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/run_train.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/run_env.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/agent.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/train.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/eval.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/context/gin_utils.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOW…/efficient-hrl/context/context_transition_functions.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/context/gin_imports.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/context/context.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/context/rewards_functions.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/context/samplers.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/environments/maze_env.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/environments/ant_maze_env.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/environments/create_maze_env.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/environments/ant.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/environments/point_maze_env.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/environments/point.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/environments/maze_env_utils.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/agents/ddpg_agent.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/agents/ddpg_networks.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/agents/circular_buffer.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/utils/utils.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/utils/eval_utils.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/scripts/local_eval.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/efficient-hrl/scripts/local_train.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/autoaugment/train_cifar.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/autoaugment/custom_ops.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/autoaugment/shake_shake.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/autoaugment/shake_drop.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/autoaugment/data_utils.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/autoaugment/helper_utils.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/autoaugment/wrn.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/autoaugment/augmentation_transforms.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/autoaugment/policies.py1# Copyright 2018 The TensorFlow Authors All Rights Reserved.
LOWresearch/rebar/rebar_train.py1# Copyright 2017 Google Inc. All Rights Reserved.
LOWresearch/rebar/config.py1# Copyright 2017 Google Inc. All Rights Reserved.
LOWresearch/rebar/rebar.py1# Copyright 2017 Google Inc. All Rights Reserved.
LOWresearch/rebar/datasets.py1# Copyright 2017 Google Inc. All Rights Reserved.
LOWresearch/rebar/logger.py1# Copyright 2017 Google Inc. All Rights Reserved.
LOWresearch/rebar/download_data.py1# Copyright 2017 Google Inc. All Rights Reserved.
LOWresearch/rebar/utils.py1# Copyright 2017 Google Inc. All Rights Reserved.
LOWresearch/pcl_rl/objective.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/env_spec.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/controller.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/baseline.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/policy.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/model.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/optimizers.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/full_episode_objective.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/replay_buffer.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/gym_wrapper.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/trainer.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/trust_region.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/pcl_rl/expert_paths.py1# Copyright 2017 The TensorFlow Authors All Rights Reserved.
LOWresearch/adversarial_text/pretrain.py1# Copyright 2017 Google Inc. All Rights Reserved.
LOWresearch/adversarial_text/train_utils.py1# Copyright 2017 Google Inc. All Rights Reserved.
LOWresearch/adversarial_text/adversarial_losses.py1# Copyright 2017 Google Inc. All Rights Reserved.
2615 more matches not shown…
Self-Referential Comments606 hits · 2104 pts
SeverityFileLineSnippet
MEDIUMresearch/autoaugment/train_cifar.py284 # Create a new session for this model, initialize
MEDIUMresearch/rebar/rebar_train.py71 # Create the experiment name from the hparams
MEDIUMresearch/rebar/rebar.py181 # Create the conditional distribution (output is the logits)
MEDIUMresearch/rebar/rebar.py208 # Create the conditional distribution (output is the logits)
MEDIUMresearch/audioset/vggish/vggish_inference_demo.py109 # Define the model in inference mode, load the checkpoint, and
MEDIUMresearch/audioset/vggish/vggish_export_tfhub.py103 # Create a TF2 wrapper around VGGish.
MEDIUMresearch/audioset/vggish/vggish_train_demo.py133 # Define a shallow classification model and associated training ops on top
MEDIUMresearch/audioset/vggish/vggish_train_demo.py168 # Initialize all variables in the model, and then load the pre-trained
MEDIUMresearch/audioset/yamnet/export.py107 # Create a TF2 Module wrapper around YAMNet.
MEDIUMresearch/audioset/yamnet/export.py144 # Create a TF-Lite compatible Module wrapper around YAMNet.
MEDIUMresearch/lfads/lfads.py314 # Define the data placeholder, and deal with all parts of the graph
MEDIUMresearch/vid2depth/ops/icp_train_demo.py117 # Create the feed_dict for the placeholders filled with the next
MEDIUMresearch/vid2depth/ops/icp_train_demo.py189 # Create a variable to track the global step.
MEDIUMresearch/object_detection/model_lib.py865 # Create the input functions for TRAIN/EVAL/PREDICT.
MEDIUMresearch/object_detection/model_lib_v2.py553 # Create the inputs.
MEDIUM…t_detection/meta_architectures/center_net_meta_arch.py780 # Create the image center location.
MEDIUM…t_detection/meta_architectures/center_net_meta_arch.py1039 # Create the y,x grids: [height, width]
MEDIUMresearch/object_detection/core/densepose_ops.py293 # Create a list of that maps part index to flipped part index (0-indexed).
MEDIUMresearch/object_detection/utils/visualization_utils.py1176 # Create a display string (and color) for every box location, group any boxes
MEDIUMresearch/object_detection/utils/autoaugment_utils.py406 # Create the new bbox tensor by converting pixel integer values to floats.
MEDIUMresearch/object_detection/utils/autoaugment_utils.py555 # Create a mask that will be used to zero out a part of the original image.
MEDIUM…arch/object_detection/models/keras_models/resnet_v1.py405# The following codes are based on the existing keras ResNet model pattern:
MEDIUM…dels/keras_models/base_models/original_mobilenet_v2.py212# This function is taken from the original tf repo.
MEDIUM…ection/dataset_tools/download_and_preprocess_mscoco.sh40# Create the output directories.
MEDIUM…_detection/dataset_tools/create_pycocotools_package.sh29# Create the output directory.
MEDIUMresearch/slim/train_image_classifier.py457 # Create a dataset provider that loads data from the dataset #
MEDIUMresearch/slim/train_image_classifier.py483 # Define the model #
MEDIUMresearch/slim/eval_image_classifier.py115 # Create a dataset provider that loads data from the dataset #
MEDIUMresearch/slim/eval_image_classifier.py145 # Define the model #
MEDIUMresearch/slim/eval_image_classifier.py164 # Define the metrics:
MEDIUMresearch/slim/datasets/download_and_convert_imagenet.sh58# Create the output and temporary directories.
MEDIUMresearch/slim/datasets/download_imagenet.sh89 # Create a directory and delete anything there.
MEDIUMresearch/slim/datasets/build_imagenet_data.py140# This file is the output of process_bounding_box.py
MEDIUMresearch/slim/datasets/build_imagenet_data.py233 # Create a single Session to run all image coding calls.
MEDIUMresearch/slim/datasets/build_imagenet_data.py444 # Create a mechanism for monitoring when all threads are finished.
MEDIUMresearch/slim/datasets/build_imagenet_data.py447 # Create a generic TensorFlow-based utility for converting all image codings.
MEDIUMresearch/slim/deployment/model_deploy.py35 # Create the global step on the device storing the variables.
MEDIUMresearch/slim/deployment/model_deploy.py39 # Define the inputs
MEDIUMresearch/slim/deployment/model_deploy.py44 # Define the optimizer.
MEDIUMresearch/slim/deployment/model_deploy.py48 # Define the model including the loss.
MEDIUMresearch/slim/deployment/model_deploy_test.py172 # Create an easy training set:
MEDIUMresearch/slim/deployment/model_deploy_test.py319 # Create an easy training set:
MEDIUMresearch/slim/deployment/model_deploy_test.py468 # Create an easy training set:
MEDIUMresearch/slim/preprocessing/vgg_preprocessing.py154 # Create a random bounding box.
MEDIUMresearch/deeplab/model.py427 # The following codes employ the DeepLabv3 ASPP module. Note that we
MEDIUMresearch/deeplab/train.py312 # Create the global step on the device storing the variables.
MEDIUMresearch/deeplab/train.py316 # Define the model and create clones.
MEDIUMresearch/deeplab/eval.py158 # Define the evaluation metric.
MEDIUMresearch/deeplab/core/preprocess_utils.py306 # Create a random bounding box.
MEDIUMresearch/deeplab/datasets/remove_gt_colormap.py67 # Create the output directory if not exists.
MEDIUMresearch/cognitive_planning/visualization_utils.py598 # Create a display string (and color) for every box location, group any boxes
MEDIUM…/cognitive_planning/preprocessing/vgg_preprocessing.py155 # Create a random bounding box.
MEDIUMresearch/deep_speech/deep_speech.py171 # Create the train_op that groups both minimize_ops and update_ops
MEDIUM…earch/delf/delf/python/training/build_image_dataset.py146 # Create the dictionary (key = image_id, value = {label, file_id}).
MEDIUM…earch/delf/delf/python/training/build_image_dataset.py369 # Create the subset for the current label.
MEDIUMresearch/delf/delf/python/training/train.py179 # Create the strategy.
MEDIUMresearch/delf/delf/python/training/train.py210 # Create the distributed train/validation sets.
MEDIUMresearch/delf/delf/python/training/train.py231 # Create a checkpoint directory to store the checkpoints.
MEDIUM…rch/delf/delf/python/training/global_features/train.py187 # Define the loss function.
MEDIUM…rch/delf/delf/python/training/global_features/train.py208 # Define the optimizer.
546 more matches not shown…
Deep Nesting456 hits · 442 pts
SeverityFileLineSnippet
LOWresearch/efficient-hrl/train.py270
LOWresearch/efficient-hrl/eval.py48
LOWresearch/efficient-hrl/eval.py80
LOWresearch/efficient-hrl/environments/maze_env.py37
LOWresearch/efficient-hrl/environments/maze_env.py323
LOWresearch/efficient-hrl/environments/maze_env.py472
LOWresearch/efficient-hrl/environments/create_maze_env.py26
LOWresearch/efficient-hrl/environments/maze_env_utils.py54
LOWresearch/autoaugment/train_cifar.py79
LOWresearch/autoaugment/train_cifar.py404
LOWresearch/rebar/rebar_train.py63
LOWresearch/rebar/rebar.py151
LOWresearch/rebar/rebar.py220
LOWresearch/rebar/rebar.py759
LOWresearch/pcl_rl/env_spec.py47
LOWresearch/pcl_rl/env_spec.py105
LOWresearch/pcl_rl/baseline.py47
LOWresearch/pcl_rl/policy.py62
LOWresearch/pcl_rl/model.py123
LOWresearch/pcl_rl/expert_paths.py47
LOWresearch/adversarial_text/data/document_generators.py73
LOWresearch/adversarial_text/data/document_generators.py114
LOWresearch/adversarial_text/data/document_generators.py266
LOWresearch/adversarial_text/data/document_generators.py317
LOWresearch/cvt_text/cvt.py37
LOWresearch/cvt_text/preprocessing.py34
LOW…h/cvt_text/task_specific/word_level/word_level_data.py57
LOW…h/cvt_text/task_specific/word_level/word_level_data.py83
LOWresearch/cvt_text/corpus_processing/unlabeled_data.py59
LOWresearch/cvt_text/base/embeddings.py150
LOWresearch/cvt_text/base/embeddings.py113
LOWresearch/lfads/run_lfads.py760
LOWresearch/lfads/utils.py170
LOWresearch/lfads/lfads.py280
LOWresearch/lfads/lfads.py2090
LOWresearch/vid2depth/util.py35
LOWresearch/vid2depth/model.py130
LOWresearch/vid2depth/inference.py73
LOWresearch/vid2depth/dataset/dataset_loader.py204
LOWresearch/vid2depth/dataset/gen_data.py69
LOWresearch/object_detection/model_lib.py432
LOWresearch/object_detection/model_lib.py455
LOWresearch/object_detection/exporter.py363
LOWresearch/object_detection/eval_util.py246
LOWresearch/object_detection/eval_util.py416
LOWresearch/object_detection/eval_util.py1068
LOWresearch/object_detection/eval_util.py1159
LOWresearch/object_detection/inputs.py1134
LOWresearch/object_detection/model_lib_v2.py444
LOWresearch/object_detection/model_lib_v2.py833
LOWresearch/object_detection/model_lib_tf1_test.py131
LOWresearch/object_detection/metrics/coco_tools.py391
LOWresearch/object_detection/metrics/coco_tools.py588
LOWresearch/object_detection/metrics/coco_tools.py232
LOWresearch/object_detection/metrics/coco_evaluation.py1786
LOW…ch/object_detection/metrics/offline_eval_map_corloc.py76
LOW…t_detection/meta_architectures/center_net_meta_arch.py1239
LOW…t_detection/meta_architectures/center_net_meta_arch.py4785
LOW…ject_detection/meta_architectures/deepmac_meta_arch.py79
LOW…ject_detection/meta_architectures/deepmac_meta_arch.py131
396 more matches not shown…
Hallucination Indicators19 hits · 180 pts
SeverityFileLineSnippet
CRITICALresearch/object_detection/model_lib_v2.py528 tf.compat.v2.keras.mixed_precision.set_global_policy('mixed_bfloat16')
CRITICALresearch/object_detection/model_lib_v2.py1114 tf.compat.v2.keras.mixed_precision.set_global_policy('mixed_bfloat16')
CRITICALresearch/attention_ocr/python/model_export_test.py133 graph_def = tf.compat.v1.saved_model.loader.load(
CRITICALresearch/attention_ocr/python/model_export_lib.py106 k: tf.compat.v1.saved_model.utils.build_tensor_info(t)
CRITICALresearch/attention_ocr/python/model_export.py168 signature_def = tf.compat.v1.saved_model.signature_def_utils.build_signature_def(
CRITICALresearch/attention_ocr/python/model_export.py172 builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(export_dir)
CRITICALresearch/attention_ocr/python/sequence_layers.py250 lstm_cell = tf.compat.v1.nn.rnn_cell.LSTMCell(
CRITICALresearch/deeplab/convert_to_tflite.py56 converter = tf.compat.v1.lite.TFLiteConverter.from_session(
CRITICAL…elf/python/detect_to_retrieve/cluster_delf_features.py150 kmeans = tf.compat.v1.estimator.experimental.KMeans(
CRITICALofficial/recommendation/ncf_keras_main.py275 tf.compat.v1.train.experimental.enable_mixed_precision_graph_rewrite(
CRITICALofficial/core/train_utils.py573 opts = tf.compat.v1.profiler.ProfileOptionBuilder.float_operation()
CRITICALofficial/projects/qat/vision/quantization/schemes.py65 return tfmot.quantization.keras.graph_transformations.model_transformer.ModelTransformer(
CRITICALofficial/projects/qat/nlp/quantization/schemes.py197 return tfmot.quantization.keras.graph_transformations.model_transformer.ModelTransformer(
CRITICAL…al/projects/pixel/utils/convert_numpy_weights_to_tf.py39 vit_encoder.encoder.encoder._pos_embed.pos_embedding.assign(
CRITICALofficial/legacy/transformer/transformer_main_test.py70 tf.compat.v2.keras.mixed_precision.global_policy())
CRITICALofficial/legacy/transformer/transformer_main_test.py73 tf.compat.v2.keras.mixed_precision.set_global_policy(self.orig_policy)
CRITICALofficial/legacy/detection/main.py73 tf.compat.v2.keras.mixed_precision.set_global_policy('mixed_bfloat16')
CRITICALofficial/legacy/detection/modeling/base_model.py62 tf.compat.v2.keras.mixed_precision.set_global_policy('mixed_bfloat16')
CRITICALtensorflow_models/tensorflow_models_test.py45 _ = tfm.uplift.layers.encoders.concat_features.ConcatFeatures(['feature'])
Redundant / Tautological Comments44 hits · 69 pts
SeverityFileLineSnippet
LOW…t_detection/core/balanced_positive_negative_sampler.py136 # Check if indicator and labels have a static size.
LOWresearch/object_detection/utils/vrd_evaluation.py205 # Verify if one of the labels is negative (this is sure FP)
LOWresearch/object_detection/utils/vrd_evaluation.py208 # Verify if all labels are verified
LOWresearch/slim/datasets/download_and_convert_flowers.py140 # Read the filename:
LOWresearch/slim/nets/nasnet/nasnet_utils.py355 # Add hiddenstate to the list of hiddenstates we can choose from
LOWresearch/slim/nets/nasnet/nasnet_utils.py379 # Check if a stride is needed, then use a strided 1x1 here
LOWresearch/lstm_object_detection/lstm/lstm_cells.py391 # Set nodes to be under raw_inputs/ name scope for tfmini export.
LOWresearch/lstm_object_detection/lstm/lstm_cells.py619 # Set nodes to be under raw_outputs/ name scope for tfmini export.
LOWresearch/delf/delf/python/training/train.py238 # Set reduction to `none` so we can do the reduction afterwards and divide
LOW…rch/delf/delf/python/training/global_features/train.py136 # Check if train dataset is downloaded and download it if not found.
LOW…elf/python/detect_to_retrieve/cluster_delf_features.py89 # Loop over list of index images and collect DELF features.
LOW…configs/experiments/imagenet_simclr_multitask_tpu.yaml49 input_set_label_to_zero: true # Set labels to zeros to double confirm that no label is used during pretrain
LOW…lumetric_models/tasks/semantic_segmentation_3d_test.py73 # Check if training loss is produced.
LOW…lumetric_models/tasks/semantic_segmentation_3d_test.py86 # Check if validation loss is produced.
LOW…lumetric_models/tasks/semantic_segmentation_3d_test.py89 # Check if state is updated.
LOW…lumetric_models/tasks/semantic_segmentation_3d_test.py94 # Check if all metrics are produced.
LOW…metric_models/serving/semantic_segmentation_3d_test.py86 # Check if model is successfully exported.
LOW…_TF_Cloud_Deployment/client/feature_extraction_test.py89 # Check if the DataFrames are equal
LOW…on_ml/Triton_TF_Cloud_Deployment/client/requirement.sh18# Check if Docker is installed
LOW…on_ml/Triton_TF_Cloud_Deployment/client/requirement.sh52# Check if the 'models' directory exists before cloning.
LOW…ion_ml/Triton_TF_Cloud_Deployment/client/run_images.sh44# Check if the virtual environment is activated
LOW…_ml/Triton_TF_Cloud_Deployment/client/big_query_ops.py65 # Check if the dataset already exists
LOW…_ml/Triton_TF_Cloud_Deployment/client/big_query_ops.py75 # Check if the table already exists
LOW…riton_TF_Cloud_Deployment/client/inference_pipeline.py118 # Check if the input and output directories are valid.
LOW…riton_TF_Cloud_Deployment/client/inference_pipeline.py146 # Read files from a folder.
LOW…n_ml/Deploy/detr_cloud_deployment/client/run_images.sh32# Check if the virtual environment is activated
LOW…loy/detr_cloud_deployment/client/inference_pipeline.py94 # Check if the input and output directories are valid.
LOW…plications/milk_pouch_detection/src/extract_objects.py113 # Check if COCO output should be created
LOW…_applications/milk_pouch_detection/src/models_utils.py130 # Check if the input data is valid
LOW…te_identification_ml/model_inference/postprocessing.py293 # Check if the masks have the same dimensions.
LOW…l/docker_solution/prediction_pipeline/biq_query_ops.py50 # Check if the dataset already exists
LOW…l/docker_solution/prediction_pipeline/biq_query_ops.py59 # Check if the table already exists
LOW…jects/waste_identification_ml/data_generation/utils.py204 # Check if the masks have the same dimensions.
LOWofficial/projects/detr/tasks/detection.py157 # Set pads to large constant
LOWofficial/legacy/transformer/data_pipeline.py235 # Read files and interleave results. When training, the order of the examples
LOWofficial/legacy/transformer/data_download.py193 # Check if extracted files already exist in path
LOWofficial/legacy/transformer/utils/tokenizer.py339 # Check if the matched strings are '\u' or '\\'.
LOW…object_detection/balanced_positive_negative_sampler.py142 # Check if indicator and labels have a static size.
LOWofficial/vision/ops/augment.py2804 # Set coordinates to (0, 0, 0, 0) for filtered boxes
LOWofficial/vision/ops/sampling_ops.py248 # Check if indicator and labels have a static size.
LOWofficial/modeling/hyperparams/params_dict.py416 # Add the value to the array.
LOWofficial/nlp/modeling/layers/gaussian_process_test.py183 # Check if linear kernel leads to identity mapping.
LOWofficial/nlp/data/create_pretraining_data.py543 # Check if this would add too many tokens.
LOWofficial/nlp/data/create_pretraining_data.py547 # Check if any of the tokens in this gram have already been masked.
AI Slop Vocabulary16 hits · 26 pts
SeverityFileLineSnippet
LOW…earch/object_detection/builders/hyperparams_builder.py394 # It is insufficient to just set distribution to `normal` from the
LOWresearch/object_detection/utils/autoaugment_utils.py1608 # If no bounding boxes were specified, then just return the images.
LOW…detection/models/ssd_spaghettinet_feature_extractor.py99 # If we are building an eval graph just use the values in the
MEDIUM…h/object_detection/data_decoders/tf_example_decoder.py455 # If the label_map_proto is provided, try to use it in conjunction with
LOWresearch/lstm_object_detection/lstm/utils.py76 # If we are building an eval graph just use the values in the variables.
LOW…arch/delf/delf/python/feature_aggregation_extractor.py108 # Feature visual words are unused in the case of VLAD, so just return
LOW…ts/unified_detector/data_loaders/tf_example_decoder.py67 # To add new features, just add entries here.
LOWofficial/projects/triviaqa/inputs.py63 # are statically known. Otherwise, just use -1.
MEDIUMofficial/projects/yolo/configs/yolo.py205 """Distribute them in order to each level.
MEDIUMofficial/legacy/bert/model_training_utils.py232 # One can't fully utilize a TPU with steps_per_loop=1, so in this case
LOWofficial/legacy/xlnet/squad_utils.py382 # just create a nonce prediction in this case to avoid failure.
MEDIUMofficial/vision/serving/export_tflite_lib.py15"""Library to facilitate TFLite model conversion."""
LOWofficial/nlp/data/squad_lib.py501 # "Japanese", we just use "Japanese" as the annotation. This is fairly rare
LOWofficial/nlp/data/squad_lib.py731 # just create a nonce prediction in this case to avoid failure.
LOWofficial/nlp/data/squad_lib.py819 # can fail in certain cases in which case we just return `orig_text`.
LOWofficial/nlp/data/squad_lib_sp.py787 # just create a nonce prediction in this case to avoid failure.
Example Usage Blocks15 hits · 22 pts
SeverityFileLineSnippet
LOWresearch/vid2depth/train.py18# Example usage:
LOWresearch/vid2depth/inference.py18# Example usage:
LOWresearch/vid2depth/dataset/gen_data.py18# Example usage:
LOW…earch/slim/scripts/finetune_inception_v1_on_flowers.sh22# Usage:
LOW…earch/slim/scripts/finetune_inception_v3_on_flowers.sh22# Usage:
LOW…lim/scripts/finetune_inception_resnet_v2_on_flowers.sh22# Usage:
LOW…earch/slim/scripts/finetune_resnet_v1_50_on_flowers.sh22# Usage:
LOWresearch/slim/scripts/train_lenet_on_mnist.sh22# Usage:
LOWresearch/slim/scripts/train_cifarnet_on_cifar10.sh22# Usage:
LOWresearch/deeplab/local_test_mobilenetv2.sh20# Usage:
LOWresearch/deeplab/local_test.sh20# Usage:
LOW…earch/deeplab/datasets/download_and_convert_voc2012.sh19# Usage:
LOW…search/deeplab/datasets/download_and_convert_ade20k.sh19# Usage:
LOWresearch/deeplab/datasets/convert_cityscapes.sh23# Usage:
LOW…ion_ml/llm_applications/milk_pouch_detection/deploy.sh19# Usage:
Cross-Language Confusion4 hits · 22 pts
SeverityFileLineSnippet
HIGHresearch/object_detection/utils/colab_utils.py226 var elem = null;
HIGHresearch/object_detection/utils/colab_utils.py274 boundingBoxes.push(box);
HIGH…_TF_Cloud_Deployment/client/feature_extraction_test.py90 self.assertTrue(features_df.equals(pd.DataFrame(COMPARISON_DATA)))
HIGHofficial/projects/bigbird/recompute_grad.py46 return _context_stack.push(self)
Excessive Try-Catch Wrapping13 hits · 15 pts
SeverityFileLineSnippet
LOWresearch/vid2depth/ops/icp_op.py28except Exception: # pylint: disable=broad-except
LOWresearch/object_detection/model_lib_v2.py941 except Exception as exc: # pylint:disable=broad-except
LOW…/context_rcnn/create_cococameratraps_tfexample_main.py113 except Exception: # pylint: disable=broad-except
LOW…/dataset_tools/context_rcnn/generate_embedding_data.py188 except Exception: # pylint: disable=broad-except
LOWresearch/slim/datasets/process_bounding_boxes.py123 except Exception:
LOWresearch/slim/nets/mobilenet/mobilenet.py286 except Exception:
LOW…rch/delf/delf/python/training/global_features/train.py356 except Exception as ex:
LOWofficial/recommendation/data_pipeline.py507 except Exception as e:
MEDIUMofficial/recommendation/data_pipeline.py504def run(self):
LOWofficial/core/train_utils.py581 except Exception as e: # pylint: disable=broad-except
LOW…ion_ml/Triton_TF_Cloud_Deployment/client/ffmpeg_ops.py105 except Exception as e: # pylint: disable=broad-exception-caught
MEDIUM…on_ml/docker_solution/prediction_pipeline/predictor.py66 print(f'An error occurred: {e}')
LOWofficial/legacy/detection/modeling/checkpoint_utils.py94 except Exception as e:
Verbosity Indicators10 hits · 15 pts
SeverityFileLineSnippet
LOWresearch/deep_speech/run_deep_speech.sh3# Step 1: download the LibriSpeech dataset.
LOWresearch/deep_speech/run_deep_speech.sh16# Step 2: generate train dataset and evaluation dataset
LOWresearch/deep_speech/run_deep_speech.sh33# Step 3: filter out the audio files that exceed max time duration.
LOWresearch/deep_speech/run_deep_speech.sh41# Step 4: run the training and evaluation loop in background, and save the running info to a log file
LOWofficial/projects/labse/export_tfhub.py21# Step 1: export the core LaBSE model.
LOWofficial/projects/labse/export_tfhub.py27# Step 2: export matching preprocessing (be sure to use same flags).
LOWofficial/vision/evaluation/instance_metrics.py604 # Step 1: Computes IoUs between the detections and the non-crowd ground
LOWofficial/vision/evaluation/instance_metrics.py648 # Step 2: counts true positives grouped by IoU thresholds, classes and
LOWofficial/vision/evaluation/instance_metrics.py671 # Step 3: Counts false positives grouped by IoU thresholds, classes and
LOWofficial/vision/evaluation/instance_metrics.py698 # Step 4: Counts non-crowd groundtruths grouped by classes.
Slop Phrases5 hits · 7 pts
SeverityFileLineSnippet
LOW…/object_detection/utils/object_detection_evaluation.py979 # is inserted first we make sure to break the code if is it not the case.
LOWresearch/object_detection/utils/vrd_evaluation.py190 # is inserted first we make sure to break the code if is it not the case.
LOW…rnet-docs/themes/hugo-theme-techdoc/layouts/index.html8<p>The site is working. Don't forget to customize this homepage with your own. You typically have 2 choices :</p>
LOWofficial/projects/const_cl/losses/losses.py316 # NOTE: make sure to use xla.replica_id() here and in
LOWofficial/nlp/modeling/layers/gaussian_process.py373 # If use this option, make sure to pass through data only once.
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippet
LOW…t-docs/themes/hugo-theme-techdoc/archetypes/default.md10Lorem Ipsum.