add test
Browse files- image_encoder/config.json +23 -0
- image_processor/preprocessor_config.json +4 -0
- image_projection/config.json +9 -0
- model_index.json +16 -0
image_encoder/config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "./image_encoder",
|
3 |
+
"architectures": [
|
4 |
+
"CLIPVisionModelWithProjection"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"dropout": 0.0,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_size": 1280,
|
10 |
+
"image_size": 224,
|
11 |
+
"initializer_factor": 1.0,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 5120,
|
14 |
+
"layer_norm_eps": 1e-05,
|
15 |
+
"model_type": "clip_vision_model",
|
16 |
+
"num_attention_heads": 16,
|
17 |
+
"num_channels": 3,
|
18 |
+
"num_hidden_layers": 32,
|
19 |
+
"patch_size": 14,
|
20 |
+
"projection_dim": 1024,
|
21 |
+
"torch_dtype": "float16",
|
22 |
+
"transformers_version": "4.28.0.dev0"
|
23 |
+
}
|
image_processor/preprocessor_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"feature_extractor_type": "CLIPFeatureExtractor",
|
3 |
+
"image_processor_type": "CLIPImageProcessor"
|
4 |
+
}
|
image_projection/config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"ImageProjModel"
|
4 |
+
],
|
5 |
+
"cross_attention_dim": 768,
|
6 |
+
"clip_embeddings_dim": 1024,
|
7 |
+
"clip_extra_context_tokens": 4
|
8 |
+
}
|
9 |
+
|
model_index.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_class_name": "IPAdapterPipeline",
|
3 |
+
"_diffusers_version": "0.21.0.dev0",
|
4 |
+
"feature_extractor": [
|
5 |
+
"transformers",
|
6 |
+
"CLIPImageProcessor"
|
7 |
+
],
|
8 |
+
"image_encoder": [
|
9 |
+
"transformers",
|
10 |
+
"CLIPVisionModelWithProjection"
|
11 |
+
],
|
12 |
+
"image_projection": [
|
13 |
+
"ip_adapter",
|
14 |
+
"ImageProjModel"
|
15 |
+
]
|
16 |
+
}
|