gyrojeff commited on
Commit
8e068be
1 Parent(s): 2d6a578

feat: try resnet34

Browse files
Files changed (2) hide show
  1. detector/config.py +1 -1
  2. train.py +2 -2
detector/config.py CHANGED
@@ -1,2 +1,2 @@
1
- INPUT_SIZE = 224
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 FontDetector, ResNet18Regressor
9
  from utils import get_current_tag
10
 
11
 
@@ -73,7 +73,7 @@ trainer = ptl.Trainer(
73
  deterministic=True,
74
  )
75
 
76
- model = ResNet18Regressor(regression_use_tanh=regression_use_tanh)
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,