Closed nogifeet closed 10 months ago
Hey! THanks for opening an issue, but without an isolated reproducible snippet + a traceback that shows this is an issue from transfromers I am not sure how we can help! 🤗
@nogifeet hi, did you have solve this problem? i meet similar problem when run trocr_onnx with onnxruntime(c++, cpu), can you share your solution for reference? Thanks.
@linglongxian
https://github.com/huggingface/transformers/issues/28550
System Info
Hello, we are using the TR-OCR model exported to Onnx. We notice a problem with the large checkpoints for both printed and handwritten; when we run inference using the onnxruntime java library.
Dataset: IAM handwritten (Lines)
Different behaviours are observed on CPU and GPU:
CPU: (we might get an error like below)
GPU: We notice that the end token is not generated and the decoder keeps repeating the tokens after a point.
This is the main problem, usually, the Gather_346 and Gather_320 operators fail and throw data bounds error.
We have also noticed different behaviour when we turn caching on/off. Note we don't face this problem on the base or small checkpoints but only on the "large" checkpoints. Looking to understand whether this is an onnxruntime issue or hf, please let me know.
A similar issue was raised in the onnxruntime page: https://github.com/microsoft/onnxruntime/issues/2080
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
Current Output: The edges of the transoms should be bevelled to be edges to the edges of the Expected Output: The edges of the transoms should be bevelled to