Skip to content

Commit 08ccc1e

Browse files
authored
Remove deprecated pos_embed (#1824)
### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [ ] Avoid including large-size files in the PR. - [ ] Clean up long text outputs from code cells in the notebook. - [ ] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>` Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent ae7496e commit 08ccc1e

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

3d_segmentation/unetr_btcv_segmentation_3d.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@
586586
" hidden_size=768,\n",
587587
" mlp_dim=3072,\n",
588588
" num_heads=12,\n",
589-
" pos_embed=\"perceptron\",\n",
589+
" proj_type=\"perceptron\",\n",
590590
" norm_name=\"instance\",\n",
591591
" res_block=True,\n",
592592
" dropout_rate=0.0,\n",

3d_segmentation/unetr_btcv_segmentation_3d_lightning.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@
423423
" hidden_size=768,\n",
424424
" mlp_dim=3072,\n",
425425
" num_heads=12,\n",
426-
" pos_embed=\"perceptron\",\n",
426+
" proj_type=\"perceptron\",\n",
427427
" norm_name=\"instance\",\n",
428428
" res_block=True,\n",
429429
" conv_block=True,\n",

deepedit/ignite/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_network(network, labels, spatial_size):
7676
hidden_size=1536,
7777
mlp_dim=3072,
7878
num_heads=48,
79-
pos_embed="conv",
79+
proj_type="conv",
8080
norm_name="instance",
8181
res_block=True,
8282
)

self_supervised_pretraining/vit_unetr_ssl/multi_gpu/mgpu_ssl_train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def main(args):
175175
in_channels=1,
176176
img_size=(96, 96, 96),
177177
patch_size=(16, 16, 16),
178-
pos_embed="conv",
178+
proj_type="conv",
179179
hidden_size=768,
180180
mlp_dim=3072,
181181
)

self_supervised_pretraining/vit_unetr_ssl/ssl_finetune.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
" hidden_size=768,\n",
318318
" mlp_dim=3072,\n",
319319
" num_heads=12,\n",
320-
" pos_embed=\"conv\",\n",
320+
" proj_type=\"conv\",\n",
321321
" norm_name=\"instance\",\n",
322322
" res_block=True,\n",
323323
" dropout_rate=0.0,\n",

self_supervised_pretraining/vit_unetr_ssl/ssl_train.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
" in_channels=1,\n",
254254
" img_size=(96, 96, 96),\n",
255255
" patch_size=(16, 16, 16),\n",
256-
" pos_embed=\"conv\",\n",
256+
" proj_type=\"conv\",\n",
257257
" hidden_size=768,\n",
258258
" mlp_dim=3072,\n",
259259
")\n",

0 commit comments

Comments
 (0)