Python -O won’t magically make every script faster, but in the right workloads it’s a free win—here’s how to test it safely.
To open a debugger 'post mortem', after an error hits the top level: When running interactively: call patdb.debug() after the error has returned you to the REPL. (Or ...
[INFO] glmocr.pipeline.pipeline: Starting Pipeline... [DEBUG] glmocr.layout.layout_detector: Initializing PP-DocLayoutV3... '[Errno 101] Network is unreachable ...