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

【PPSCI Doc No.10、11、30】 #724

Merged
merged 3 commits into from
Dec 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
MayYouBeProsperous committed Dec 29, 2023
commit bff4cb58e21fbed5f0615514d95f0389e73a746d
6 changes: 5 additions & 1 deletion ppsci/arch/unetex.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,17 @@ class UNetEx(base.Arch):
... in_channel=3,
... out_channel=3,
... kernel_size=5,
... filters=(8, 16, 32, 32),
... filters=(4, 4, 4, 4),
... layers=3,
... weight_norm=False,
... batch_norm=False,
... activation=None,
... final_activation=None,
... )
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是否可以构造一个input_dict,然后输入到该model里,然后得到output_dict,再打印output_dict["output"]呢?上面那个CFDGCN不太方便加这个测试,但是UNetEx应该可以吧

Copy link
Collaborator

@HydrogenSulfate HydrogenSulfate Dec 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果可以的话形状可以用128x128或者64x64啥的,不用太大否则有的机器测试都跑不了

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,UNetEx 增加测试。output_dict["output"] 需要打印对比吗?数据比较多。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,UNetEx 增加测试。output_dict["output"] 需要打印对比吗?数据比较多。

不用,只需要打印并校验输出数据的形状即可

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

>>> input_dict = {'input': paddle.rand([4, 3, 4, 4])}
>>> output_dict = model(input_dict)
>>> print(output_dict['output'].shape)
[4, 3, 4, 4]
"""

def __init__(
Expand Down