Enhance Device Compatibility: Fixes for Baidu's OCR ModelEnhance Device Compatibility: Fixes for Baidu's OCR Model
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Three open-source PRs (GitHub #29, #34, and a HuggingFace Hub PR) fixing device compatibility bugs in Baidu's large-scale OCR model. The core issues were hardcoded .cuda() calls that crashed the model on Apple Silicon (MPS) and CPU environments, plus a masked_scatter_ broadcast shape error that broke inference on non-CUDA hardware. The fixes make the model fully device-agnostic it now runs on whatever hardware is available without code changes
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started