-
Notifications
You must be signed in to change notification settings - Fork 233
【Paddle Toolkit Development Competition No.6】Paddle 适配 deepali #1006
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
Conversation
|
Thanks for your contribution! |
HydrogenSulfate
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
好的辛苦,我们内部先测试一下 |
|
|
测试develop版本可以,只是提示信息 develop版本安装是用的命令 其他地方有碰到类似问题,可能文档没有更新,测试有部分支持,也有部分不支持,但是不确定是哪部分不支持,需要按测试结果修改 |
|
lijialin03
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
辛苦提交代码,我们在运行单测的时候遇到一点奇怪的报错,麻烦可以提供一下单测运行时的软件包版本吗,pip list之类的,谢谢
|
本地测试没有错误,这里的逻辑是用cpu分配tensor,然后使用不同的cuda设备,验证是否新建数据, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jointContribution/deepali/src/deepali/utils/simpleitk/paddle.py
Outdated
Show resolved
Hide resolved
| from paddle import Tensor | ||
|
|
||
| from .tensor import DataTensor | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
***** import处添加(需要安装SimpleITK包):
try:
import SimpleITK as sitk
from ..utils.simpleitk.imageio import read_image
from ..utils.simpleitk.paddle import image_from_tensor
from ..utils.simpleitk.paddle import tensor_from_image
except ImportError:
sitk = None
from deepali.core.pathlib import unlink_or_mkdir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试read_image导入是
from deepali.utils.imageio import read_image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,打log看这两个API在测试这个案例上好像结果没区别,不过deepali.utils.imageio里这个确实全很多,就这个吧,谢谢
已修改,没有提示错误,但是也没有日志输出,不确定什么问题 |
确实没有log,测试用的PR本身输出的是文件,log是手动添加的打印: ),测试过最新代码,结果同上面log截图 |
HydrogenSulfate
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,这个仓库能暂时先放到https://atomgit.com/上吗?后续我们看下github上放到哪里比较合适
@HydrogenSulfate 没地方放的话,可以考虑先放这里:https://github.com/PfCCLab |
Co-authored-by: HydrogenSulfate <[email protected]>
已放到atomgit |
|
已放到 https://github.com/PFCCLab/deepali/ ,仓库为私有仓库,当前PR是关闭吗 |











PR types
Others
PR changes
Others
Describe
Paddle 适配 deepali
RFC PaddlePaddle/community#978
torch中单测为89个,修改后paddle单测数量85个,3个单测使用torch_function paddle没有对应实现, 1个单测使用 torchinfo取消测试

torch单测运行
paddle单测运行

docs目录没有修改,examples中示例没有说明中数据集没有测试
安装