-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Adding a new method to ivadomed, intervertebral disc labeling #766
Comments
1-Sounds good! |
I agree with @andreanne-lemay ! |
The pose estimation method similar to the Countception approach uses the 2D images (mid slices) to train and evaluate the model. Thus, the config file uses the "T1w_mid". Since the ivadomed needs to be used by the end-user, I was wondering to know should I create a bash file to generate those samples (the user can easily run by address) or somehow include them in ivadomed? |
Ideally, we want one command to run the whole process (preprocessing, loading, training) and want to avoid multiple manual steps. This being said, I am not sure to understand what preprocessing step you are referring to. Lucas wrote this python script to prepare the dataset for vertebral labeling "ivadomed/scripts/prepare_dataset_vertebral_labeling.py". Are you referring to this? If so, you can start by simply reusing / adapting this script to the needs of your model. |
Yes, I am referring to Lucas's script. This script needs to be run separately before running the ivadomed command, that is my point. If it is fine I can go in the same direction. |
Yes, this sounds like a good starting point! |
@rezazad68 indeed, this "preparation script" will ultimately be incorporated by the calling function, e.g., SCT's code. So you don't need to worry about incorporating these preprocessing steps into ivadomed. As long as you document the steps to generate a model, this is all fine. |
The |
There is a resample transformation that allows resizing the image (https://github.com/ivadomed/ivadomed/blob/master/ivadomed/transforms.py#L211). |
Amazing! @rezazad68 could you please open a PR so we can comment on your changes. |
Hi,
Would appreciate your comments and guidance regarding the process for adding a new method to the ivadomed library. I am following the below steps:
1- Add model to the model.py
2- Add loss function to losses.py
3- Add metric to metrics.py
3- For training and evaluation, the main.py should revise?
4- weight files should be stored in which address?
Any further comments are welcome. Thanks in advance.
The text was updated successfully, but these errors were encountered: