SYMBOL INDEX (116 symbols across 9 files) FILE: DeepSeek-OCR-master/DeepSeek-OCR-vllm/deepencoder/build_linear.py class MlpProjector (line 7) | class MlpProjector(nn.Module): method __init__ (line 9) | def __init__(self, cfg): method forward (line 97) | def forward(self, x): method get_flops_per_sample (line 159) | def get_flops_per_sample(cfg): FILE: DeepSeek-OCR-master/DeepSeek-OCR-vllm/deepencoder/clip_sdpa.py class LayerNormfp32 (line 54) | class LayerNormfp32(torch.nn.LayerNorm): method forward (line 57) | def forward(self, x: torch.Tensor): function get_abs_pos (line 63) | def get_abs_pos(abs_pos, tgt_size): function quick_gelu (line 102) | def quick_gelu(x): class CLIPVisionEmbeddings (line 107) | class CLIPVisionEmbeddings(nn.Module): method __init__ (line 108) | def __init__(self, hidden_size=1024, image_size=224, patch_size=14, nu... method forward (line 131) | def forward(self, pixel_values, patch_embeds): class NoTPFeedForward (line 159) | class NoTPFeedForward(nn.Module): method __init__ (line 160) | def __init__( method forward (line 171) | def forward(self, x): class NoTPAttention (line 227) | class NoTPAttention(torch.nn.Module): method __init__ (line 228) | def __init__(self, cfg): method forward (line 243) | def forward( class NoTPTransformerBlock (line 286) | class NoTPTransformerBlock(nn.Module): method __init__ (line 287) | def __init__(self, cfg, layer_id: int, multiple_of=256): method forward (line 305) | def forward(self, x: torch.Tensor): class NoTPTransformer (line 312) | class NoTPTransformer(nn.Module): method __init__ (line 313) | def __init__(self, cfg): method forward (line 329) | def forward( class VitModel (line 359) | class VitModel(nn.Module): method __init__ (line 360) | def __init__( method set_input_tensor (line 403) | def set_input_tensor(self, input_tensor): method __str__ (line 408) | def __str__(self) -> str: method forward (line 411) | def forward( function build_clip_l (line 447) | def build_clip_l(): FILE: DeepSeek-OCR-master/DeepSeek-OCR-vllm/deepencoder/sam_vary_sdpa.py function get_abs_pos (line 19) | def get_abs_pos(abs_pos, tgt_size): class MLPBlock (line 43) | class MLPBlock(nn.Module): method __init__ (line 44) | def __init__( method forward (line 55) | def forward(self, x: torch.Tensor) -> torch.Tensor: class LayerNorm2d (line 61) | class LayerNorm2d(nn.Module): method __init__ (line 62) | def __init__(self, num_channels: int, eps: float = 1e-6) -> None: method forward (line 68) | def forward(self, x: torch.Tensor) -> torch.Tensor: class ImageEncoderViT (line 77) | class ImageEncoderViT(nn.Module): method __init__ (line 78) | def __init__( method forward (line 169) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Block (line 186) | class Block(nn.Module): method __init__ (line 189) | def __init__( method forward (line 233) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Attention (line 252) | class Attention(nn.Module): method __init__ (line 255) | def __init__( method forward (line 291) | def forward(self, x: torch.Tensor) -> torch.Tensor: function window_partition (line 326) | def window_partition(x: torch.Tensor, window_size: int) -> Tuple[torch.T... function window_unpartition (line 350) | def window_unpartition( function get_rel_pos (line 375) | def get_rel_pos(q_size: int, k_size: int, rel_pos: torch.Tensor) -> torc... function add_decomposed_rel_pos (line 410) | def add_decomposed_rel_pos( class PatchEmbed (line 447) | class PatchEmbed(nn.Module): method __init__ (line 452) | def __init__( method forward (line 474) | def forward(self, x: torch.Tensor) -> torch.Tensor: function build_sam_vit_b (line 481) | def build_sam_vit_b(checkpoint=None): function _build_sam (line 491) | def _build_sam( FILE: DeepSeek-OCR-master/DeepSeek-OCR-vllm/deepseek_ocr.py class DeepseekOCRProcessingInfo (line 50) | class DeepseekOCRProcessingInfo(BaseProcessingInfo): method get_hf_config (line 52) | def get_hf_config(self): method get_hf_processor (line 55) | def get_hf_processor(self, **kwargs: object): method get_supported_mm_limits (line 58) | def get_supported_mm_limits(self) -> Mapping[str, Optional[int]]: method get_num_image_tokens (line 61) | def get_num_image_tokens(self, method get_image_size_with_most_features (line 108) | def get_image_size_with_most_features(self) -> ImageSize: class DeepseekOCRDummyInputsBuilder (line 115) | class DeepseekOCRDummyInputsBuilder( method get_dummy_text (line 118) | def get_dummy_text(self, mm_counts: Mapping[str, int]) -> str: method get_dummy_mm_data (line 126) | def get_dummy_mm_data( class DeepseekOCRMultiModalProcessor (line 150) | class DeepseekOCRMultiModalProcessor( method _call_hf_processor (line 154) | def _call_hf_processor( method _get_mm_fields_config (line 178) | def _get_mm_fields_config( method _get_prompt_updates (line 190) | def _get_prompt_updates( method _cached_apply_hf_processor (line 231) | def _cached_apply_hf_processor( class DeepseekOCRForCausalLM (line 261) | class DeepseekOCRForCausalLM(nn.Module, SupportsMultiModal, SupportsPP): method __init__ (line 267) | def __init__(self, *, vllm_config: VllmConfig, prefix: str = ""): method _parse_and_validate_image_input (line 333) | def _parse_and_validate_image_input( method _pixel_values_to_embedding (line 364) | def _pixel_values_to_embedding( method _process_image_input (line 469) | def _process_image_input( method get_language_model (line 495) | def get_language_model(self) -> torch.nn.Module: method get_multimodal_embeddings (line 498) | def get_multimodal_embeddings( method get_input_embeddings (line 508) | def get_input_embeddings( method forward (line 530) | def forward(self, method compute_logits (line 555) | def compute_logits( method load_weights (line 564) | def load_weights(self, weights: Iterable[Tuple[str, torch.Tensor]]) ->... FILE: DeepSeek-OCR-master/DeepSeek-OCR-vllm/process/image_process.py function find_closest_aspect_ratio (line 11) | def find_closest_aspect_ratio(aspect_ratio, target_ratios, width, height... function count_tiles (line 28) | def count_tiles(orig_width, orig_height, min_num=MIN_CROPS, max_num=MAX_... function dynamic_preprocess (line 45) | def dynamic_preprocess(image, min_num=MIN_CROPS, max_num=MAX_CROPS, imag... class ImageTransform (line 89) | class ImageTransform: method __init__ (line 91) | def __init__(self, method __call__ (line 106) | def __call__(self, pil_img: Image.Image): class DeepseekOCRProcessor (line 111) | class DeepseekOCRProcessor(ProcessorMixin): method __init__ (line 115) | def __init__( method bos_id (line 217) | def bos_id(self): method eos_id (line 221) | def eos_id(self): method pad_id (line 225) | def pad_id(self): method encode (line 228) | def encode(self, text: str, bos: bool = True, eos: bool = False): method decode (line 238) | def decode(self, t: List[int], **kwargs) -> str: method process_one (line 241) | def process_one( method __call__ (line 298) | def __call__( method tokenize_with_images (line 330) | def tokenize_with_images( FILE: DeepSeek-OCR-master/DeepSeek-OCR-vllm/process/ngram_norepeat.py class NoRepeatNGramLogitsProcessor (line 7) | class NoRepeatNGramLogitsProcessor(LogitsProcessor): method __init__ (line 9) | def __init__(self, ngram_size: int, window_size: int = 100, whitelist_... method __call__ (line 18) | def __call__(self, input_ids: List[int], scores: torch.FloatTensor) ->... FILE: DeepSeek-OCR-master/DeepSeek-OCR-vllm/run_dpsk_ocr_eval_batch.py class Colors (line 46) | class Colors: function clean_formula (line 53) | def clean_formula(text): function re_match (line 70) | def re_match(text): function process_single_image (line 81) | def process_single_image(image): FILE: DeepSeek-OCR-master/DeepSeek-OCR-vllm/run_dpsk_ocr_image.py function load_image (line 28) | def load_image(image_path): function re_match (line 45) | def re_match(text): function extract_coordinates_and_label (line 60) | def extract_coordinates_and_label(ref_text, image_width, image_height): function draw_bounding_boxes (line 73) | def draw_bounding_boxes(image, refs): function process_image_with_refs (line 140) | def process_image_with_refs(image, ref_texts): function stream_generate (line 147) | async def stream_generate(image=None, prompt=''): FILE: DeepSeek-OCR-master/DeepSeek-OCR-vllm/run_dpsk_ocr_pdf.py class Colors (line 57) | class Colors: function pdf_to_images_high_quality (line 64) | def pdf_to_images_high_quality(pdf_path, dpi=144, image_format="PNG"): function pil_to_pdf_img2pdf (line 97) | def pil_to_pdf_img2pdf(pil_images, output_path): function re_match (line 123) | def re_match(text): function extract_coordinates_and_label (line 138) | def extract_coordinates_and_label(ref_text, image_width, image_height): function draw_bounding_boxes (line 151) | def draw_bounding_boxes(image, refs, jdx): function process_image_with_refs (line 218) | def process_image_with_refs(image, ref_texts, jdx): function process_single_image (line 223) | def process_single_image(image):