MCPcopy Create free account

hub / github.com/google-research/scenic / functions

Functions4,921 in github.com/google-research/scenic

↓ 1 callersFunctionget_default_dataset_config
Gets default configs for CC12M dataset.
scenic/projects/knowledge_visual_language/data/okvqa_dataset.py:67
↓ 1 callersFunctionget_default_dataset_config
Gets default configs for CC12M dataset.
scenic/projects/knowledge_visual_language/data/vqa_dataset.py:69
↓ 1 callersMethodget_dense_streaming_features
A wrapper function of different streaming function implementation. This is the place where we convert per-frame features (the input "features")
scenic/projects/streaming_dvc/modeling/streaming_model.py:313
↓ 1 callersMethodget_dense_streaming_features_fixed_checkpoints
Get streaming features with intermadiate outputs. With N = self.num_dense_outputs, we currently forward the memory module N times, each time
scenic/projects/streaming_dvc/modeling/streaming_model.py:365
↓ 1 callersMethodget_dict_from_config
(self)
scenic/projects/gerald/models/ger_model.py:310
↓ 1 callersMethodget_dict_from_config
(self)
scenic/projects/streaming_dvc/modeling/streaming_model.py:588
↓ 1 callersMethodget_dict_from_config
(self)
scenic/projects/streaming_dvc/modeling/vid2seq_model.py:502
↓ 1 callersMethodget_dict_from_config
(self)
scenic/projects/streaming_dvc/modeling/model.py:429
↓ 1 callersMethodget_drop_pattern
DropPath Layer.
scenic/projects/baselines/centernet/modeling/convnext.py:37
↓ 1 callersFunctionget_embed_queries_fn
Get query embedding function. Args: module: OWL-ViT Flax module. variables: OWL-ViT variables. Returns: Jitted query embedding funct
scenic/projects/owl_vit/evaluator.py:208
↓ 1 callersFunctionget_eval_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_l14.py:63
↓ 1 callersFunctionget_eval_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_b32.py:67
↓ 1 callersFunctionget_eval_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_b32_finetune.py:73
↓ 1 callersFunctionget_eval_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_l14_with_masks.py:63
↓ 1 callersFunctionget_eval_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_b16.py:63
↓ 1 callersFunctionget_eval_step
Runs a single step of training. Note that in this code, the buffer of the second argument (batch) is donated to the computation. Args: fla
scenic/projects/baselines/detr/trainer.py:137
↓ 1 callersFunctionget_eval_step
Runs a single step of training. Note that in this code, the buffer of the second argument (batch) is donated to the computation. Args: fla
scenic/projects/layout_denoise/trainer.py:159
↓ 1 callersFunctionget_eval_step
Runs a single step of training. Note that in this code, the buffer of the second argument (batch) is donated to the computation. Args: fla
scenic/projects/owl_vit/trainer.py:143
↓ 1 callersFunctionget_fake_batch_and_predictions
Generates a fake `batch`.
scenic/projects/av_mae/tests/test_base_model.py:47
↓ 1 callersFunctionget_fake_config_mae
Returns config for testing MAE.
scenic/projects/av_mae/tests/test_trainer.py:33
↓ 1 callersFunctionget_first_valid_label
(predicted_labels)
scenic/projects/gerald/ger_eval.py:47
↓ 1 callersFunctionget_fixed_sincos_position_embedding
Provides a fixed position encoding for 2D and 3D coordinates. The embedding follows the initialisation method used in multiple papers such as "At
scenic/model_lib/layers/attention_layers.py:588
↓ 1 callersFunctionget_fold_filepath_pattern
(fold_num)
scenic/projects/tasseo/datasets/longtail_baseline_dataset.py:125
↓ 1 callersFunctionget_fold_filepath_pattern
(fold_num)
scenic/projects/tasseo/datasets/longtail_rhs_baseline_dataset.py:98
↓ 1 callersFunctionget_glue_task_config
Returns GLUE task config.
scenic/projects/baselines/bert/configs/glue/glue_fewshot.py:23
↓ 1 callersMethodget_ground_truth
Generate ground truth heatmaps and regression maps. Args: gt_boxes: array in shape (B x max_boxes x 4) gt_labels: array in shape (B x
scenic/projects/baselines/centernet/modeling/centernet.py:378
↓ 1 callersFunctionget_image_encoder
Returns an image encoder.
scenic/projects/streaming_dvc/modeling/model.py:33
↓ 1 callersFunctionget_image_grid
Returns an image grid for summary writing.
scenic/projects/av_mae/trainer_multimodal.py:320
↓ 1 callersFunctionget_image_grid
Returns an image grid for summary writing.
scenic/projects/av_mae/trainer.py:253
↓ 1 callersFunctionget_images
(config, model_outputs, im_num, ii, sbatch)
scenic/projects/boundary_attention/helpers/viz_utils.py:173
↓ 1 callersFunctionget_inds
(num_frames, max_frames, temporal_stride)
scenic/projects/densevoc/input_utils.py:422
↓ 1 callersFunctionget_input_shape
Returns input shape for the dataset.
scenic/projects/boundary_attention/dataset_lib/datasets/kaleidoshapes_dataset.py:27
↓ 1 callersFunctionget_input_shape
(num_frames)
scenic/projects/streaming_dvc/configs/git_youcook2_paragraph_streaming_input.py:117
↓ 1 callersFunctionget_input_shape
(num_frames)
scenic/projects/streaming_dvc/configs/git_anet_paragraph_streaming_input.py:117
↓ 1 callersFunctionget_input_shape
(num_frames)
scenic/projects/streaming_dvc/configs/git_anet_streaming_input_output.py:144
↓ 1 callersFunctionget_input_shape
(num_frames)
scenic/projects/streaming_dvc/configs/git_vitt_streaming_input_output.py:144
↓ 1 callersFunctionget_input_shape
(num_frames)
scenic/projects/streaming_dvc/configs/git_youcook2_streaming_input_output.py:144
↓ 1 callersFunctionget_input_shape
(num_frames)
scenic/projects/streaming_dvc/configs/vid2seq_anet_streaming_input_output.py:138
↓ 1 callersFunctionget_input_shape
(num_frames)
scenic/projects/streaming_dvc/configs/vid2seq_youcook2_streaming_input_output.py:133
↓ 1 callersFunctionget_input_token_temporal_dims
Returns temporal dims of input tokens for each view. Args: num_frames: Number of frames in the input video. view_configs: Configurations of
scenic/projects/mtv/model_utils.py:32
↓ 1 callersFunctionget_instance_mask
Obtain the instance mask from the blue channel of the segmentation file.
scenic/projects/robust_segvit/datasets/segmentation_variants.py:45
↓ 1 callersFunctionget_knn
Return k nearest neighbours from dataset given queries. Args: queries: An [q, d] array where q is the number of queries, and d the dimens
scenic/projects/ncr/loss.py:87
↓ 1 callersMethodget_label_weights
Returns labels' weights to be used for computing weighted loss. This can used for weighting the loss terms based on the amount of available d
scenic/model_lib/base_models/segmentation_model.py:200
↓ 1 callersMethodget_label_weights
Returns labels' weights to be used for computing weighted loss. This can be used for weighting the loss terms based on the amount of availabl
scenic/projects/tasseo/vit.py:152
↓ 1 callersFunctionget_labels_verbs
Labels the inner products computed from `compute_inners` for verb loss.
scenic/projects/verbs_in_action/losses.py:199
↓ 1 callersFunctionget_learning_rate_fn
Looks up for the learning rate scheduler and return lr_fn. Args: config: ConfigDict that has configuration ofthe learning rate function. Ret
scenic/train_lib/lr_schedules.py:299
↓ 1 callersFunctionget_llava_cap_train_source
Returns the LLaVA train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_trace_ref_densecap_llava.py:533
↓ 1 callersFunctionget_llava_cap_train_source
Returns the LLaVA train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_trace_ref_densecap_llava.py:533
↓ 1 callersFunctionget_ln_trace_cap_train_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_trace.py:25
↓ 1 callersFunctionget_ln_trace_cap_train_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_trace_ref_densecap_llava.py:25
↓ 1 callersFunctionget_ln_trace_cap_train_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_trace.py:25
↓ 1 callersFunctionget_ln_trace_cap_train_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_trace_ref_densecap_llava.py:25
↓ 1 callersFunctionget_ln_trace_eval_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_trace.py:87
↓ 1 callersFunctionget_ln_trace_eval_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_trace_ref_densecap_llava.py:88
↓ 1 callersFunctionget_ln_trace_eval_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_trace_refseg_densecap_llava.py:25
↓ 1 callersFunctionget_ln_trace_eval_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_trace.py:87
↓ 1 callersFunctionget_ln_trace_eval_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_trace_ref_densecap_llava.py:88
↓ 1 callersFunctionget_ln_trace_eval_source
Returns the localized narrative train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_trace_refseg_densecap_llava.py:25
↓ 1 callersMethodget_local_maps
Render boundary and wedge patches.
scenic/projects/boundary_attention/helpers/junction_functions.py:387
↓ 1 callersMethodget_loss_opts
(self)
scenic/projects/boundary_attention/loss_lib/boundary_attention_loss.py:42
↓ 1 callersMethodget_losses_and_metrics
A convenience wrapper to all the loss_* functions in this class.
scenic/projects/owl_vit/matching_base_models.py:217
↓ 1 callersMethodget_matched_proposals_train
( self, detections, batch, train=False, )
scenic/projects/pixel_llm/modeling/pixel_llm.py:860
↓ 1 callersMethodget_metrics
Arrange loss dictionary into a metrics dictionary.
scenic/projects/baselines/detr/detr_base_model.py:548
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/omninet/main.py:32
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/baselines/centernet/main.py:34
↓ 1 callersFunctionget_model_cls
Get the model class for the Universal Transformer project.
scenic/projects/baselines/universal_transformer/main.py:30
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/baselines/bert/main.py:33
↓ 1 callersFunctionget_model_cls
Get the model class for the PonderNet project.
scenic/projects/baselines/pondernet/main.py:30
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/baselines/detr/main.py:32
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/baselines/deformable_detr/main.py:36
↓ 1 callersFunctionget_model_cls
Get the model class for the PlainViT project.
scenic/projects/baselines/plainvit/main.py:30
↓ 1 callersFunctionget_model_cls
Selects Vivit model type.
scenic/projects/objectvivit/main.py:33
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/mbt/main.py:32
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/fast_vit/main.py:32
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/tasseo/main.py:50
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/svvit/main.py:40
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/densevoc/main.py:36
↓ 1 callersFunctionget_model_cls
Get the model class for the AdaTape project.
scenic/projects/adatape/main.py:33
↓ 1 callersFunctionget_model_cls
(model_name)
scenic/projects/ncr/main.py:33
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/vid2seq/main.py:39
↓ 1 callersFunctionget_model_cls
Returns model class given its name.
scenic/projects/streaming_dvc/main.py:43
↓ 1 callersFunctionget_next_train_batch
(step)
scenic/projects/layout_denoise/trainer.py:615
↓ 1 callersFunctionget_next_train_batch
(step)
scenic/projects/polyvit/trainer.py:690
↓ 1 callersFunctionget_next_train_batch
(all_datasets, step)
scenic/projects/vid2seq/trainer.py:1015
↓ 1 callersFunctionget_noise_info
Make noise config strings to show metrics in XM.
scenic/projects/avatar/generation_trainer.py:797
↓ 1 callersMethodget_num_examples_added
(self)
scenic/projects/layout_denoise/train_utils.py:245
↓ 1 callersFunctionget_num_training_steps
Calculates the total number of training step and possibly steps_per_epoch. The main raining loop is based on number of training steps. Thus, for da
scenic/projects/avatar/generation_trainer.py:763
↓ 1 callersFunctionget_number_of_examples
Obtain the number of examples in a thin DMVR or TFDS dataset.
scenic/projects/pixel_llm/io/flexio.py:114
↓ 1 callersFunctionget_number_of_examples
Obtain the number of examples in a TFRecord dataset.
scenic/projects/streaming_dvc/io/flexio.py:44
↓ 1 callersFunctionget_number_of_examples
Obtain the number of examples in a thin DMVR or TFDS dataset.
scenic/dataset_lib/flexio/flexio.py:114
↓ 1 callersFunctionget_optimizer
Makes a Optax GradientTransformation for DeformableDETR.
scenic/projects/baselines/deformable_detr/trainer.py:52
↓ 1 callersFunctionget_optimizer_def
Get optimizer for adversarial attack.
scenic/projects/adversarialtraining/attacks/attack_compute.py:124
↓ 1 callersFunctionget_padding
(key_length, max_length=100)
scenic/projects/svvit/datasets/pileup_window_dataset.py:89
↓ 1 callersFunctionget_pairs
(i, j)
scenic/projects/vid2seq/dvc_eval.py:97
↓ 1 callersMethodget_per_patch_importance
Calculates the per-patch importance function.
scenic/projects/boundary_attention/loss_lib/boundary_attention_loss.py:80
↓ 1 callersMethodget_per_pixel_importance
Calculates the per-pixel importance function.
scenic/projects/boundary_attention/loss_lib/boundary_attention_loss.py:62
↓ 1 callersFunctionget_posemb
(self, typ, seqshape, width, name, dtype=jnp.float32)
scenic/projects/baselines/plainvit/plainvit.py:51
↓ 1 callersFunctionget_post_exclusion_labels
Determines new labels after excluding bad classes. See Figure 1 in https://arxiv.org/abs/1604.01685 for which classes are excluded. Excluded clas
scenic/dataset_lib/cityscapes_dataset.py:193
↓ 1 callersFunctionget_predict_fn
Get prediction function. Args: module: OWL-ViT Flax module. variables: OWL-ViT variables. Returns: Jitted predict function.
scenic/projects/owl_vit/evaluator.py:232
↓ 1 callersFunctionget_predicted_labels
(seqs, code2id)
scenic/projects/gerald/ger_eval.py:37
← previousnext →1,201–1,300 of 4,921, ranked by callers