Commit 4f8bc59
authored
Enble swinunetr-v2 (#6203)
Fixes #6183 .
### Description
Added a "use_v2" option in swinunetr initialization. Default is false
will not affect the original swinunetr.
Once changed to true, will become swinunetr-v2 with 4 additional
convolution block.
Tested running from auto3dseg bundles, no change needed for original
swinunetr, and works for swinunetr-v2
Tested running from monai research contribution repo for swinuntr, no
change needed for original swinunetr, and works for swinunetr-v2
Tested TensorRT, compiled .ts file successfully.
### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
---------
Signed-off-by: heyufan1995 <[email protected]>1 parent b8f158b commit 4f8bc59
1 file changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| 147 | + | |
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
| |||
921 | 924 | | |
922 | 925 | | |
923 | 926 | | |
| 927 | + | |
924 | 928 | | |
925 | 929 | | |
926 | 930 | | |
| |||
942 | 946 | | |
943 | 947 | | |
944 | 948 | | |
| 949 | + | |
945 | 950 | | |
946 | 951 | | |
947 | 952 | | |
| |||
959 | 964 | | |
960 | 965 | | |
961 | 966 | | |
| 967 | + | |
962 | 968 | | |
963 | 969 | | |
964 | 970 | | |
965 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
966 | 977 | | |
967 | 978 | | |
968 | 979 | | |
| |||
987 | 998 | | |
988 | 999 | | |
989 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
990 | 1020 | | |
991 | 1021 | | |
992 | 1022 | | |
| |||
1008 | 1038 | | |
1009 | 1039 | | |
1010 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
1011 | 1043 | | |
1012 | 1044 | | |
| 1045 | + | |
| 1046 | + | |
1013 | 1047 | | |
1014 | 1048 | | |
| 1049 | + | |
| 1050 | + | |
1015 | 1051 | | |
1016 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
1017 | 1055 | | |
1018 | 1056 | | |
1019 | 1057 | | |
0 commit comments