From 32ca1c1ef5d33242e5e7c0433bcd773c082f0260 Mon Sep 17 00:00:00 2001 From: Yih-Dar SHIEH Date: Wed, 23 Nov 2022 19:15:55 +0000 Subject: [PATCH] Upload tiny models for GLPNForDepthEstimation --- config.json | 62 ++++++++++++++++++++++++++++++++++++++++ preprocessor_config.json | 9 ++++++ pytorch_model.bin | 3 ++ 3 files changed, 74 insertions(+) create mode 100644 config.json create mode 100644 preprocessor_config.json create mode 100644 pytorch_model.bin diff --git a/config.json b/config.json new file mode 100644 index 0000000..ecddfc1 --- /dev/null +++ b/config.json @@ -0,0 +1,62 @@ +{ + "architectures": [ + "GLPNForDepthEstimation" + ], + "attention_probs_dropout_prob": 0.1, + "decoder_hidden_size": 16, + "depths": [ + 2, + 2, + 2, + 2 + ], + "drop_path_rate": 0.1, + "head_in_index": -1, + "hidden_act": "gelu", + "hidden_dropout_prob": 0.1, + "hidden_sizes": [ + 16, + 32, + 64, + 128 + ], + "image_size": 64, + "initializer_range": 0.02, + "layer_norm_eps": 1e-06, + "max_depth": 10, + "mlp_ratios": [ + 4, + 4, + 4, + 4 + ], + "model_type": "glpn", + "num_attention_heads": [ + 1, + 2, + 4, + 8 + ], + "num_channels": 3, + "num_encoder_blocks": 4, + "patch_sizes": [ + 7, + 3, + 3, + 3 + ], + "sr_ratios": [ + 8, + 4, + 2, + 1 + ], + "strides": [ + 4, + 2, + 2, + 2 + ], + "torch_dtype": "float32", + "transformers_version": "4.25.0.dev0" +} diff --git a/preprocessor_config.json b/preprocessor_config.json new file mode 100644 index 0000000..6d123d6 --- /dev/null +++ b/preprocessor_config.json @@ -0,0 +1,9 @@ +{ + "crop_size": 64, + "do_rescale": true, + "do_resize": true, + "image_processor_type": "GLPNImageProcessor", + "resample": 2, + "size": 64, + "size_divisor": 32 +} diff --git a/pytorch_model.bin b/pytorch_model.bin new file mode 100644 index 0000000..613bc43 --- /dev/null +++ b/pytorch_model.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0474d49e2d21e95dc591702072e67fa02bc30ec4900378818d4cf2f7094a3921 +size 3165365