Home
Explore
Information
Event
License
Tool
软件代码质量检测云服务
持续集成与部署云服务
社区个性化内容推荐服务
贡献审阅人推荐服务
群体化学习服务
重睛鸟代码扫描工具
Sign in
Sign up
Fetch the repository succeeded.
Watch
70
Star
420
Fork
138
cyahua
/
cnocr
Fork this repository
Loading
Cancel
Confirm
Code
Issues
7
Pull Requests
0
Wiki
2
Insights
Update failed. Please try again later!
Issues
/
详情
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
ocr_model中有报一个UserWarning
Backlog
#I4L2ZO
BeijingRoyLi
Opened this issue
2021-12-04 11:47
因为在Python310下install不成功,在Python39运行成功,但报了一个UserWarning。 不影响运行,强迫症发作,发一下: Python39\site-packages\cnocr\models\ocr_model.py:194: UserWarning: __floordiv__ is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). input_lengths = input_lengths // self.encoder.compress_ratio
因为在Python310下install不成功,在Python39运行成功,但报了一个UserWarning。 不影响运行,强迫症发作,发一下: Python39\site-packages\cnocr\models\ocr_model.py:194: UserWarning: __floordiv__ is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the 'trunc' function NOT 'floor'). This results in incorrect rounding for negative values. To keep the current behavior, use torch.div(a, b, rounding_mode='trunc'), or for actual floor division, use torch.div(a, b, rounding_mode='floor'). input_lengths = input_lengths // self.encoder.compress_ratio
Comments (
0
)
BeijingRoyLi
created
任务
Sign in
to comment
Status
Backlog
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (7)
Tags (31)
master
dev
tmp
st-deploy
pytorch
mxnet
dev-v1.2
v2.3.0.3
v2.3.0.2
v2.3.0.1
v2.3
v2.2.4.2
v2.2.4.1
v2.2.4
v2.2.3.2
v2.2.3.1
v2.2.2.3
v2.2.2.2
v2.2.2.1
v2.2.2
v2.2.1
v2.2
v2.1.2.1
v2.1.2
v2.1.1.1
v2.1.0
v2.0.1
v2.0.0
v1.2.3.1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.1.2.1
v1.1.1
v1.1.0
v1.0.0
v0.2.0
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)