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

训练ADnet,进行val时报错 #15

Open
Hgsil opened this issue May 21, 2024 · 11 comments
Open

训练ADnet,进行val时报错 #15

Hgsil opened this issue May 21, 2024 · 11 comments

Comments

@Hgsil
Copy link

Hgsil commented May 21, 2024

一开始报错
image
修改为
start_points_hm = start_points_hm[:,1::-1]
解决问题,后续报错
image
查询文档发现paddle2.4.2确实没有hstack方法,使用stack替换,后续报错
image

@Hgsil
Copy link
Author

Hgsil commented May 21, 2024

Paddle=2.4.2.post117 显卡4090

@zkyseu
Copy link
Owner

zkyseu commented May 21, 2024

PaddlePaddle有hstack实现了,见下方链接。应该是paddlepaddle版本问题,可以升级一下paddlepaddle版本。
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/hstack_cn.html#hstack

@zkyseu
Copy link
Owner

zkyseu commented May 21, 2024

这个是文档问题,忘记更新paddlepaddle版本了

@Hgsil
Copy link
Author

Hgsil commented May 21, 2024

使用最新版本paddle,会有如下报错
image
paddle.fluid在2.5之后就没了

@zkyseu
Copy link
Owner

zkyseu commented May 21, 2024

好的,我晚些时候来修复这个bug。

@Hgsil
Copy link
Author

Hgsil commented May 21, 2024

好的,谢谢,等着你的回复

@zkyseu
Copy link
Owner

zkyseu commented May 21, 2024

使用最新版本paddle,会有如下报错 image paddle.fluid在2.5之后就没了

这个报错是在哪个文件里面?

@Hgsil
Copy link
Author

Hgsil commented May 21, 2024

image
完整截图

@zkyseu
Copy link
Owner

zkyseu commented May 21, 2024

这行代码可以注释,这个类在这个文件中没有使用

@Hgsil
Copy link
Author

Hgsil commented May 21, 2024

我将optimizer.py中的import 和对应行注释之后,出现如下问题
image

@zkyseu
Copy link
Owner

zkyseu commented May 21, 2024

明白了,我尽快修复好。

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

No branches or pull requests

2 participants