style: format
Browse files
train.py
CHANGED
|
@@ -9,10 +9,10 @@ from detector.model import FontDetector, ResNet18Regressor
|
|
| 9 |
from utils import get_current_tag
|
| 10 |
|
| 11 |
|
| 12 |
-
torch.set_float32_matmul_precision(
|
| 13 |
|
| 14 |
parser = argparse.ArgumentParser()
|
| 15 |
-
parser.add_argument(
|
| 16 |
|
| 17 |
args = parser.parse_args()
|
| 18 |
|
|
|
|
| 9 |
from utils import get_current_tag
|
| 10 |
|
| 11 |
|
| 12 |
+
torch.set_float32_matmul_precision("high")
|
| 13 |
|
| 14 |
parser = argparse.ArgumentParser()
|
| 15 |
+
parser.add_argument("-d", "--devices", nargs="*", type=int, default=[0])
|
| 16 |
|
| 17 |
args = parser.parse_args()
|
| 18 |
|