Rocketknight1 HF Staff commited on
Commit
4c5a695
·
verified ·
1 Parent(s): 9f5f904

Upload 5 files

Browse files
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./",
3
+ "architectures": [
4
+ "FakeCustomModel"
5
+ ],
6
+ "auto_map": {
7
+ "AutoConfig": "configuration_fake_custom.FakeCustomConfig",
8
+ "AutoModel": "modeling_fake_custom.FakeCustomModel",
9
+ "AutoModelForMaskGeneration": "modeling_fake_custom.FakeCustomModel"
10
+ },
11
+ "initializer_range": 0.02,
12
+ "mask_decoder_config": {
13
+ "model_type": ""
14
+ },
15
+ "model_type": "fakecustom",
16
+ "prompt_encoder_config": {
17
+ "model_type": ""
18
+ },
19
+ "torch_dtype": "float32",
20
+ "transformers_version": "4.45.0.dev0",
21
+ "vision_config": {
22
+ "dropout": 0.0,
23
+ "global_attn_indexes": [
24
+ 0
25
+ ],
26
+ "hidden_size": 32,
27
+ "initializer_factor": 1.0,
28
+ "intermediate_size": 128,
29
+ "mlp_dim": 64,
30
+ "model_type": "",
31
+ "num_attention_heads": 4,
32
+ "num_hidden_layers": 2,
33
+ "projection_dim": 32
34
+ }
35
+ }
configuration_fake_custom.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from transformers import SamConfig
2
+
3
+
4
+ class FakeCustomConfig(SamConfig):
5
+ model_type = "fakecustom"
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d81d37a065d8ef6416633b7c48c72c81ab2d635190a0c10be39527e80d2b1cc5
3
+ size 19377232
modeling_fake_custom.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from transformers import SamModel
2
+ from .configuration_fake_custom import FakeCustomConfig
3
+
4
+ class FakeCustomModel(SamModel):
5
+ config_class = FakeCustomConfig
preprocessor_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_normalize": true,
4
+ "do_pad": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.485,
9
+ 0.456,
10
+ 0.406
11
+ ],
12
+ "image_processor_type": "SamImageProcessor",
13
+ "image_std": [
14
+ 0.229,
15
+ 0.224,
16
+ 0.225
17
+ ],
18
+ "mask_pad_size": {
19
+ "height": 256,
20
+ "width": 256
21
+ },
22
+ "mask_size": {
23
+ "longest_edge": 256
24
+ },
25
+ "pad_size": {
26
+ "height": 1024,
27
+ "width": 1024
28
+ },
29
+ "processor_class": "SamProcessor",
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "longest_edge": 1024
34
+ }
35
+ }