Skip to content

added model_CT#8

Open
muschellij2 wants to merge 10 commits into
aqqush:masterfrom
muschellij2:noitk
Open

added model_CT#8
muschellij2 wants to merge 10 commits into
aqqush:masterfrom
muschellij2:noitk

Conversation

@muschellij2
Copy link
Copy Markdown

Don't need ITK

Copilot AI review requested due to automatic review settings January 23, 2026 20:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates dependencies and refines the CT model script by removing the SimpleITK dependency, skipping hidden files during prediction, and correcting the prediction output path for 3D predictions.

Changes:

  • Added a requirements.txt specifying pinned versions for core scientific and ML libraries (NumPy, SciPy, TensorFlow, Keras, etc.).
  • Removed the unused SimpleITK import and cleaned up the scipy.ndimage.interpolation.zoom import in model_CT_SS.py.
  • Updated Predict and Predict3D to skip hidden files in the test image directory and adjusted the 3D prediction save path to use the configured save_folder directly.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
requirements.txt Introduces explicit, pinned dependencies for the project’s Python ML stack, clarifying the environment needed to run the CT model.
model_CT_SS.py Removes the unneeded SimpleITK import, ensures directory iteration skips hidden entries, and fixes the 3D prediction output path to align with how save_folder is configured in unet_CT_SS.py.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread model_CT_SS.py Outdated
print('case: ', each);
if each.startswith('.'):
continue
continue
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

There are two consecutive continue statements in this block, so the second one at the same indentation level is unreachable and will never execute. Please remove the redundant continue (or replace it with any missing logic you intended here) to avoid dead code and keep the control flow clear.

Suggested change
continue

Copilot uses AI. Check for mistakes.
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

Successfully merging this pull request may close these issues.

2 participants