Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/UCSC-VLAA/OpenVision
/ functions
Functions
716 in github.com/UCSC-VLAA/OpenVision
⨍
Functions
716
◇
Types & classes
90
↳
Endpoints
1
Function
translate_x
Equivalent of PIL Translate in X dimension.
src/transforms/autoaugment.py:262
Function
translate_y
Equivalent of PIL Translate in Y dimension.
src/transforms/autoaugment.py:268
Function
tree_apply
Apply a pytree of functions to the pytree.
src/helpers/utils.py:470
Function
tree_compare
Returns `(tree1_only, tree2_only, dtype_shape_mismatch)`.
src/helpers/utils.py:670
Function
tree_map_with_regex
Apply jax-style tree_map based on regex rules. Args: f: a function that is being applied to every variable. tree: jax tree of arrays. r
src/helpers/utils.py:564
Function
tree_replace
Renames/removes (nested) keys. Example usage: tree = {'a': {'b': 2, 'c': 3}, 'c': 4} replacements = { 'a/b': 'a/b/x', # replaces
src/helpers/utils.py:620
Method
truncate_img_tokens
(elem)
src/models/text_decoder.py:513
Function
unbatched_gather
(x, ids_keep)
src/losses/common.py:34
Function
unpad
(x)
src/helpers/utils.py:111
Function
update_sharding
(tree_leaf1, tree_leaf2)
src/main_clip.py:278
Function
weighted_softmax_xent
Compute weighted cross entropy. Args: logits: [batch, length, num_classes] float array. labels: categorical targets [batch, length] int array
src/losses/common.py:281
Method
wrap_flash_attention
(query, key, value, decoder_segment_ids, head_dim)
src/models/text_transformer.py:348
Method
wrap_flash_attention
(q, k, v)
src/models/text_decoder_v2.py:192
Method
wrap_flash_attention
(query, key, value, decoder_segment_ids)
src/models/common.py:507
Method
wrap_flash_attention
(query, key, value, decoder_segment_ids)
src/models/text_decoder.py:213
Function
zeros_like_spec
(spec)
src/datasets/input_pipeline.py:171
← previous
701–716 of 716, ranked by callers