EdisonScientific/OCSRGlyph
3
OCSRGlyph
Installing the code
The commands below use the `glyph` package. Install it from the code repository:
git clone https://github.com/EdisonScientific/glyph
cd glyph
uv venv && uv sync --extra ocsr # or: pip install -e ".[ocsr]"See the repo's README.md (quickstart + inference) and REPRODUCE.md (frozen eval contract).
Optical Chemical Structure Recognition for ordinary molecules: image -> SMILES. Swin-B/384 image encoder + a 6-layer transformer decoder (single inference model; ImageNet-pretrained backbone, no OCSR-specific pretraining).
Results - USPTO-OCSR-5719 (greedy decode, light postprocess)
Usage
glyph ocsr eval --checkpoint EdisonScientific/OCSRGlyph --benchmark <uspto_ocsr_5719_complete.csv>See the code repository's REPRODUCE.md for the full contract. Files: model.pth, ocsrglyph-recipe.json.
License: Apache-2.0
Citation: To be added upon publication.
