FredZhang7 commited on
Commit
b9ed13a
1 Parent(s): 70a3c4c

Upload model

Browse files
Files changed (1) hide show
  1. model.py +5 -5
model.py CHANGED
@@ -9,17 +9,17 @@ class SafeSearchConfig(PretrainedConfig):
9
  model_name: str = "safesearch_mini_v2",
10
  input_channels: int = 3,
11
  num_classes: int = 3,
12
- input_size: list[int] = [3, 299, 299],
13
- pool_size: list[int] = [8, 8],
14
  crop_pct: float = 0.875,
15
  interpolation: str = "bicubic",
16
- mean: list[float] = [0.5, 0.5, 0.5],
17
- std: list[float] = [0.5, 0.5, 0.5],
18
  first_conv: str = "conv2d",
19
  classifier: str = "default",
20
  has_aux: bool = False,
21
  label_offset: int = 0,
22
- classes: list[str] = classes,
23
  output_channels: int = 1536,
24
  device: str = "cpu",
25
  **kwargs):
 
9
  model_name: str = "safesearch_mini_v2",
10
  input_channels: int = 3,
11
  num_classes: int = 3,
12
+ input_size: list = [3, 299, 299],
13
+ pool_size: list = [8, 8],
14
  crop_pct: float = 0.875,
15
  interpolation: str = "bicubic",
16
+ mean: list = [0.5, 0.5, 0.5],
17
+ std: list = [0.5, 0.5, 0.5],
18
  first_conv: str = "conv2d",
19
  classifier: str = "default",
20
  has_aux: bool = False,
21
  label_offset: int = 0,
22
+ classes: object = classes,
23
  output_channels: int = 1536,
24
  device: str = "cpu",
25
  **kwargs):