1 Star 0 Fork 471

周胜凯 / mindformers

forked from MindSpore / mindformers 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
clip_vit_l_14@336.yaml 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
fengliangjun 提交于 2023-02-02 15:25 . add clip-v4
model:
arch:
type: CLIPModel
model_config:
type: CLIPConfig
text_config:
type: CLIPTextConfig
vocab_size: 49408
hidden_size: 768
intermediate_size: 2048
num_hidden_layers: 12
num_attention_heads: 12
max_position_embeddings: 77
hidden_act: "quick_gelu"
attention_dropout: 0.0
drop_out: 0.0
initializer_range: 0.02
initializer_factor: 1.0
vision_config:
type: CLIPVisionConfig
hidden_size: 1024
intermediate_size: 3072
num_hidden_layers: 24
num_attention_heads: 16
image_size: 336
patch_size: 14
hidden_act: "quick_gelu"
dropout: 0.0
attention_dropout: 0.0
initializer_range: 0.02
initializer_factor: 1.0
dtype: float16 # type of tensors
checkpoint_name_or_path: clip_vit_l_14@336 # the loaded model type
projection_dim: 768 # feature dims
logit_scale_init_value: 2.6592
processor:
type: CLIPProcessor
image_processor:
type: CLIPImageProcessor
image_resolution: 336 # input image size
tokenizer:
type: CLIPTokenizer
pad_token: '!' # corresponding token id is 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/zsk423200/mindformers.git
git@gitee.com:zsk423200/mindformers.git
zsk423200
mindformers
mindformers
r0.3

搜索帮助

344bd9b3 5694891 D2dac590 5694891