feat: utilize a6000
Browse files
train.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
import pytorch_lightning as ptl
|
3 |
from pytorch_lightning.loggers import TensorBoardLogger
|
4 |
|
@@ -7,6 +8,8 @@ from detector.model import FontDetector, ResNet18Regressor
|
|
7 |
from utils import get_current_tag
|
8 |
|
9 |
|
|
|
|
|
10 |
devices = [6, 7]
|
11 |
|
12 |
final_batch_size = 128
|
|
|
1 |
import os
|
2 |
+
import torch
|
3 |
import pytorch_lightning as ptl
|
4 |
from pytorch_lightning.loggers import TensorBoardLogger
|
5 |
|
|
|
8 |
from utils import get_current_tag
|
9 |
|
10 |
|
11 |
+
torch.set_float32_matmul_precision('high')
|
12 |
+
|
13 |
devices = [6, 7]
|
14 |
|
15 |
final_batch_size = 128
|