MCPcopy Create free account

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

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

↓ 1 callersFunctionget_predictions
Gets predictions from an OWL-ViT model for a whole TFDS dataset. These predictions can then be evaluated using the COCO/LVIS APIs. Args: con
scenic/projects/owl_vit/evaluator.py:384
↓ 1 callersFunctionget_preproc_spec_eval
(num_frames)
scenic/projects/streaming_dvc/configs/git_youcook2_paragraph_streaming_input.py:75
↓ 1 callersFunctionget_preproc_spec_eval
(num_frames)
scenic/projects/streaming_dvc/configs/git_anet_paragraph_streaming_input.py:75
↓ 1 callersFunctionget_preproc_spec_eval
(num_frames, num_dense_outputs, early_segments_as_context, normalize_early_timestamps, num_bins)
scenic/projects/streaming_dvc/configs/git_anet_streaming_input_output.py:82
↓ 1 callersFunctionget_preproc_spec_eval
(num_frames, num_dense_outputs, early_segments_as_context, normalize_early_timestamps, num_bins)
scenic/projects/streaming_dvc/configs/git_vitt_streaming_input_output.py:82
↓ 1 callersFunctionget_preproc_spec_eval
(num_frames, num_dense_outputs, early_segments_as_context, normalize_early_timestamps, num_bins)
scenic/projects/streaming_dvc/configs/git_youcook2_streaming_input_output.py:82
↓ 1 callersFunctionget_preproc_spec_eval
(num_frames, num_dense_outputs)
scenic/projects/streaming_dvc/configs/vid2seq_anet_streaming_input_output.py:85
↓ 1 callersFunctionget_preproc_spec_eval
(num_frames, num_dense_outputs)
scenic/projects/streaming_dvc/configs/vid2seq_youcook2_streaming_input_output.py:82
↓ 1 callersFunctionget_preproc_spec_train
(num_frames)
scenic/projects/streaming_dvc/configs/git_youcook2_paragraph_streaming_input.py:65
↓ 1 callersFunctionget_preproc_spec_train
(num_frames)
scenic/projects/streaming_dvc/configs/git_anet_paragraph_streaming_input.py:65
↓ 1 callersFunctionget_preproc_spec_train
(num_frames, num_dense_outputs, early_segments_as_context, normalize_early_timestamps, num_bins, context_mask_
scenic/projects/streaming_dvc/configs/git_anet_streaming_input_output.py:68
↓ 1 callersFunctionget_preproc_spec_train
(num_frames, num_dense_outputs, early_segments_as_context, normalize_early_timestamps, num_bins, context_mask_
scenic/projects/streaming_dvc/configs/git_vitt_streaming_input_output.py:68
↓ 1 callersFunctionget_preproc_spec_train
(num_frames, num_dense_outputs, early_segments_as_context, normalize_early_timestamps, num_bins, context_mask_
scenic/projects/streaming_dvc/configs/git_youcook2_streaming_input_output.py:68
↓ 1 callersFunctionget_preproc_spec_train
(num_frames, num_dense_outputs, no_timestamp_in_context, context_mask_ratio, dynamic_location)
scenic/projects/streaming_dvc/configs/vid2seq_anet_streaming_input_output.py:69
↓ 1 callersFunctionget_preproc_spec_train
(num_frames, num_dense_outputs, no_timestamp_in_context)
scenic/projects/streaming_dvc/configs/vid2seq_youcook2_streaming_input_output.py:67
↓ 1 callersFunctionget_q_kv_mask
Generates query, key/valye, input mask and logging input mask based on ac_config.
scenic/projects/adatape/layers.py:512
↓ 1 callersFunctionget_random_bounding_box
Returns a random bounding box for Cutmix. Based on the implementation in timm: https://github.com/rwightman/pytorch-image-models/blob/master/timm
scenic/projects/objectvivit/train_utils.py:28
↓ 1 callersFunctionget_random_bounding_box
Returns a random bounding box for Cutmix. Based on the implementation in timm: https://github.com/rwightman/pytorch-image-models/blob/master/timm
scenic/projects/av_mae/train_utils.py:345
↓ 1 callersMethodget_ref_xy
(self, hpatches, wpatches)
scenic/projects/boundary_attention/models/model_lib/deformable_attention_blocks.py:92
↓ 1 callersFunctionget_sharded_files
Returns a list of shards, which may be postprocessed. Args: data_path: Path to the data, either sharded or a single file. fraction_data: Fr
scenic/projects/vivit/data/video_tfrecord_dataset.py:41
↓ 1 callersFunctionget_size_with_aspect_ratio
Output (h, w) such that smallest side in image_size resizes to size. This function makes sure that the longest side is not larger than max_size,
scenic/projects/baselines/centernet/transforms.py:187
↓ 1 callersMethodget_streaming_features
Get streaming features. Args: features: (video_batch_size, num_tot_tokens, dim) train: bool Returns: streaming_features: (v
scenic/projects/streaming_dvc/modeling/streaming_model.py:104
↓ 1 callersMethodget_text_tokens_and_pad_visual_features
Get inputs to the text decoder. In evaluation, we create the zero-padded text-token with the first token being BOS. In training, we handle mu
scenic/projects/streaming_dvc/modeling/vid2seq_model.py:409
↓ 1 callersMethodget_text_tokens_and_reshape_visual_features
Get inputs to the text decoder. In evaluation, we create the zero-padded text-token with the first token being BOS. In training, the vi
scenic/projects/streaming_dvc/modeling/streaming_model.py:473
↓ 1 callersFunctionget_train_num_abnormal
( pattern_pathname: str, test_fold: int, )
scenic/projects/tasseo/configs/longtail_kfold_topvit_finetuning_config.py:90
↓ 1 callersFunctionget_train_num_abnormal
( pattern_pathname: str, test_fold: int, )
scenic/projects/tasseo/configs/longtail_kfold_topvit_config.py:90
↓ 1 callersFunctionget_train_num_abnormal
( pattern_pathname: str, test_fold: int, )
scenic/projects/tasseo/configs/longtail_rhs_kfold_topvit_finetuning_config.py:64
↓ 1 callersFunctionget_train_num_normal
( pattern_pathname: str, test_fold: int, )
scenic/projects/tasseo/configs/longtail_kfold_topvit_finetuning_config.py:99
↓ 1 callersFunctionget_train_num_normal
( pattern_pathname: str, test_fold: int, )
scenic/projects/tasseo/configs/longtail_kfold_topvit_config.py:99
↓ 1 callersFunctionget_train_num_normal
( pattern_pathname: str, test_fold: int, )
scenic/projects/tasseo/configs/longtail_rhs_kfold_topvit_finetuning_config.py:73
↓ 1 callersFunctionget_train_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_l14.py:34
↓ 1 callersFunctionget_train_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_b32.py:38
↓ 1 callersFunctionget_train_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_b32_finetune.py:45
↓ 1 callersFunctionget_train_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_l14_with_masks.py:34
↓ 1 callersFunctionget_train_preproc_spec
Constructs training preprocess string.
scenic/projects/owl_vit/configs/clip_b16.py:34
↓ 1 callersFunctionget_train_step
Runs a single step of training. Given the state of the training and a batch of data, computes the loss and updates the parameters of the model.
scenic/projects/baselines/detr/trainer.py:41
↓ 1 callersFunctionget_train_step
Runs a single step of training. Given the state of the training and a batch of data, computes the loss and updates the parameters of the model.
scenic/projects/baselines/deformable_detr/trainer.py:117
↓ 1 callersFunctionget_train_step
Runs a single step of training. Given the state of the training and a batch of data, computes the loss and updates the parameters of the model.
scenic/projects/layout_denoise/trainer.py:54
↓ 1 callersFunctionget_train_step
Runs a single step of training. Given the state of the training and a batch of data, the train step computes the loss and updates the parameters
scenic/projects/owl_vit/trainer.py:41
↓ 1 callersFunctionget_trainer
(trainer_name)
scenic/projects/baselines/universal_transformer/main.py:38
↓ 1 callersFunctionget_trainer
(trainer_name)
scenic/projects/baselines/pondernet/main.py:38
↓ 1 callersFunctionget_trainer
(trainer_name)
scenic/projects/baselines/plainvit/main.py:38
↓ 1 callersFunctionget_trainer
Returns trainer given its name.
scenic/projects/vivit/main.py:32
↓ 1 callersFunctionget_trainer
Returns trainer given its name.
scenic/projects/unloc/main.py:30
↓ 1 callersFunctionget_trainer
Gets the trainer matching the given name.
scenic/projects/tasseo/main.py:64
↓ 1 callersFunctionget_trainer
Returns the trainer to use.
scenic/projects/av_mae/main.py:41
↓ 1 callersFunctionget_trainer
Gets the trainer matching the given name.
scenic/projects/svvit/main.py:52
↓ 1 callersFunctionget_trainer
(trainer_name)
scenic/projects/adatape/main.py:41
↓ 1 callersFunctionget_trainer
Returns trainer given its name.
scenic/projects/mtv/main.py:32
↓ 1 callersFunctionget_trainer_fn
Returns trainer function given config.
scenic/projects/pixel_llm/main.py:51
↓ 1 callersFunctionget_trainer_fn
Returns trainer function given config.
scenic/projects/streaming_dvc/main.py:64
↓ 1 callersFunctionget_value_range
Transforms a [in_min,in_max] image to [vmin,vmax] range. Input ranges in_min/in_max can be equal-size lists to rescale the invidudal channels ind
scenic/dataset_lib/big_transfer/preprocessing/ops.py:572
↓ 1 callersFunctionget_vg_eval_source
Returns the visual genome train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_trace_ref_densecap_llava.py:485
↓ 1 callersFunctionget_vg_eval_source
Returns the visual genome train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_trace_refseg_densecap_llava.py:325
↓ 1 callersFunctionget_vg_eval_source
Returns the visual genome train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_trace_ref_densecap_llava.py:485
↓ 1 callersFunctionget_vg_eval_source
Returns the visual genome train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_trace_refseg_densecap_llava.py:325
↓ 1 callersFunctionget_vg_train_source
Returns the visual genome train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_trace_ref_densecap_llava.py:425
↓ 1 callersFunctionget_vg_train_source
Returns the visual genome train source.
scenic/projects/pixel_llm/configs/bert/pixel_llm_bert_densecap.py:25
↓ 1 callersFunctionget_vg_train_source
Returns the visual genome train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_densecap.py:25
↓ 1 callersFunctionget_vg_train_source
Returns the visual genome train source.
scenic/projects/pixel_llm/configs/t5/pixel_llm_t5_trace_ref_densecap_llava.py:425
↓ 1 callersFunctionget_vivit_config
Returns config for ViViT.
scenic/projects/objectvivit/tools/convert_videomae_checkpoint.py:76
↓ 1 callersFunctiongreedy_start_end_times
(scores, p=1.0)
scenic/projects/densevoc/evaluation_utils.py:264
↓ 1 callersFunctiongt_concordance
Computes the genotype concordance. Genotype concordance is the fraction of predicted genotypes that exactly match the call set genotype. Args:
scenic/projects/svvit/metrics.py:132
↓ 1 callersMethodheatmap_focal_loss
Compute heatmap loss. Args: heatmaps: a single array in shape B x m x C. m = sum_l hl * wl. B is the batch size, C is the number of
scenic/projects/baselines/centernet/modeling/centernet.py:196
↓ 1 callersFunctionhflip
Flip an image, boxes [xyxy un-normalized] (, and masks) horizontally.
scenic/projects/baselines/centernet/transforms.py:150
↓ 1 callersFunctionhflip
Flip an image, boxes [xyxy un-normalized] (, and masks) horizontally.
scenic/projects/baselines/detr/transforms.py:338
↓ 1 callersFunctionhungarian_single
Hungarian matcher for a single example.
scenic/model_lib/matchers/hungarian_jax.py:21
↓ 1 callersFunctioni2p
(x)
scenic/model_lib/layers/nn_ops.py:266
↓ 1 callersFunctionidx2permutation
Constructs a permutation matrix from the column and row indices of ones.
scenic/model_lib/matchers/sinkhorn.py:28
↓ 1 callersMethodimage_embedder
Embeds images into feature maps. Args: images: images of shape (batch, input_size, input_size, 3), scaled to the input range define
scenic/projects/owl_vit/models.py:262
↓ 1 callersFunctionimagenet
Vision task with val and test splits.
scenic/projects/polyvit/configs/polyvit_all.py:37
↓ 1 callersFunctioninception_crop
Random crop input image.
scenic/projects/knowledge_visual_language/data/wiki_image_text_generation_dataset.py:101
↓ 1 callersFunctioninception_crop
Random crop input image.
scenic/projects/knowledge_visual_language/data/data_utils.py:152
↓ 1 callersMethodinference
Generate detections from model outputs. Args: outputs: dict of list of arrays. The keys should be 'heatmaps' and 'box_regs'. Both s
scenic/projects/baselines/centernet/modeling/centernet.py:500
↓ 1 callersFunctioninference_on_dataset
The main evaluation loop. Run evaluation on the whole validation set. Args: flax_model: Flax model (an instance of nn.Module). train_state:
scenic/projects/baselines/centernet/evaluate.py:69
↓ 1 callersFunctioninference_on_dataset
The main evaluation loop. Run evaluation on the whole validation set. Args: flax_model: Flax model (an instance of nn.Module). train_state:
scenic/projects/streaming_dvc/evaluate.py:264
↓ 1 callersFunctioninit_bottleneck
Initialize bottleneck tokens from a pretrained model.
scenic/projects/mtv/model_utils.py:131
↓ 1 callersFunctioninit_class_embedding
Initialize class embedding. The class embedding of the current model has a shape of (num_frames, channels). Args: to_params: Params of the
scenic/projects/unloc/model_utils.py:239
↓ 1 callersFunctioninit_conv1
Initialize the first 3D conv parameters. Initializes the first 3D conv layer from an image model. Args: from_conv1: The 2D conv weights from
scenic/projects/unloc/model_utils.py:294
↓ 1 callersFunctioninit_embedding
Initialize input embedding.
scenic/projects/vivit/model_utils.py:548
↓ 1 callersFunctioninit_embedding
Initialize input embedding.
scenic/projects/polyvit/model_utils.py:478
↓ 1 callersFunctioninit_embedding
Initialize input embedding. Args: to_params: PyTree of model parameters that will be updated. This argument is modified by the function.
scenic/projects/token_learner/model.py:836
↓ 1 callersFunctioninit_encoderblock
Initialize encoder_block_parameters.
scenic/projects/vivit/model_utils.py:489
↓ 1 callersFunctioninit_encoderblock
Initialize encoder_block_parameters.
scenic/projects/av_mae/mbt.py:1531
↓ 1 callersFunctioninit_encoderblock
Initialize encoder_block_parameters.
scenic/projects/polyvit/model_utils.py:463
↓ 1 callersFunctioninit_fn
(unused_key: jnp.ndarray, # pytype: disable=annotation-type-mismatch # jnp-type shape: Iterabl
scenic/model_lib/layers/nn_layers.py:198
↓ 1 callersMethodinit_from_mbt_train_state
Updates the train_state with data from restored_train_state (AViT).
scenic/projects/polyvit/model.py:195
↓ 1 callersFunctioninit_from_mtv_checkpoint
Initialize train state from a MTV checkpoint.
scenic/projects/mtv/trainer.py:44
↓ 1 callersMethodinit_from_polyvit_train_state
Updates the train_state with data from restored_train_state (PolyViT).
scenic/projects/polyvit/model.py:177
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state. This function is writen to be used for 'fine-tuning' experiments. Here, we do so
scenic/projects/baselines/universal_transformer/uvit/uvit.py:400
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state.
scenic/projects/baselines/bert/model.py:177
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state. This function is writen to be used for 'fine-tuning' experiments. Here, we do so
scenic/projects/baselines/pondernet/pondervit/pondervit.py:433
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state. This function is writen to be used for 'fine-tuning' experiments. Here, we do so
scenic/projects/baselines/plainvit/plainvit.py:342
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state.
scenic/projects/objectvivit/model.py:225
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state.
scenic/projects/mbt/model.py:733
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state.
scenic/projects/vivit/model.py:744
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state. This function is written to be used for 'fine-tuning' experiments. Here, we do s
scenic/projects/tasseo/vit.py:47
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state. This function is written to be used for 'fine-tuning' experiments. Here, we do s
scenic/projects/svvit/vit.py:40
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state. This function is writen to be used for 'fine-tuning' experiments. Here, we do so
scenic/projects/adatape/adatape_vit/adatape_vit.py:324
↓ 1 callersMethodinit_from_train_state
Updates the train_state with data from restored_train_state. This function is writen to be used for 'fine-tuning' experiments. The input embe
scenic/projects/mtv/model.py:718
← previousnext →1,301–1,400 of 4,921, ranked by callers