danbrown commited on
Commit
e2787c5
1 Parent(s): 37a024b

fixed safety_checker

Browse files
feature_extractor/preprocessor_config.json CHANGED
@@ -1,12 +1,8 @@
1
  {
2
- "crop_size": {
3
- "height": 224,
4
- "width": 224
5
- },
6
  "do_center_crop": true,
7
  "do_convert_rgb": true,
8
  "do_normalize": true,
9
- "do_rescale": true,
10
  "do_resize": true,
11
  "feature_extractor_type": "CLIPFeatureExtractor",
12
  "image_mean": [
@@ -14,15 +10,11 @@
14
  0.4578275,
15
  0.40821073
16
  ],
17
- "image_processor_type": "CLIPFeatureExtractor",
18
  "image_std": [
19
  0.26862954,
20
  0.26130258,
21
  0.27577711
22
  ],
23
  "resample": 3,
24
- "rescale_factor": 0.00392156862745098,
25
- "size": {
26
- "shortest_edge": 224
27
- }
28
  }
 
1
  {
2
+ "crop_size": 224,
 
 
 
3
  "do_center_crop": true,
4
  "do_convert_rgb": true,
5
  "do_normalize": true,
 
6
  "do_resize": true,
7
  "feature_extractor_type": "CLIPFeatureExtractor",
8
  "image_mean": [
 
10
  0.4578275,
11
  0.40821073
12
  ],
 
13
  "image_std": [
14
  0.26862954,
15
  0.26130258,
16
  0.27577711
17
  ],
18
  "resample": 3,
19
+ "size": 224
 
 
 
20
  }
safety_checker/config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_commit_hash": "cb41f3a270d63d454d385fc2e4f571c487c253c5",
3
  "_name_or_path": "CompVis/stable-diffusion-safety-checker",
4
  "architectures": [
5
  "StableDiffusionSafetyChecker"
@@ -62,7 +62,6 @@
62
  "pad_token_id": 1,
63
  "prefix": null,
64
  "problem_type": null,
65
- "projection_dim": 512,
66
  "pruned_heads": {},
67
  "remove_invalid_values": false,
68
  "repetition_penalty": 1.0,
@@ -80,7 +79,7 @@
80
  "top_p": 1.0,
81
  "torch_dtype": null,
82
  "torchscript": false,
83
- "transformers_version": "4.26.0.dev0",
84
  "typical_p": 1.0,
85
  "use_bfloat16": false,
86
  "vocab_size": 49408
@@ -149,7 +148,6 @@
149
  "patch_size": 14,
150
  "prefix": null,
151
  "problem_type": null,
152
- "projection_dim": 512,
153
  "pruned_heads": {},
154
  "remove_invalid_values": false,
155
  "repetition_penalty": 1.0,
@@ -167,7 +165,7 @@
167
  "top_p": 1.0,
168
  "torch_dtype": null,
169
  "torchscript": false,
170
- "transformers_version": "4.26.0.dev0",
171
  "typical_p": 1.0,
172
  "use_bfloat16": false
173
  },
 
1
  {
2
+ "_commit_hash": "4bb648a606ef040e7685bde262611766a5fdd67b",
3
  "_name_or_path": "CompVis/stable-diffusion-safety-checker",
4
  "architectures": [
5
  "StableDiffusionSafetyChecker"
 
62
  "pad_token_id": 1,
63
  "prefix": null,
64
  "problem_type": null,
 
65
  "pruned_heads": {},
66
  "remove_invalid_values": false,
67
  "repetition_penalty": 1.0,
 
79
  "top_p": 1.0,
80
  "torch_dtype": null,
81
  "torchscript": false,
82
+ "transformers_version": "4.24.0",
83
  "typical_p": 1.0,
84
  "use_bfloat16": false,
85
  "vocab_size": 49408
 
148
  "patch_size": 14,
149
  "prefix": null,
150
  "problem_type": null,
 
151
  "pruned_heads": {},
152
  "remove_invalid_values": false,
153
  "repetition_penalty": 1.0,
 
165
  "top_p": 1.0,
166
  "torch_dtype": null,
167
  "torchscript": false,
168
+ "transformers_version": "4.24.0",
169
  "typical_p": 1.0,
170
  "use_bfloat16": false
171
  },