Skip to content
Discussion options

You must be logged in to vote

您好,这确实这版代码对于cpu环境处理的bug,不过wheel包已经打好了,只能下一版再修了。可以cd 到 这个文件里"C:\Users\15570\anaconda3\envs\paddle33\Lib\site-packages\paddlex\inference\utils\pp_option.py", 找到 line 103 里
device_type, device_ids = parse_device(get_default_device()) 这行代码,把它注释掉,然后替换为 device_type, device_ids ="cpu", None, 具体如图所示,

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Sakura9421
Comment options

@liuhongen1234567
Comment options

Answer selected by Sakura9421
@Sakura9421
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants