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

about swinunetr and unetr #49

Open
smanman opened this issue Aug 2, 2023 · 5 comments
Open

about swinunetr and unetr #49

smanman opened this issue Aug 2, 2023 · 5 comments

Comments

@smanman
Copy link

smanman commented Aug 2, 2023

I'm bothering you! I want to ask you when you ran the comparison model swinutr and unetr, did you directly change the Jiang network architecture to the comparative model architecture directly on the basis of your code? Or is it an experiment against the original code of the model? I followed the first method, but it was reported an error, it was not solved, I want to ask if you know how to solve it? Are you getting such an error?
Traceback (most recent call last):
File "/home/code/unetr_pp++/unetr_pp/run/run_training.py", line 171, in
main()
File "/home/code/unetr_pp++/unetr_pp/run/run_training.py", line 142, in main
trainer.initialize(not validation_only)
File "/home/code/unetr_pp++/unetr_pp/training/network_training/unetr_pp_trainer_tumor.py", line 156, in initialize
assert isinstance(self.network, (SegmentationNetwork, nn.DataParallel))
AssertionError

Process finished with exit code 1
We kindly ask for your prompt reply

@AustinYuAo
Copy link

Hi , I had the same problem, did you solve it?

@smanman
Copy link
Author

smanman commented Aug 8, 2023

@AustinYuAo no

@smanman
Copy link
Author

smanman commented Aug 8, 2023

@Amshaker excuse me? help me,thanks

@Amshaker
Copy link
Owner

Amshaker commented Aug 8, 2023

UNETR and SwinUNETR are integrated into UNETR++. It will not work as it, and requires some engineering hands-on. It requires some modification in the network architecture to be adapted. For instance, the original architecture of UNETR has an input of 96x96x96. You need to do network modification to adapt with 64x128x128.

@AustinYuAo
Copy link

AustinYuAo commented Aug 8, 2023

This problem requires you to change your code to class UNETR(SegmentationNetwork): replaces the original class UNETR(nn.Module).
You will find it works. @6018203135
If you're up and running, can you share how long it takes to train one epoch for UNETR or swin UNETR? Thanks!

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

No branches or pull requests

3 participants