breezedeus / CnOCR

CnOCR: Awesome Chinese/English OCR Python toolkits based on PyTorch. It comes with 20+ well-trained models for different application scenarios and can be used directly after installation. 【基于 PyTorch/MXNet 的中文/英文 OCR Python 包。】

Home Page:https://www.breezedeus.com/article/cnocr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: cannot import name 'ConvBNActivation' from 'torchvision.models.mobilenetv2' (/var/packages/JupyterLab/target/lib/python3.11/site-packages/torchvision/models/mobilenetv2.py)

jhk5263 opened this issue · comments

这个怎么解决?

不要用Python3.11,用 3.8 ~ 3.10

不要用Python3.11,用 3.8 ~ 3.10

多谢

我是3.9.13 cnocr版本2.2 也报这个错 最新版的2.2.2.3会给一个torchvision的警告而且导入很慢 我测试要5秒多 我在降级的时候发现了这个问题