feat: try resnet34
Browse files- detector/config.py +1 -1
- train.py +2 -2
detector/config.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
INPUT_SIZE =
|
2 |
FONT_COUNT = 6150
|
|
|
1 |
+
INPUT_SIZE = 512
|
2 |
FONT_COUNT = 6150
|
train.py
CHANGED
@@ -5,7 +5,7 @@ import pytorch_lightning as ptl
|
|
5 |
from pytorch_lightning.loggers import TensorBoardLogger
|
6 |
|
7 |
from detector.data import FontDataModule
|
8 |
-
from detector.model import
|
9 |
from utils import get_current_tag
|
10 |
|
11 |
|
@@ -73,7 +73,7 @@ trainer = ptl.Trainer(
|
|
73 |
deterministic=True,
|
74 |
)
|
75 |
|
76 |
-
model =
|
77 |
|
78 |
detector = FontDetector(
|
79 |
model=model,
|
|
|
5 |
from pytorch_lightning.loggers import TensorBoardLogger
|
6 |
|
7 |
from detector.data import FontDataModule
|
8 |
+
from detector.model import *
|
9 |
from utils import get_current_tag
|
10 |
|
11 |
|
|
|
73 |
deterministic=True,
|
74 |
)
|
75 |
|
76 |
+
model = ResNet34Regressor(regression_use_tanh=regression_use_tanh)
|
77 |
|
78 |
detector = FontDetector(
|
79 |
model=model,
|