Pointcept: Regarding slower training time of PTv2 compared to logs
Hi,
I am trying to train PTv2 on scannet on a single V100, however I am noticing very high batch time (10+) compared to the logs (~1). Could you please help in figuring out what I might be doing wrong? I didn’t make any changes to the codebase. Thank you!
Happy to provide any environment info that might be relevant.
Command: python tools/train.py --config-file configs/scannet/semseg-pt-v2m2-0-base.py --options save_path=exp/scannet/semseg-ptv2m2-0-base num_worker=4 batch_size=4
Logs Below (While I only show some starting logs, I trained the model for a day and batch time didn’t stabilise to something lower)
num_worker_per_gpu = 4 batch_size_per_gpu = 4 batch_size_val_per_gpu = 1
[2023-06-04 00:49:13,628 INFO train.py line 116 176747] => Building model … [2023-06-04 00:49:13,750 INFO train.py line 190 176747] Num params: 11323948 [2023-06-04 00:49:15,548 INFO train.py line 118 176747] => Building writer … [2023-06-04 00:49:15,554 INFO train.py line 198 176747] Tensorboard writer logging dir: exp/scannet/semseg-ptv2m2-0-base [2023-06-04 00:49:15,554 INFO train.py line 120 176747] => Building train dataset & dataloader … [2023-06-04 00:49:15,559 INFO scannet.py line 61 176747] Totally 1201 x 9 samples in train set. [2023-06-04 00:49:15,560 INFO train.py line 122 176747] => Building val dataset & dataloader … [2023-06-04 00:49:15,561 INFO scannet.py line 61 176747] Totally 312 x 1 samples in val set. [2023-06-04 00:49:15,561 INFO train.py line 124 176747] => Building optimize, scheduler, scaler(amp) … [2023-06-04 00:49:15,564 INFO train.py line 128 176747] => Building hooks … [2023-06-04 00:49:15,564 INFO misc.py line 176 176747] => Loading checkpoint & weight … [2023-06-04 00:49:15,564 INFO misc.py line 195 176747] No weight found at: None [2023-06-04 00:49:15,564 INFO train.py line 135 176747] >>>>>>>>>>>>>>>> Start Training >>>>>>>>>>>>>>>> [2023-06-04 00:49:32,175 INFO misc.py line 111 176747] Train: [1/100][1/2702] Data 2.861 (2.861) Batch 16.368 (16.368) Remain 1228:29:36 loss: 3.0408 Lr: 0.00050 [2023-06-04 00:49:49,200 INFO misc.py line 111 176747] Train: [1/100][2/2702] Data 0.004 (0.004) Batch 17.024 (17.024) Remain 1277:44:36 loss: 3.0516 Lr: 0.00050 [2023-06-04 00:49:58,771 INFO misc.py line 111 176747] Train: [1/100][3/2702] Data 0.004 (0.004) Batch 9.572 (9.572) Remain 718:25:06 loss: 2.9133 Lr: 0.00050 [2023-06-04 00:50:17,012 INFO misc.py line 111 176747] Train: [1/100][4/2702] Data 0.003 (0.003) Batch 18.240 (18.240) Remain 1369:00:22 loss: 2.8683 Lr: 0.00050 [2023-06-04 00:50:34,541 INFO misc.py line 111 176747] Train: [1/100][5/2702] Data 0.007 (0.005) Batch 17.529 (17.884) Remain 1342:18:01 loss: 2.7756 Lr: 0.00050 [2023-06-04 00:50:48,722 INFO misc.py line 111 176747] Train: [1/100][6/2702] Data 0.004 (0.005) Batch 14.181 (16.650) Remain 1249:38:53 loss: 2.8107 Lr: 0.00050 [2023-06-04 00:51:04,189 INFO misc.py line 111 176747] Train: [1/100][7/2702] Data 0.004 (0.005) Batch 15.468 (16.354) Remain 1227:27:42 loss: 2.7674 Lr: 0.00050 [2023-06-04 00:51:20,200 INFO misc.py line 111 176747] Train: [1/100][8/2702] Data 0.004 (0.004) Batch 16.011 (16.286) Remain 1222:17:59 loss: 2.6689 Lr: 0.00050 [2023-06-04 00:51:34,761 INFO misc.py line 111 176747] Train: [1/100][9/2702] Data 0.003 (0.004) Batch 14.560 (15.998) Remain 1200:42:43 loss: 2.6356 Lr: 0.00050 [2023-06-04 00:51:50,275 INFO misc.py line 111 176747] Train: [1/100][10/2702] Data 0.005 (0.004) Batch 15.514 (15.929) Remain 1195:31:12 loss: 2.6349 Lr: 0.00050 [2023-06-04 00:52:05,423 INFO misc.py line 111 176747] Train: [1/100][11/2702] Data 0.005 (0.004) Batch 15.148 (15.831) Remain 1188:11:02 loss: 2.5802 Lr: 0.00050 [2023-06-04 00:52:19,575 INFO misc.py line 111 176747] Train: [1/100][12/2702] Data 0.003 (0.004) Batch 14.152 (15.645) Remain 1174:10:41 loss: 2.5678 Lr: 0.00050 [2023-06-04 00:52:36,165 INFO misc.py line 111 176747] Train: [1/100][13/2702] Data 0.004 (0.004) Batch 16.589 (15.739) Remain 1181:15:49 loss: 2.4513 Lr: 0.00050 [2023-06-04 00:52:51,379 INFO misc.py line 111 176747] Train: [1/100][14/2702] Data 0.004 (0.004) Batch 15.214 (15.692) Remain 1177:40:33 loss: 2.5999 Lr: 0.00050 [2023-06-04 00:53:05,228 INFO misc.py line 111 176747] Train: [1/100][15/2702] Data 0.006 (0.004) Batch 13.849 (15.538) Remain 1166:09:03 loss: 2.4002 Lr: 0.00050 [2023-06-04 00:53:19,969 INFO misc.py line 111 176747] Train: [1/100][16/2702] Data 0.004 (0.004) Batch 14.740 (15.477) Remain 1161:32:29 loss: 2.5342 Lr: 0.00050 [2023-06-04 00:53:37,099 INFO misc.py line 111 176747] Train: [1/100][17/2702] Data 0.005 (0.004) Batch 17.131 (15.595) Remain 1170:24:21 loss: 2.3962 Lr: 0.00050 [2023-06-04 00:53:49,162 INFO misc.py line 111 176747] Train: [1/100][18/2702] Data 0.011 (0.005) Batch 12.063 (15.359) Remain 1152:43:46 loss: 2.3762 Lr: 0.00050
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (9 by maintainers)
@FT-Zheng Hi, I benchmarked the augmentation time for S3DIS, and I found that ElasticDistortion and GridSample take up 65% and 14% of data time respectively. The two augmentations are sourced from Chrischoy code. I am considering the following solutions: