Project-MONAI / Project-MONAI/tutorials

Data preparation for MAISI tutorial is wrong for non-RAS data

未关闭
#2,012 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Jupyter Notebook
星标
2.5k
派生
803
平均合并
6 天 22 小时
30 天内合并 PR
3

描述

https://github.com/Project-MONAI/tutorials/blob/8b90a16d82a463551d81dd4da200f3d406c6843e/generation/maisi/scripts/diff_model_create_training_data.py#L199

In the data preparation, the plain_transforms uses monai.transforms.Orientationd(keys="image", axcodes="RAS"), to reorient the image, but the new dimension is set using plain_transforms({"image": os.path.join(args.data_base_dir, filepath)})["image"].meta["dim"][_i] which has the original dimension, not the new dimension.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 generation/maisi/scripts/diff_model_create_training_data.py 大约第 199 行开始,检查 plain_transforms 如何在记录维度之前重新定向非 RAS 图像。验证用于训练数据准备的维度反映了重新定向后的图像,然后运行 tutorial 中可用的数据准备检查,以确认非 RAS 输入会生成正确的维度。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
machine-learning
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。