Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PABannier/sam3.cpp
/ functions
Functions
893 in github.com/PABannier/sam3.cpp
⨍
Functions
893
◇
Types & classes
184
↓ 1 callers
Function
sam3_preprocess_image
Preprocess an image: resize to img_size × img_size, convert to float, normalize. Returns a float tensor in [C, H, W] layout (channel-first), range nor
sam3.cpp:3490
↓ 1 callers
Function
sam3_pretokenize
Splits text into word tokens following the CLIP pattern: <|startoftext|> | <|endoftext|> | 's|'t|'re|'ve|'m|'ll|'d | [\p{L}]+ | [\p{N}] | [^\s\p{L}\p{
sam3.cpp:1325
↓ 1 callers
Function
sam3_print_hparams
sam3.cpp:1526
↓ 1 callers
Function
sam3_profile_edgetam_encode
sam3.cpp:5096
↓ 1 callers
Function
sam3_profile_print_op_summary
Print a per-op-type summary of a built graph.
sam3.cpp:5003
↓ 1 callers
Function
sam3_quantize_model
examples/quantize.cpp:20
↓ 1 callers
Function
sam3_register_tensors
Register all tensor names in the model struct so we can look them up by name when loading from the binary file. This creates ggml tensors with no_allo
sam3.cpp:2465
↓ 1 callers
Function
sam3_roi_align_single
CPU-side ROI Align matching torchvision.ops.roi_align behavior. Features in ggml [C, W, H] layout. Box in XYXY format scaled to feature grid coords. U
sam3.cpp:7607
↓ 1 callers
Function
sam3_select_memory_frames
Select memory frames for propagation (most recent + evenly spaced).
sam3.cpp:9427
↓ 1 callers
Function
sam3_sine_encode_box
Sinusoidal positional encoding for box coordinates. Matches Python PositionEmbeddingSine.encode_boxes(cx, cy, w, h). Output: [258] = [pos_y(128), pos_
sam3.cpp:7578
↓ 1 callers
Function
sam3_state_set_orig_dims
sam3.cpp:3412
↓ 1 callers
Function
sam3_test_dump_geom_enc
sam3.cpp:13744
↓ 1 callers
Function
sam3_test_dump_phase5
sam3.cpp:12769
↓ 1 callers
Function
sam3_test_dump_phase5_from_ref_inputs
sam3.cpp:13043
↓ 1 callers
Function
sam3_test_dump_phase7_from_ref_inputs
sam3.cpp:14054
↓ 1 callers
Function
sam3_test_dump_phase7_mem_slot_current
sam3.cpp:13884
↓ 1 callers
Function
sam3_test_fenc_only
sam3.cpp:13334
↓ 1 callers
Function
sam3_test_run_vit_prefix_stage
sam3.cpp:6404
↓ 1 callers
Function
sam3_text_block_forward
Single text encoder block forward pass. Input x: [E, L] where E=text_width=1024, L=seq_len (typically 32). causal_mask: [L, L] F16 additive mask for g
sam3.cpp:3957
↓ 1 callers
Function
sam3_tracker_reset
sam3.cpp:12092
↓ 1 callers
Function
sam3_twoway_block_forward
TwoWayAttentionBlock forward
sam3.cpp:10442
↓ 1 callers
Function
sam3_utf8_chars
Split a UTF-8 string into individual unicode characters.
sam3.cpp:1248
↓ 1 callers
Function
sam3_vit_block_forward
Single ViT block forward: pre-norm → attn (window or global, with RoPE) → residual → pre-norm → MLP → residual x: [E, W, H, B] in ggml layout (followi
sam3.cpp:3714
↓ 1 callers
Function
save_ggml_bhwc
(path: str, x_bhwc: torch.Tensor)
tests/dump_phase6_reference.py:66
↓ 1 callers
Function
save_ggml_bhwc
(path: str, x_bhwc: torch.Tensor)
tests/dump_phase7_reference.py:94
↓ 1 callers
Function
save_ggml_masks
(path: str, masks_bchw: torch.Tensor)
tests/dump_phase6_reference.py:85
↓ 1 callers
Function
save_ggml_masks
(path: str, masks_bchw: torch.Tensor)
tests/dump_phase7_reference.py:106
↓ 1 callers
Function
save_i32_tensor
(path: str, values: List[int])
tests/dump_phase4_reference.py:33
↓ 1 callers
Function
save_ref_f32
tests/test_metal_python_ref_compare.cpp:264
↓ 1 callers
Function
save_tensor
(path: str, t: torch.Tensor)
tests/dump_phase4_reference.py:24
↓ 1 callers
Function
save_tensor_i32
(path, t)
tests/dump_phase5_reference.py:33
↓ 1 callers
Function
sine_encode_boxes
Encode box (cx, cy, w, h) with sinusoidal PE. Returns [N, 258].
tests/dump_geom_encoder_reference.py:107
↓ 1 callers
Function
sine_encode_xy
Encode (x, y) with sinusoidal PE. x, y: [N] normalized to [0,1].
tests/dump_geom_encoder_reference.py:91
↓ 1 callers
Function
sinusoidal_pe_2d
Match PositionEmbeddingSine.forward() exactly.
tests/dump_phase3_reference.py:123
↓ 1 callers
Function
stbi__bitreverse16
stb/stb_image.h:4107
↓ 1 callers
Function
stbi__bmp_info
stb/stb_image.h:7335
↓ 1 callers
Function
stbi__bmp_load
stb/stb_image.h:5531
↓ 1 callers
Function
stbi__bmp_test
stb/stb_image.h:5361
↓ 1 callers
Function
stbi__bmp_test_raw
stb/stb_image.h:5346
↓ 1 callers
Function
stbi__build_fast_ac
build a table that decodes both magnitude and value of small ACs in one go.
stb/stb_image.h:2050
↓ 1 callers
Function
stbi__compute_huffman_codes
stb/stb_image.h:4359
↓ 1 callers
Function
stbi__compute_transparency
stb/stb_image.h:4906
↓ 1 callers
Function
stbi__compute_transparency16
stb/stb_image.h:4931
↓ 1 callers
Function
stbi__convert_16_to_8
stb/stb_image.h:1190
↓ 1 callers
Function
stbi__convert_8_to_16
stb/stb_image.h:1206
↓ 1 callers
Function
stbi__cpuid3
stb/stb_image.h:732
↓ 1 callers
Function
stbi__create_png_image
stb/stb_image.h:4861
↓ 1 callers
Function
stbi__de_iphone
stb/stb_image.h:5033
↓ 1 callers
Function
stbi__decode_jpeg_image
decode image to YCbCr format
stb/stb_image.h:3412
↓ 1 callers
Function
stbi__do_png
stb/stb_image.h:5263
↓ 1 callers
Function
stbi__expand_png_palette
stb/stb_image.h:4956
↓ 1 callers
Function
stbi__float_postprocess
stb/stb_image.h:1314
↓ 1 callers
Function
stbi__get_chunk_header
stb/stb_image.h:4613
↓ 1 callers
Function
stbi__gif_info
stb/stb_image.h:7077
↓ 1 callers
Function
stbi__gif_info_raw
stb/stb_image.h:6639
↓ 1 callers
Function
stbi__gif_load
stb/stb_image.h:7048
↓ 1 callers
Function
stbi__gif_test_raw
stb/stb_image.h:6580
↓ 1 callers
Function
stbi__hdr_info
stb/stb_image.h:7289
↓ 1 callers
Function
stbi__hdr_to_ldr
stb/stb_image.h:1884
↓ 1 callers
Function
stbi__jpeg_decode_block_prog_ac
@OPTIMIZE: store non-zigzagged during the decode passes, and only de-zigzag when dequantizing
stb/stb_image.h:2295
↓ 1 callers
Function
stbi__jpeg_dequantize
stb/stb_image.h:3073
↓ 1 callers
Function
stbi__jpeg_finish
stb/stb_image.h:3080
↓ 1 callers
Function
stbi__jpeg_info
stb/stb_image.h:4068
↓ 1 callers
Function
stbi__jpeg_info_raw
stb/stb_image.h:4056
↓ 1 callers
Function
stbi__jpeg_load
stb/stb_image.h:4028
↓ 1 callers
Function
stbi__jpeg_test
stb/stb_image.h:4042
↓ 1 callers
Function
stbi__ldr_to_hdr
stb/stb_image.h:1858
↓ 1 callers
Function
stbi__load_gif_main
stb/stb_image.h:6963
↓ 1 callers
Function
stbi__out_gif_code
stb/stb_image.h:6654
↓ 1 callers
Function
stbi__paeth
stb/stb_image.h:4657
↓ 1 callers
Function
stbi__parse_entropy_coded_data
stb/stb_image.h:2949
↓ 1 callers
Function
stbi__parse_huffman_block
stb/stb_image.h:4309
↓ 1 callers
Function
stbi__parse_uncompressed_block
stb/stb_image.h:4409
↓ 1 callers
Function
stbi__parse_zlib
stb/stb_image.h:4481
↓ 1 callers
Function
stbi__parse_zlib_header
stb/stb_image.h:4438
↓ 1 callers
Function
stbi__pic_info
stb/stb_image.h:7423
↓ 1 callers
Function
stbi__pic_load
stb/stb_image.h:6500
↓ 1 callers
Function
stbi__pic_load_core
stb/stb_image.h:6390
↓ 1 callers
Function
stbi__pic_test
stb/stb_image.h:6541
↓ 1 callers
Function
stbi__pic_test_core
stb/stb_image.h:6346
↓ 1 callers
Function
stbi__png_info
stb/stb_image.h:5322
↓ 1 callers
Function
stbi__png_is16
stb/stb_image.h:5329
↓ 1 callers
Function
stbi__png_load
stb/stb_image.h:5295
↓ 1 callers
Function
stbi__png_test
stb/stb_image.h:5302
↓ 1 callers
Function
stbi__pnm_is16
stb/stb_image.h:7624
↓ 1 callers
Function
stbi__pnm_isdigit
stb/stb_image.h:7562
↓ 1 callers
Function
stbi__pnm_isspace
stb/stb_image.h:7543
↓ 1 callers
Function
stbi__pnm_load
stb/stb_image.h:7506
↓ 1 callers
Function
stbi__pnm_test
stb/stb_image.h:7494
↓ 1 callers
Function
stbi__process_frame_header
stb/stb_image.h:3264
↓ 1 callers
Function
stbi__process_gif_raster
stb/stb_image.h:6691
↓ 1 callers
Function
stbi__process_scan_header
after we see SOS
stb/stb_image.h:3203
↓ 1 callers
Function
stbi__psd_decode_rle
stb/stb_image.h:6088
↓ 1 callers
Function
stbi__psd_info
stb/stb_image.h:7359
↓ 1 callers
Function
stbi__psd_is16
stb/stb_image.h:7394
↓ 1 callers
Function
stbi__psd_load
stb/stb_image.h:6126
↓ 1 callers
Function
stbi__psd_test
stb/stb_image.h:6081
↓ 1 callers
Function
stbi__skip_jpeg_junk_at_end
stb/stb_image.h:3389
↓ 1 callers
Function
stbi__sse2_available
stb/stb_image.h:754
↓ 1 callers
Function
stbi__tga_info
stb/stb_image.h:5755
← previous
next →
601–700 of 893, ranked by callers