MCPcopy Create free account

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

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

↓ 1 callersFunctioncreate_caption_and_time_tokens
Tokenize strings and create time tokens.
scenic/projects/streaming_dvc/io/densecap_ops.py:73
↓ 1 callersFunctioncreate_classifier_dataset
Creates input dataset from (tf)records files for train/eval.
scenic/projects/baselines/bert/datasets/bert_glue_dataset.py:51
↓ 1 callersFunctioncreate_coverage_based_dataset
Creates a coverage based pileup dataset from a filepath. Args: filenames: The data directory/pattern containing data files. with_label: whe
scenic/projects/svvit/datasets/pileup_coverage_dataset.py:46
↓ 1 callersFunctioncreate_dataset
Creates a tf.SequenceExample TFRecord.
scenic/projects/densevoc/tools/build_vidor_tfrecord.py:121
↓ 1 callersFunctioncreate_dummy_input
(spec: PyTree)
scenic/train_lib/train_utils.py:252
↓ 1 callersFunctioncreate_dummy_input
(spec: PyTree)
scenic/projects/unloc/train_utils.py:321
↓ 1 callersFunctioncreate_dummy_input
(spec: PyTree)
scenic/common_lib/debug_utils.py:180
↓ 1 callersFunctioncreate_point_densities
(points)
scenic/projects/performer/performer.py:960
↓ 1 callersFunctioncreate_random_points
(d, nb_rows, nb_columns, seed)
scenic/projects/performer/performer.py:955
↓ 1 callersFunctioncreate_schedule
(lr_configs)
scenic/train_lib/optax.py:168
↓ 1 callersFunctioncreate_train_state
Gets the train state from the input ckpt. Args: ckpt_path: Path to the ckpt to be loaded.. config: The configuration used to train the mode
scenic/projects/matvit/classification_eval_main.py:206
↓ 1 callersFunctioncrop
Crop the image + bbox (+ mask) to region. WARNING! Only use during train. In eval mode the original_size would need to be updated somehow. Arg
scenic/projects/baselines/centernet/transforms.py:307
↓ 1 callersFunctioncrop
Crop the image + bbox (+ mask) to region. WARNING! Only use during train. In eval mode the original_size would need to be updated somehow. Arg
scenic/projects/baselines/detr/transforms.py:437
↓ 1 callersFunctioncrop
The same as detr crop, with additional keys (e.g., object captioning.).
scenic/projects/densevoc/transforms.py:30
↓ 1 callersFunctioncrop_and_resize_image_tong
Crops and resizes the images in the given sequence of images. Args: frames: A tensor of dimension [timesteps, input_h, input_w, channels].
scenic/projects/objectvivit/dataset_utils.py:822
↓ 1 callersFunctioncrop_and_resize_image_vmae
Crops and resizes the images in the given sequence of images. Args: frames: A tensor of dimension [timesteps, input_h, input_w, channels].
scenic/projects/av_mae/datasets/dataset_utils.py:32
↓ 1 callersFunctioncustom_standardization
(input_data)
scenic/projects/avatar/datasets/dataset_utils.py:1059
↓ 1 callersFunctioncutout_bbox
Cuts out portions of the given image by sampling random bounding boxes. Args: image: A single image, must be in 0-1 range. rng: Seed for sa
scenic/projects/robust_segvit/datasets/denoise_utils.py:65
↓ 1 callersFunctioncutout_checkerboard
Randomly cuts out portions of the given image. Noise is sampled at `patch_size` times lower resolution and upsampled to form a checkerboard patte
scenic/projects/robust_segvit/datasets/denoise_utils.py:87
↓ 1 callersFunctiondataset_builder
Returns generators for COCO object detection 2017 train & validation set. Args: batch_size: int; Determines the train batch size. eval_batc
scenic/projects/densevoc/input_pipeline.py:179
↓ 1 callersFunctiondecay_every_scheduler
Gives a scaling factor based on scheduling with a decay every n-steps. Args: step: int; Current step. steps_per_decay: int; How often to de
scenic/train_lib/lr_schedules.py:117
↓ 1 callersMethoddecode
(self, encoded, decoder_inputs, *, train=True,
scenic/projects/vid2seq/models.py:233
↓ 1 callersFunctiondecode_and_pad_vg_image
Augment an image into a video.
scenic/projects/densevoc/input_utils.py:529
↓ 1 callersFunctiondecode_and_sample_video_example
Convert custom tfrecord into tfds builder format.
scenic/projects/densevoc/input_utils.py:292
↓ 1 callersFunctiondecode_boxes
Convert yxyx [0, 1] normalized boxes to xyxy unnormalized format.
scenic/projects/baselines/centernet/input_pipeline.py:70
↓ 1 callersFunctiondecode_boxes
Decode boxes. Args: encoded_boxes: a tensor whose last dimension is 4 representing the coordinates of encoded boxes in ymin, xmin, ymax,
scenic/projects/baselines/centernet/modeling/roi_head_utils.py:128
↓ 1 callersFunctiondecode_boxes
Convert yxyx [0, 1] normalized boxes to xyxy unnormalized format.
scenic/projects/baselines/detr/input_pipeline_detection.py:80
↓ 1 callersFunctiondecode_boxes
Convert yxyx [0, 1] normalized boxes to xyxy unnormalized format.
scenic/projects/baselines/deformable_detr/input_pipeline_detection.py:89
↓ 1 callersMethoddecode_boxes_from_points
Convert points to detection boxes.
scenic/projects/pixel_llm/modeling/pixel_llm.py:1093
↓ 1 callersFunctiondecode_coco_detection_example
Given an instance and raw labels, creates <inputs, label> pair. Decoding includes. 1. Converting images from uint8 [0, 255] to [0, 1.] float32.
scenic/projects/baselines/deformable_detr/input_pipeline_detection.py:104
↓ 1 callersFunctiondecode_densecap_annotations
Convert custom tfrecord into training pipeline builder format.
scenic/projects/densevoc/input_utils.py:354
↓ 1 callersFunctiondecode_eval_annotations
Convert custom tfrecord into training pipeline builder format.
scenic/projects/densevoc/input_utils.py:120
↓ 1 callersFunctiondecode_eval_video_example
Convert custom tfrecord into tfds builder format.
scenic/projects/densevoc/input_utils.py:88
↓ 1 callersFunctiondecode_sharded_names
Convert sharded file names into a list.
scenic/projects/baselines/centernet/input_pipeline.py:129
↓ 1 callersFunctiondecode_sharded_names
Convert sharded file names into a list.
scenic/projects/objectvivit/tools/add_orvit_bbox_to_tfrecord.py:111
↓ 1 callersFunctiondecode_sharded_names
Convert sharded file names into a list.
scenic/projects/densevoc/tools/build_vidstg_tfrecord.py:81
↓ 1 callersFunctiondecode_sharded_names
Convert sharded file names into a list.
scenic/projects/densevoc/tools/convert_video_tfrecord_to_image_tfrecord.py:51
↓ 1 callersFunctiondecode_sharded_names
Convert sharded file names into a list.
scenic/projects/densevoc/tools/create_coco_json_from_tfrecord.py:57
↓ 1 callersFunctiondecode_sharded_names
Convert sharded file names into a list.
scenic/projects/pixel_llm/io/flexio.py:294
↓ 1 callersFunctiondecode_sharded_names
Convert sharded file names into a list.
scenic/projects/streaming_dvc/tools/create_densecap_json_from_tfrecord.py:37
↓ 1 callersFunctiondecode_sharded_names
Convert sharded file names into a list.
scenic/projects/streaming_dvc/io/flexio.py:57
↓ 1 callersFunctiondecode_time
(time, duration, fmt)
scenic/projects/vid2seq/trainer.py:73
↓ 1 callersFunctiondecode_tokens
(tokenizer, toks)
scenic/projects/avatar/generation_trainer.py:87
↓ 1 callersFunctiondecode_tokens
(seq, tokenizer, vocabulary_size)
scenic/projects/vid2seq/trainer.py:66
↓ 1 callersFunctiondecode_videocap
Convert custom tfrecord into tfds builder format.
scenic/projects/densevoc/input_utils.py:436
↓ 1 callersMethoddefault_flax_model_config
Default config for the flax model that is built in `build_flax_model`. This function in particular serves the testing functions and supposed to
scenic/model_lib/base_models/base_model.py:182
↓ 1 callersMethoddefault_flax_model_config
Default config for the flax model that is built in `build_flax_model`. This function in particular serves the testing functions and supposed to
scenic/projects/layout_denoise/base_model.py:183
↓ 1 callersMethoddefault_flax_model_config
(self)
scenic/projects/avatar/models.py:765
↓ 1 callersMethoddefault_flax_model_config
Default config for the flax model that is built in `build_flax_model`. This function in particular serves the testing functions and supposed to
scenic/projects/polyvit/polyvit_base_model.py:412
↓ 1 callersMethoddefault_flax_model_config
(self)
scenic/projects/mtv/model.py:715
↓ 1 callersFunctiondeform_attn_sampling_fn
Performs deformable attention sampling calculation. Args: values: [bs, len_v, nembed]-array of values. sampling_locations: [bs, nlevels, np
scenic/projects/baselines/deformable_detr/attention.py:141
↓ 1 callersMethoddemo_input
(self)
scenic/projects/knowledge_visual_language/data/wikidata/data_util_test.py:42
↓ 1 callersFunctiondeterministic_crop
Takes a deterministic crop of input images. Args: images: `Tensor` of shape shape [t, h, w, c] size: Integer ; size of height and width to
scenic/projects/objectvivit/dataset_utils.py:931
↓ 1 callersFunctiondeterministic_crop
Takes a deterministic crop of input images. Args: images: `Tensor` of shape shape [t, h, w, c] size: Integer ; size of height and width to
scenic/dataset_lib/video_ops.py:420
↓ 1 callersFunctiondisk_to_zero
Set to zero all elements of a 2D array that are WITHIN radius of a point. Args: array: 2D array of non-zero elements center: [x,y] ([column
scenic/projects/boundary_attention/kaleidoshapes/make_kaleido_image.py:50
↓ 1 callersMethoddistort
Applies RandomErasing to video. Args: video (tf.Tensor): Of shape [temporal, height, width, 3] representing a video. Returns:
scenic/dataset_lib/video_ops.py:131
↓ 1 callersFunctiondistorted_bounding_box_crop
Generates cropped_image using one of the bboxes randomly distorted. See `tf.image.sample_distorted_bounding_box` for more documentation. Args:
scenic/dataset_lib/imagenet_dataset.py:39
↓ 1 callersFunctiondistribute
( dataset: tf.data.Dataset, dataset_service_address: str, processing_mode: str = 'parallel_epochs')
scenic/dataset_lib/dataset_utils.py:769
↓ 1 callersFunctiondo_intersect
Check if the line segments p1q1 and p2q2 intersect.
scenic/projects/boundary_attention/kaleidoshapes/make_kaleido_image.py:696
↓ 1 callersFunctiondot_product_attention
Computes dot-product attention given query, key, and value. This is the core function for applying attention based on https://arxiv.org/abs/1706.
scenic/projects/knowledge_visual_language/models/layers.py:547
↓ 1 callersFunctiondual_vector
Returns the solution of max_x y^T x s.t. ||x||_2 <= 1.
scenic/projects/vivit/train_utils.py:138
↓ 1 callersFunctioneager_fn
(_)
scenic/projects/streaming_dvc/configs/common.py:115
↓ 1 callersFunctionearly_and_load_pretrain
(path)
scenic/projects/baselines/deformable_detr/trainer.py:69
↓ 1 callersFunctionembed_2d_patch
Standard ViT method of embedding input patches.
scenic/projects/vivit/model.py:88
↓ 1 callersFunctionembed_3d_patch
Embed 3D input patches into tokens.
scenic/projects/mbt/model.py:79
↓ 1 callersFunctionembed_3d_patch
Embed 3D input patches into tokens.
scenic/projects/vivit/model.py:114
↓ 1 callersMethodembed_layout
Prepares the input for the screen encoder.
scenic/projects/layout_denoise/layers/embedding.py:269
↓ 1 callersMethodembed_pos
Prepares the input for the screen encoder.
scenic/projects/layout_denoise/layers/embedding.py:309
↓ 1 callersMethodencode
Applies Transformer encoder-branch on the inputs.
scenic/projects/avatar/models.py:453
↓ 1 callersMethodencode
(self, encoder_inputs, *, train=True)
scenic/projects/vid2seq/models.py:211
↓ 1 callersFunctionencode_coordinate
Encodes positions using random features-based encoder.
scenic/projects/layout_denoise/layers/embedding.py:325
↓ 1 callersMethodencode_image
(self, image: jnp.ndarray, normalize: bool = True)
scenic/projects/baselines/clip/layers.py:449
↓ 1 callersMethodencode_image
(self, image, train=False)
scenic/projects/knowledge_visual_language/models/fusion_in_decoder_soft.py:307
↓ 1 callersMethodencode_image
(self, image: jnp.ndarray, normalize: bool = True, *,
scenic/projects/owl_vit/clip/layers.py:518
↓ 1 callersMethodencode_query
( self, encoder_input_image, encoder_input_tokens, train=False, frozen_base=True
scenic/projects/knowledge_visual_language/models/fusion_in_decoder_soft.py:242
↓ 1 callersMethodencode_text
(self, text: jnp.ndarray, normalize: bool = True)
scenic/projects/baselines/clip/layers.py:457
↓ 1 callersMethodencode_text
Encodes text.
scenic/projects/unloc/model.py:306
↓ 1 callersMethodencode_text
(self, text: jnp.ndarray, normalize: bool = True, *,
scenic/projects/owl_vit/clip/layers.py:528
↓ 1 callersMethodencode_to_indices
(self, inputs: jax.Array)
scenic/projects/gerald/utils.py:71
↓ 1 callersMethodencode_video
Encodes video. We use a separate encoder to encode each modality and the output is obtained by concatenating encoded tokens in the channel di
scenic/projects/unloc/model.py:254
↓ 1 callersFunctioneval_and_log_summary
Eval the model and write the summary.
scenic/projects/verbs_in_action/trainer.py:275
↓ 1 callersFunctioneval_and_log_summary
Evaluate the model and write the summary.
scenic/projects/avatar/generation_trainer.py:610
↓ 1 callersMethodeval_caption_switch
Evaluate caption switch.
scenic/projects/densevoc/densevoc_evaluator.py:251
↓ 1 callersMethodeval_sequence
Calculates the HOTA metrics for one sequence. Args: data: dict with keys: 'num_tracker_dets': int 'num_gt_dets': int
scenic/projects/densevoc/chota.py:126
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int, valid_iter: Iterator[Batch], nu
scenic/train_lib/transfer/transfer_trainer.py:401
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int, valid_iter: Iterator[Batch], nu
scenic/projects/baselines/universal_transformer/trainer.py:509
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int, valid_iter: Iterator[Batch], nu
scenic/projects/baselines/pondernet/pondernet_trainer.py:517
↓ 1 callersFunctionevaluate
Runs evaluation code.
scenic/projects/baselines/detr/trainer.py:352
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int, valid_iter: Iterator[Batch], nu
scenic/projects/baselines/plainvit/trainer.py:444
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int)
scenic/projects/pointcloud/segmentation_trainer.py:363
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int, valid_iter: Iterator[Batch], nu
scenic/projects/objectvivit/trainer.py:538
↓ 1 callersFunctionevaluate
Runs evaluation code.
scenic/projects/layout_denoise/trainer.py:419
↓ 1 callersFunctionevaluate
Evaluate an UnLoc model. This function runs a pretrained model on the test split of the specified dataset, and then evaluates the model. Args:
scenic/projects/unloc/evaluator.py:47
↓ 1 callersFunctionevaluate
Runs evaluation code.
scenic/projects/owl_vit/trainer.py:329
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int, valid_iter: Iterator[Batch], nu
scenic/projects/tasseo/transfer_trainer.py:385
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int, valid_iter: Iterator[Batch], nu
scenic/projects/av_mae/transfer_trainer.py:463
↓ 1 callersFunctionevaluate
Perform validation and log results, possibly including mAP.
scenic/projects/av_mae/transfer_trainer_multimodal.py:520
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int, valid_iter: Iterator[Batch], nu
scenic/projects/av_mae/trainer_multimodal.py:545
↓ 1 callersFunctionevaluate
(train_state: train_utils.TrainState, step: int, valid_iter: Iterator[Batch], nu
scenic/projects/av_mae/trainer.py:471
↓ 1 callersFunctionevaluate
( train_state: train_utils.TrainState, step: int, dataset: str )
scenic/projects/polyvit/trainer.py:584
← previousnext →1,001–1,100 of 4,921, ranked by callers