(base) 
# shaosen @ shaosen in ~/workspace/cv/MVFA-AD-NEW on git:main x [12:34:08] 
$ cd ..
(base) 
# shaosen @ shaosen in ~/workspace/cv on git:master x [12:34:11] 
$ cd Swin-Transformer-Semantic-Segmentation 
(base) 
# shaosen @ shaosen in ~/workspace/cv/Swin-Transformer-Semantic-Segmentation on git:main x [12:34:21] 
$ conda activate swinseg
(swinseg) 
# shaosen @ shaosen in ~/workspace/cv/Swin-Transformer-Semantic-Segmentation on git:main x [12:34:29] 
$ tools/dist_test.sh configs/swin/upernet_swin_base_patch4_window7_512x512_160k_ade20k.py /home/shaosen/workspace/cv/Swin-Transformer-Semantic-Segmentation/upernet_swin_base_patch4_window7_512x512.pth 2 --aug-test --eval mIoU
/home/shaosen/miniconda3/envs/swinseg/lib/python3.7/site-packages/torch/distributed/launch.py:164: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  "The module torch.distributed.launch is deprecated "
The module torch.distributed.launch is deprecated and going to be removed in future.Migrate to torch.distributed.run
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed. 
*****************************************
WARNING:torch.distributed.run:--use_env is deprecated and will be removed in future releases.
 Please read local_rank from `os.environ('LOCAL_RANK')` instead.
INFO:torch.distributed.launcher.api:Starting elastic_operator with launch configs:
  entrypoint       : tools/test.py
  min_nodes        : 1
  max_nodes        : 1
  nproc_per_node   : 2
  run_id           : none
  rdzv_backend     : static
  rdzv_endpoint    : 127.0.0.1:29500
  rdzv_configs     : {'rank': 0, 'timeout': 900}
  max_restarts     : 3
  monitor_interval : 5
  log_dir          : None
  metrics_cfg      : {}

INFO:torch.distributed.elastic.agent.server.local_elastic_agent:log directory set to: /tmp/torchelastic_bue4orxy/none_v6qfzaho
INFO:torch.distributed.elastic.agent.server.api:[default] starting workers for entrypoint: python
INFO:torch.distributed.elastic.agent.server.api:[default] Rendezvous'ing worker group
/home/shaosen/miniconda3/envs/swinseg/lib/python3.7/site-packages/torch/distributed/elastic/utils/store.py:53: FutureWarning: This is an experimental API and will be changed in future.
  "This is an experimental API and will be changed in future.", FutureWarning
INFO:torch.distributed.elastic.agent.server.api:[default] Rendezvous complete for workers. Result:
  restart_count=0
  master_addr=127.0.0.1
  master_port=29500
  group_rank=0
  group_world_size=1
  local_ranks=[0, 1]
  role_ranks=[0, 1]
  global_ranks=[0, 1]
  role_world_sizes=[2, 2]
  global_world_sizes=[2, 2]

INFO:torch.distributed.elastic.agent.server.api:[default] Starting worker group
INFO:torch.distributed.elastic.multiprocessing:Setting worker0 reply file to: /tmp/torchelastic_bue4orxy/none_v6qfzaho/attempt_0/0/error.json
INFO:torch.distributed.elastic.multiprocessing:Setting worker1 reply file to: /tmp/torchelastic_bue4orxy/none_v6qfzaho/attempt_0/1/error.json
2024-08-19 12:34:34,844 - mmseg - INFO - Loaded 2000 images
Use load_from_local loader
Use load_from_local loader
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 2000/2000, 1.5 task/s, elapsed: 1372s, ETA:     0sper class results:

+---------------------+-------+-------+
| Class               | IoU   | Acc   |
+---------------------+-------+-------+
| wall                | 77.32 | 89.05 |
| building            | 81.53 | 92.9  |
| sky                 | 94.46 | 97.44 |
| floor               | 81.28 | 91.21 |
| tree                | 74.85 | 89.24 |
| ceiling             | 83.81 | 92.44 |
| road                | 84.56 | 91.05 |
| bed                 | 89.15 | 96.32 |
| windowpane          | 62.38 | 79.48 |
| grass               | 67.58 | 83.6  |
| cabinet             | 64.03 | 77.4  |
| sidewalk            | 68.01 | 84.64 |
| person              | 81.63 | 93.45 |
| earth               | 35.5  | 48.69 |
| door                | 48.66 | 61.61 |
| table               | 62.64 | 77.23 |
| mountain            | 59.72 | 74.35 |
| plant               | 51.89 | 62.37 |
| curtain             | 73.56 | 83.64 |
| chair               | 59.67 | 73.82 |
| car                 | 85.84 | 93.21 |
| water               | 57.48 | 73.49 |
| painting            | 75.0  | 88.17 |
| sofa                | 65.64 | 82.66 |
| shelf               | 43.16 | 62.02 |
| house               | 45.63 | 54.49 |
| sea                 | 63.11 | 84.35 |
| mirror              | 65.64 | 71.92 |
| rug                 | 54.03 | 63.78 |
| field               | 31.32 | 48.98 |
| armchair            | 41.47 | 57.68 |
| seat                | 57.51 | 76.75 |
| fence               | 45.76 | 59.3  |
| desk                | 48.57 | 63.97 |
| rock                | 40.12 | 63.51 |
| wardrobe            | 51.48 | 62.16 |
| lamp                | 65.97 | 75.48 |
| bathtub             | 75.04 | 81.22 |
| railing             | 31.01 | 47.04 |
| cushion             | 60.87 | 72.4  |
| base                | 24.76 | 33.03 |
| box                 | 24.28 | 28.7  |
| column              | 42.09 | 50.12 |
| signboard           | 37.98 | 49.68 |
| chest of drawers    | 43.93 | 60.7  |
| counter             | 25.72 | 33.93 |
| sand                | 40.65 | 54.64 |
| sink                | 75.1  | 81.21 |
| skyscraper          | 47.01 | 61.96 |
| fireplace           | 75.82 | 88.59 |
| refrigerator        | 76.39 | 82.94 |
| grandstand          | 37.89 | 65.92 |
| path                | 25.79 | 33.33 |
| stairs              | 28.97 | 36.17 |
| runway              | 68.75 | 90.17 |
| case                | 40.26 | 49.72 |
| pool table          | 92.84 | 95.83 |
| pillow              | 59.97 | 69.11 |
| screen door         | 68.88 | 75.35 |
| stairway            | 29.03 | 35.31 |
| river               | 11.63 | 18.21 |
| bridge              | 36.49 | 41.32 |
| bookcase            | 43.08 | 59.23 |
| blind               | 41.61 | 46.12 |
| coffee table        | 58.91 | 79.87 |
| toilet              | 85.73 | 90.83 |
| flower              | 44.65 | 58.54 |
| book                | 49.56 | 70.6  |
| hill                | 5.05  | 9.17  |
| bench               | 46.25 | 52.74 |
| countertop          | 53.19 | 73.07 |
| stove               | 78.34 | 84.86 |
| palm                | 51.68 | 71.75 |
| kitchen island      | 36.05 | 67.01 |
| computer            | 61.94 | 69.14 |
| swivel chair        | 41.85 | 57.04 |
| boat                | 48.19 | 52.51 |
| bar                 | 27.41 | 37.17 |
| arcade machine      | 33.69 | 35.78 |
| hovel               | 33.18 | 38.62 |
| bus                 | 88.51 | 96.32 |
| towel               | 66.16 | 72.66 |
| light               | 58.35 | 65.37 |
| truck               | 43.16 | 52.65 |
| tower               | 13.87 | 17.77 |
| chandelier          | 71.29 | 84.55 |
| awning              | 24.65 | 27.58 |
| streetlight         | 26.4  | 32.2  |
| booth               | 45.62 | 46.97 |
| television receiver | 70.4  | 77.11 |
| airplane            | 62.01 | 71.34 |
| dirt track          | 12.22 | 19.01 |
| apparel             | 43.76 | 63.37 |
| pole                | 24.43 | 31.94 |
| land                | 2.87  | 3.81  |
| bannister           | 8.91  | 10.91 |
| escalator           | 28.55 | 33.67 |
| ottoman             | 46.86 | 54.65 |
| bottle              | 33.53 | 61.9  |
| buffet              | 27.85 | 30.55 |
| poster              | 27.21 | 31.53 |
| stage               | 18.41 | 26.58 |
| van                 | 47.91 | 60.33 |
| ship                | 62.59 | 92.07 |
| fountain            | 30.76 | 31.56 |
| conveyer belt       | 80.72 | 89.42 |
| canopy              | 11.4  | 13.25 |
| washer              | 72.2  | 74.08 |
| plaything           | 34.83 | 47.5  |
| swimming pool       | 48.8  | 73.8  |
| stool               | 46.17 | 60.84 |
| barrel              | 61.9  | 74.8  |
| basket              | 35.95 | 46.37 |
| waterfall           | 62.75 | 79.25 |
| tent                | 95.84 | 98.13 |
| bag                 | 18.16 | 21.83 |
| minibike            | 72.49 | 85.86 |
| cradle              | 84.05 | 95.06 |
| oven                | 52.06 | 72.46 |
| ball                | 39.36 | 54.51 |
| food                | 50.33 | 60.54 |
| step                | 10.71 | 11.34 |
| tank                | 47.87 | 49.42 |
| trade name          | 28.73 | 33.67 |
| microwave           | 82.31 | 88.44 |
| pot                 | 46.56 | 52.38 |
| animal              | 56.0  | 57.53 |
| bicycle             | 58.28 | 76.22 |
| lake                | 56.08 | 63.45 |
| dishwasher          | 69.86 | 74.92 |
| screen              | 58.46 | 76.93 |
| blanket             | 12.18 | 13.45 |
| sculpture           | 75.56 | 84.09 |
| hood                | 67.7  | 71.89 |
| sconce              | 46.17 | 56.81 |
| vase                | 45.78 | 58.4  |
| traffic light       | 37.05 | 48.81 |
| tray                | 14.21 | 19.92 |
| ashcan              | 43.96 | 57.4  |
| fan                 | 66.29 | 75.8  |
| pier                | 55.86 | 78.49 |
| crt screen          | 0.91  | 2.62  |
| plate               | 55.13 | 66.68 |
| monitor             | 5.0   | 7.27  |
| bulletin board      | 49.24 | 55.17 |
| shower              | 1.09  | 2.51  |
| radiator            | 60.34 | 65.37 |
| glass               | 13.92 | 14.62 |
| clock               | 43.86 | 50.69 |
| flag                | 33.89 | 35.65 |
+---------------------+-------+-------+
Summary:

+--------+-------+-------+-------+
| Scope  | mIoU  | mAcc  | aAcc  |
+--------+-------+-------+-------+
| global | 49.72 | 60.04 | 83.25 |
+--------+-------+-------+-------+
INFO:torch.distributed.elastic.agent.server.api:[default] worker group successfully finished. Waiting 300 seconds for other agents to finish.
INFO:torch.distributed.elastic.agent.server.api:Local worker group finished (SUCCEEDED). Waiting 300 seconds for other agents to finish
/home/shaosen/miniconda3/envs/swinseg/lib/python3.7/site-packages/torch/distributed/elastic/utils/store.py:71: FutureWarning: This is an experimental API and will be changed in future.
  "This is an experimental API and will be changed in future.", FutureWarning
INFO:torch.distributed.elastic.agent.server.api:Done waiting for other agents. Elapsed: 0.00029206275939941406 seconds
{"name": "torchelastic.worker.status.SUCCEEDED", "source": "WORKER", "timestamp": 0, "metadata": {"run_id": "none", "global_rank": 0, "group_rank": 0, "worker_id": "1176519", "role": "default", "hostname": "shaosen", "state": "SUCCEEDED", "total_run_time": 1516, "rdzv_backend": "static", "raw_error": null, "metadata": "{\"group_world_size\": 1, \"entry_point\": \"python\", \"local_rank\": [0], \"role_rank\": [0], \"role_world_size\": [2]}", "agent_restarts": 0}}
{"name": "torchelastic.worker.status.SUCCEEDED", "source": "WORKER", "timestamp": 0, "metadata": {"run_id": "none", "global_rank": 1, "group_rank": 0, "worker_id": "1176523", "role": "default", "hostname": "shaosen", "state": "SUCCEEDED", "total_run_time": 1516, "rdzv_backend": "static", "raw_error": null, "metadata": "{\"group_world_size\": 1, \"entry_point\": \"python\", \"local_rank\": [1], \"role_rank\": [1], \"role_world_size\": [2]}", "agent_restarts": 0}}
{"name": "torchelastic.worker.status.SUCCEEDED", "source": "AGENT", "timestamp": 0, "metadata": {"run_id": "none", "global_rank": null, "group_rank": 0, "worker_id": null, "role": "default", "hostname": "shaosen", "state": "SUCCEEDED", "total_run_time": 1516, "rdzv_backend": "static", "raw_error": null, "metadata": "{\"group_world_size\": 1, \"entry_point\": \"python\"}", "agent_restarts": 0}}

