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

How to use the pretrained Synapse weight to test my own dataset? #28

Open
qingwang-usc opened this issue May 22, 2023 · 2 comments
Open
Labels
help wanted Extra attention is needed

Comments

@qingwang-usc
Copy link

Dear Authors:
Hello, now I have some abdomen data, I want to load the pre-training Synapse weight directly and then test my data, but I don't know how to do it, could you tell me the approximate steps of testing my own data, thank you very much!

@Amshaker
Copy link
Owner

Amshaker commented Jun 2, 2023

Hi @qingwang-usc ,

Sorry for the late reply.

To do that, please follow the following steps:-

1- You have to do the preprocessing of nnFormer. Mainly, you have to divide your data into 3D slices of size 128x128x64. Then, apply the same transformation of nnFormer.

2- After the data is pre-processed and ready, you may follow the scripts inside: https://github.com/Amshaker/unetr_plus_plus/blob/main/evaluation_scripts/run_evaluation_synapse.sh and replace the evaluation samples of Synapse by your pre-processed data and run the same script. Alternatively, you can adopt https://github.com/Amshaker/unetr_plus_plus/blob/main/unetr_pp/inference/predict_simple.py to load your pre-processed data, our Synapse architecture, and the checkpoint of Synapse, and do the prediction for your pre-processed data.

I hope my answer gives you an overview of the steps you needed.

Please let me know if you have other questions.

Best regards,
Abdelrahman.

@qingwang-usc
Copy link
Author

qingwang-usc commented Jun 11, 2023 via email

@Amshaker Amshaker added the help wanted Extra attention is needed label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants