LuxExistentia commited on
Commit
744959a
·
1 Parent(s): 2c58e86

Modified Title and test_transforms

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,7 +8,7 @@ from custom_torch_module import setup_utils
8
 
9
 
10
 
11
- title = "Age Prediction model"
12
  description = "ViT(medium clip) based model. transfer trained with custom dataset"
13
  article = "Through bunch of fine tuning and experiments. REMEMBER! This model can be wrong."
14
 
@@ -27,10 +27,10 @@ model_classifier = nn.Sequential(nn.Linear(512, 512),
27
  nn.GELU(),
28
  nn.Linear(512, 1))
29
  model = nn.Sequential(model, model_classifier)
30
-
31
- test_transform = setup_utils.build_transform(img_size=224, is_data_aug=False)
32
  model.load_state_dict(state_dict=torch.load(FILE_NAME, weights_only=True))
33
 
 
 
34
 
35
 
36
 
 
8
 
9
 
10
 
11
+ title = "Age-PT"
12
  description = "ViT(medium clip) based model. transfer trained with custom dataset"
13
  article = "Through bunch of fine tuning and experiments. REMEMBER! This model can be wrong."
14
 
 
27
  nn.GELU(),
28
  nn.Linear(512, 1))
29
  model = nn.Sequential(model, model_classifier)
 
 
30
  model.load_state_dict(state_dict=torch.load(FILE_NAME, weights_only=True))
31
 
32
+ test_transform = timm.data.create_transform(input_size=224, is_training=False, interpolation="bicubic")
33
+
34
 
35
 
36