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

tool/model/analyze_model.py 分析flops文件问题 #3398

Closed
2 of 3 tasks
maoyj1998 opened this issue Jul 21, 2023 · 1 comment
Closed
2 of 3 tasks

tool/model/analyze_model.py 分析flops文件问题 #3398

maoyj1998 opened this issue Jul 21, 2023 · 1 comment
Assignees
Labels
bug Something isn't working Code PR is needed This issue could inspire a code PR

Comments

@maoyj1998
Copy link

问题确认 Search before asking

Bug描述 Describe the Bug

在运行tool/model/analyze_model.py出现错误:
AttributeError: 'Config' object has no attribute 'model'

tool/model/analyze_model.py源码中并没有根据model_cfg实例化出一个具体的model,而在'_dynamic_flops'函数中,
代码不断调用model.train(),'model.eval()'等函数

复现环境 Environment

platform: Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-glibc2.31
Python: 3.9.0 (default, Nov 15 2020, 14:28:56) [GCC 7.3.0]
Paddle compiled with cuda: False
GCC: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
PaddleSeg: 2.8.0
PaddlePaddle: 2.4.2
OpenCV: 4.5.5

Bug描述确认 Bug description confirmation

  • 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced.

是否愿意提交PR? Are you willing to submit a PR?

  • 我愿意提交PR!I'd like to help by submitting a PR!
@maoyj1998 maoyj1998 added the bug Something isn't working label Jul 21, 2023
@Asthestarsfalll
Copy link
Contributor

这是一个bug,稍后会进行修复,你可以先用更低版本的paddleseg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Code PR is needed This issue could inspire a code PR
Projects
None yet
Development

No branches or pull requests

5 participants