monai
medical
katielink commited on
Commit
920eb67
·
1 Parent(s): c3db148

fix the wrong GPU index issue of multi-node

Browse files
configs/metadata.json CHANGED
@@ -1,7 +1,8 @@
1
  {
2
  "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
3
- "version": "0.5.2",
4
  "changelog": {
 
5
  "0.5.2": "remove error dollar symbol in readme",
6
  "0.5.1": "add RAM warning",
7
  "0.5.0": "update the README file with the ONNX-TensorRT conversion",
@@ -30,7 +31,7 @@
30
  "0.1.0": "complete the model package",
31
  "0.0.1": "initialize the model package structure"
32
  },
33
- "monai_version": "1.2.0rc6",
34
  "pytorch_version": "1.13.1",
35
  "numpy_version": "1.22.2",
36
  "optional_packages_version": {
 
1
  {
2
  "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20220324.json",
3
+ "version": "0.5.3",
4
  "changelog": {
5
+ "0.5.3": "fix the wrong GPU index issue of multi-node",
6
  "0.5.2": "remove error dollar symbol in readme",
7
  "0.5.1": "add RAM warning",
8
  "0.5.0": "update the README file with the ONNX-TensorRT conversion",
 
31
  "0.1.0": "complete the model package",
32
  "0.0.1": "initialize the model package structure"
33
  },
34
+ "monai_version": "1.2.0",
35
  "pytorch_version": "1.13.1",
36
  "numpy_version": "1.22.2",
37
  "optional_packages_version": {
configs/multi_gpu_evaluate.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "device": "$torch.device(f'cuda:{dist.get_rank()}')",
3
  "network": {
4
  "_target_": "torch.nn.parallel.DistributedDataParallel",
5
  "module": "$@network_def.to(@device)",
 
1
  {
2
+ "device": "$torch.device('cuda:' + os.environ['LOCAL_RANK'])",
3
  "network": {
4
  "_target_": "torch.nn.parallel.DistributedDataParallel",
5
  "module": "$@network_def.to(@device)",
configs/multi_gpu_train.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "device": "$torch.device(f'cuda:{dist.get_rank()}')",
3
  "network": {
4
  "_target_": "torch.nn.parallel.DistributedDataParallel",
5
  "module": "$@network_def.to(@device)",
 
1
  {
2
+ "device": "$torch.device('cuda:' + os.environ['LOCAL_RANK'])",
3
  "network": {
4
  "_target_": "torch.nn.parallel.DistributedDataParallel",
5
  "module": "$@network_def.to(@device)",