executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
ocr-inferenceGuides pix2tex CLI and Python OCR inference from equation images to LaTeX, including images, checkpoints, CPU/CUDA choices, and prediction troubleshooting.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user wants LaTeX code from an equation image, wants
to call pix2tex or LatexOCR, or needs to debug inference quality, model
checkpoints, image preprocessing, or CLI flags.
pix2tex --no-cuda path/to/equation.png
Use --no-cuda for CPU-only environments or deterministic smoke tests. Omit it
only after verifying CUDA PyTorch in the target environment. Add --no-resize
when you do not want the auxiliary image-resizer model to adjust image width.
Use -t/--temperature to control sampling; lower values make repeated
predictions less variable.
from PIL import Image
from pix2tex.cli import LatexOCR
model = LatexOCR() # may download checkpoints if missing
latex = model(Image.open("equation.png"))
print(latex)
Instantiate LatexOCR() only when checkpoint downloads and compute are allowed.
For CPU-only use, pass an argparse-like object or CLI route with no_cuda=True.