Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有两个问题想请教一下 #1698

Closed
railgun-zyy opened this issue Mar 23, 2023 · 6 comments · May be fixed by #1811
Closed

有两个问题想请教一下 #1698

railgun-zyy opened this issue Mar 23, 2023 · 6 comments · May be fixed by #1811

Comments

@railgun-zyy
Copy link

1、根据自动化压缩的步骤,第一步测精度eval.py,结果报错TypeError: Require fetch_list[1] 's type shall be one of (Variable, str), but received NoneType.
2、运行自动化压缩,报错
image

@railgun-zyy
Copy link
Author

版本:
paddle gpu 2.3.2.post112
paddleslim 2.3.4

@railgun-zyy
Copy link
Author

我安装了 paddle gpu 2.4.1.post112
paddleslim 2.4.1
报错
ImportError: cannot import name duplicates_everseen

@railgun-zyy
Copy link
Author

第一个问题已解决

@zzjjay
Copy link
Collaborator

zzjjay commented Mar 23, 2023

第二个运行自动压缩的报错是因为没有选择到可用的压缩策略而产生的,需检查下config文件中的超参设置,其中策略选择设置可参考:ACT超参文档
如果使用的是paddlelsim devlop中的示例config,则需要配合安装paddleslim2.4版本进行实验。

@ZihaoZhao
Copy link

TypeError: Require fetch_list[1] 's type shall be one of (Variable, str), but received NoneType.

我也遇到了同样的问题,请问您是怎么解决的

@wanghaoshuang
Copy link
Collaborator

wanghaoshuang commented Dec 5, 2023

根据自动化压缩的步骤,第一步测精度eval.py,结果报错TypeError: Require fetch_list[1] 's type shall be one of (Variable, str), but received NoneType.

注释以下行:
https://github.com/PaddlePaddle/PaddleSlim/blob/develop/example/auto_compression/image_classification/eval.py#L69-L76
https://github.com/PaddlePaddle/PaddleSlim/blob/develop/example/auto_compression/image_classification/eval.py#L93-L94

以上代码用作 debug ,被误提交了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants