SYMBOL INDEX (202 symbols across 41 files) FILE: pix2tex/__main__.py function main (line 2) | def main(): FILE: pix2tex/api/app.py function read_imagefile (line 13) | def read_imagefile(file) -> Image.Image: function load_model (line 19) | async def load_model(): function root (line 26) | def root(): function predict (line 37) | async def predict(file: UploadFile = File(...)) -> str: function predict_from_bytes (line 52) | async def predict_from_bytes(file: bytes = File(...)) -> str: # , size:... FILE: pix2tex/api/run.py function start_api (line 6) | def start_api(path='.'): function start_frontend (line 10) | def start_frontend(path='.'): FILE: pix2tex/api/streamlit.py function encode_image (line 9) | def encode_image(file): FILE: pix2tex/cli.py function minmax_size (line 32) | def minmax_size(img: Image, max_dimensions: Tuple[int, int] = None, min_... class LatexOCR (line 58) | class LatexOCR: method __init__ (line 65) | def __init__(self, arguments=None): method __call__ (line 95) | def __call__(self, img=None, resize=True) -> str: function output_prediction (line 143) | def output_prediction(pred, args): function predict (line 181) | def predict(model, file, arguments): function check_file_path (line 196) | def check_file_path(paths:List[Path], wdir:Optional[Path]=None)->List[str]: function main (line 211) | def main(arguments): FILE: pix2tex/dataset/arxiv.py function get_all_arxiv_ids (line 27) | def get_all_arxiv_ids(text): function download (line 35) | def download(url, dir_path='./'): function read_tex_files (line 50) | def read_tex_files(file_path:str, demacro:bool=False)->str: function download_paper (line 88) | def download_paper(arxiv_id, dir_path='./'): function read_paper (line 93) | def read_paper(targz_path, delete=False, demacro=False): function parse_arxiv (line 102) | def parse_arxiv(id, save=None, demacro=True): FILE: pix2tex/dataset/dataset.py class Im2LatexDataset (line 21) | class Im2LatexDataset: method __init__ (line 37) | def __init__(self, equations=None, images=None, tokenizer=None, shuffl... method __len__ (line 83) | def __len__(self): method __iter__ (line 86) | def __iter__(self): method __next__ (line 107) | def __next__(self): method prepare_data (line 113) | def prepare_data(self, batch): method _get_size (line 153) | def _get_size(self): method load (line 159) | def load(self, filename, args=[]): method combine (line 174) | def combine(self, x): method save (line 189) | def save(self, filename): method update (line 198) | def update(self, **kwargs): function generate_tokenizer (line 222) | def generate_tokenizer(equations, output, vocab_size): FILE: pix2tex/dataset/demacro-test.py function norm (line 6) | def norm(s): function f (line 12) | def f(s): class TestDemacroCases (line 16) | class TestDemacroCases(unittest.TestCase): method test_noargs (line 17) | def test_noargs(self): method test_optional_arg (line 25) | def test_optional_arg(self): method test_optional_arg_and_positional_args (line 37) | def test_optional_arg_and_positional_args(self): method test_alt_definition1 (line 45) | def test_alt_definition1(self): method test_arg_with_bs_and_cb (line 53) | def test_arg_with_bs_and_cb(self): method test_multiline_definition (line 66) | def test_multiline_definition(self): method test_multiline_definition_alt1 (line 80) | def test_multiline_definition_alt1(self): method test_multiline_definition_alt2 (line 89) | def test_multiline_definition_alt2(self): method test_multiline_definition_alt3 (line 98) | def test_multiline_definition_alt3(self): method test_multiline_definition_alt4 (line 108) | def test_multiline_definition_alt4(self): method test_nested_definition (line 119) | def test_nested_definition(self): method test_def (line 130) | def test_def(self): method test_multi_def_lines_alt0 (line 141) | def test_multi_def_lines_alt0(self): method test_multi_def_lines_alt1 (line 153) | def test_multi_def_lines_alt1(self): method test_multi_def_lines_alt2 (line 165) | def test_multi_def_lines_alt2(self): method test_multi_def_lines_alt3 (line 180) | def test_multi_def_lines_alt3(self): method test_let_alt0 (line 199) | def test_let_alt0(self): method test_let_alt1 (line 205) | def test_let_alt1(self): method test_let_alt2 (line 211) | def test_let_alt2(self): method test_let_alt3 (line 217) | def test_let_alt3(self): FILE: pix2tex/dataset/demacro.py class DemacroError (line 11) | class DemacroError(Exception): function main (line 15) | def main(): function parse_command_line (line 25) | def parse_command_line(): function read (line 32) | def read(path): function bracket_replace (line 37) | def bracket_replace(string: str) -> str: function undo_bracket_replace (line 55) | def undo_bracket_replace(string): function sweep (line 59) | def sweep(t, cmds): function unfold (line 81) | def unfold(t): function pydemacro (line 123) | def pydemacro(t: str) -> str: function replace (line 136) | def replace(match): function convert (line 161) | def convert(data): function write (line 170) | def write(path, data): FILE: pix2tex/dataset/extract_latex.py function check_brackets (line 20) | def check_brackets(s): function remove_labels (line 48) | def remove_labels(string): function clean_matches (line 54) | def clean_matches(matches, min_chars=MIN_CHARS): function find_math (line 77) | def find_math(s: str, wiki=False) -> List[str]: FILE: pix2tex/dataset/latex2png.py class Latex (line 15) | class Latex: method __init__ (line 27) | def __init__(self, math, dpi=250, font='Latin Modern Math'): method write (line 35) | def write(self, return_bytes=False): method convert_file (line 57) | def convert_file(self, infile, workdir, return_bytes=False): function tex2png (line 140) | def tex2png(eq, **kwargs): function tex2pil (line 146) | def tex2pil(tex, return_error_index=False, **kwargs): function extract (line 152) | def extract(text, expression=None): FILE: pix2tex/dataset/preprocessing/generate_latex_vocab.py function process_args (line 3) | def process_args(args): function main (line 29) | def main(args): FILE: pix2tex/dataset/preprocessing/preprocess_formulas.py function process_args (line 12) | def process_args(args): function main (line 37) | def main(args): FILE: pix2tex/dataset/preprocessing/third_party/katex/src/Lexer.js function Lexer (line 19) | function Lexer(input) { function Token (line 24) | function Token(text, data, position) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/Options.js function Options (line 17) | function Options(data) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/ParseError.js function ParseError (line 6) | function ParseError(message, lexer, position) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/Parser.js function Parser (line 50) | function Parser(input, settings) { function ParseFuncOrArgument (line 63) | function ParseFuncOrArgument(result, isFunction) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/Settings.js function get (line 9) | function get(option, defaultValue) { function Settings (line 20) | function Settings(options) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/Style.js function Style (line 15) | function Style(id, size, multiplier, cramped) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/domTree.js function span (line 33) | function span(classes, children, height, depth, maxFontSize, style) { function documentFragment (line 136) | function documentFragment(children, height, depth, maxFontSize) { function symbolNode (line 177) | function symbolNode(value, height, depth, italic, skew, classes, style) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/environments.js function parseArray (line 14) | function parseArray(parser, result) { function defineEnvironment (line 80) | function defineEnvironment(names, props, handler) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/functions.js function defineFunction (line 80) | function defineFunction(names, props, handler) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/mathMLTree.js function MathNode (line 18) | function MathNode(type, children) { function TextNode (line 81) | function TextNode(text) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/parseData.js function ParseNode (line 4) | function ParseNode(type, value, mode) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/symbols.js function defineSymbol (line 24) | function defineSymbol(mode, font, group, replace, name) { FILE: pix2tex/dataset/preprocessing/third_party/katex/src/utils.js function escaper (line 59) | function escaper(match) { function escape (line 69) | function escape(text) { function clearNode (line 94) | function clearNode(node) { FILE: pix2tex/dataset/preprocessing/third_party/match-at/lib/matchAt.js function getRelocatable (line 5) | function getRelocatable(re) { function matchAt (line 24) | function matchAt(re, str, pos) { FILE: pix2tex/dataset/render.py function get_installed_fonts (line 15) | def get_installed_fonts(tex_path: str): function render_dataset (line 31) | def render_dataset(dataset: np.ndarray, unrendered: np.ndarray, args) ->... FILE: pix2tex/dataset/scraping.py function recursive_search (line 23) | def recursive_search(parser: Callable, seeds: List[str], depth: int = 2... function parse_url (line 67) | def parse_url(url, encoding=None): function parse_wiki (line 76) | def parse_wiki(url): function parse_stack_exchange (line 82) | def parse_stack_exchange(url): function recursive_wiki (line 90) | def recursive_wiki(seeds, depth=4, skip=[], base_url=wiki_base): function recursive_stack_exchange (line 97) | def recursive_stack_exchange(seeds, depth=4, skip=[], base_url=math_stac... FILE: pix2tex/eval.py function detokenize (line 18) | def detokenize(tokens, tokenizer): function evaluate (line 31) | def evaluate(model: Model, dataset: Im2LatexDataset, args: Munch, num_ba... FILE: pix2tex/gui.py function to_sympy (line 27) | def to_sympy(latex): class WebView (line 33) | class WebView(QWebEngineView): method __init__ (line 34) | def __init__(self, app) -> None: method dragEnterEvent (line 39) | def dragEnterEvent(self, event): method dropEvent (line 45) | def dropEvent(self, event): class App (line 49) | class App(QMainWindow): method __init__ (line 52) | def __init__(self, args=None): method initUI (line 60) | def initUI(self): method toggleProcessing (line 153) | def toggleProcessing(self, value=None): method eventFilter (line 174) | def eventFilter(self, obj, event): method onClick (line 187) | def onClick(self): method interrupt (line 205) | def interrupt(self): method snip_using_gnome_screenshot (line 211) | def snip_using_gnome_screenshot(self): method snip_using_spectacle (line 222) | def snip_using_spectacle(self): method snip_using_grim (line 232) | def snip_using_grim(self): method returnFromMimeData (line 249) | def returnFromMimeData(self, urls): method returnSnip (line 258) | def returnSnip(self, img=None): method returnPrediction (line 293) | def returnPrediction(self, result): method onFormatChange (line 310) | def onFormatChange(self): method formatPrediction (line 317) | def formatPrediction(self, prediction, format_type=None): method onTextboxChange (line 346) | def onTextboxChange(self): method onFormatTextboxChange (line 354) | def onFormatTextboxChange(self): method displayPrediction (line 359) | def displayPrediction(self, prediction=None): class ModelThread (line 387) | class ModelThread(QThread): method __init__ (line 390) | def __init__(self, img, model): method run (line 395) | def run(self): class SnipWidget (line 407) | class SnipWidget(QMainWindow): method __init__ (line 410) | def __init__(self, parent): method update_geometry_based_on_cursor_position (line 431) | def update_geometry_based_on_cursor_position(self): method snip (line 444) | def snip(self): method paintEvent (line 451) | def paintEvent(self, event): method keyPressEvent (line 465) | def keyPressEvent(self, event): method mousePressEvent (line 472) | def mousePressEvent(self, event): method mouseMoveEvent (line 479) | def mouseMoveEvent(self, event): method mouseReleaseEvent (line 483) | def mouseReleaseEvent(self, event): function main (line 512) | def main(arguments): FILE: pix2tex/model/checkpoints/get_latest_checkpoint.py function get_latest_tag (line 9) | def get_latest_tag(): function download_as_bytes_with_progress (line 17) | def download_as_bytes_with_progress(url: str, name: str = None) -> bytes: function download_checkpoints (line 37) | def download_checkpoints(): FILE: pix2tex/models/hybrid.py class CustomVisionTransformer (line 10) | class CustomVisionTransformer(VisionTransformer): method __init__ (line 11) | def __init__(self, img_size=224, patch_size=16, *args, **kwargs): method forward_features (line 16) | def forward_features(self, x): function get_encoder (line 36) | def get_encoder(args): FILE: pix2tex/models/transformer.py class CustomARWrapper (line 7) | class CustomARWrapper(AutoregressiveWrapper): method __init__ (line 8) | def __init__(self, *args, **kwargs): method generate (line 12) | def generate(self, start_tokens, seq_len=256, eos_token=None, temperat... function get_decoder (line 55) | def get_decoder(args): FILE: pix2tex/models/utils.py class Model (line 9) | class Model(nn.Module): method __init__ (line 10) | def __init__(self, encoder, decoder, args): method data_parallel (line 16) | def data_parallel(self, x: torch.Tensor, device_ids, output_device=Non... method forward (line 29) | def forward(self, x: torch.Tensor, tgt_seq: torch.Tensor, **kwargs): method generate (line 35) | def generate(self, x: torch.Tensor, temperature: float = 0.25): function get_model (line 40) | def get_model(args): FILE: pix2tex/models/vit.py class ViTransformerWrapper (line 8) | class ViTransformerWrapper(nn.Module): method __init__ (line 9) | def __init__( method forward (line 41) | def forward(self, img, **kwargs): function get_encoder (line 62) | def get_encoder(args): FILE: pix2tex/resources/resources.py function qInitResources (line 9226) | def qInitResources(): function qCleanupResources (line 9229) | def qCleanupResources(): FILE: pix2tex/setup_desktop.py function _check_file (line 10) | def _check_file( function _make_desktop_file (line 20) | def _make_desktop_file( function setup_desktop (line 28) | def setup_desktop( FILE: pix2tex/train.py function train (line 18) | def train(args): FILE: pix2tex/train_resizer.py function prepare_data (line 21) | def prepare_data(dataloader: Im2LatexDataset) -> Tuple[torch.tensor, tor... function val (line 82) | def val(val: Im2LatexDataset, model: ResNetV2, num_samples=400, device='... function main (line 109) | def main(args): FILE: pix2tex/utils/utils.py class EmptyStepper (line 17) | class EmptyStepper: method __init__ (line 18) | def __init__(self, *args, **kwargs): method step (line 21) | def step(self, *args, **kwargs): function exists (line 27) | def exists(val): function default (line 31) | def default(val, d): function seed_everything (line 37) | def seed_everything(seed: int): function parse_args (line 52) | def parse_args(args, **kwargs) -> Munch: function get_device (line 66) | def get_device(args, no_cuda=False): function gpu_memory_check (line 77) | def gpu_memory_check(model, args): function token2str (line 94) | def token2str(tokens, tokenizer) -> list: function pad (line 101) | def pad(img: Image, divable: int = 32) -> Image: function post_process (line 138) | def post_process(s: str): function alternatives (line 163) | def alternatives(s): function get_optimizer (line 174) | def get_optimizer(optimizer): function get_scheduler (line 178) | def get_scheduler(scheduler): function num_model_params (line 184) | def num_model_params(model): function in_model_path (line 189) | def in_model_path():