Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the issue of repeatedly downloading pretrained model (#12142)
* fix the issue of repeatedly downloading pretrained model * add log info
- Loading branch information
f5defab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个修改似乎导致了,用url传输图片,ppocr只会不断检测最开始的那张图片。因为tmp.jpg不会被覆盖。
PaddleOCR /paddleocr.py line571-576:
download_with_progressbar(img, "tmp.jpg")
f5defab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yeenjie 这应该是前面指定"tmp.jpg"的问题,每次网络下载的文件名都是tmp.jpg。