Yang An
721764028e
Add Chinese-CLIP implementation (#20368)
* init chinese-clip model from clip
* init model tests and docs
* implement chinese-clip into hf
* implement chinese-clip into hf
* implement chinese-clip into hf
* implement chinese-clip into hf
* implement chinese-clip into hf
* update usecase example in model implementation
* fix codestyle
* fix model_type typo in readme
* add placeholder in doc
* add placeholder in doc
* update the init script
* update usecase
* fix codestyle
* update testcase
* update testcase
* update testcase
* update testcase
* update testcase
* update testcase
* update testcase
* update testcase
* update testcase
* update testcase
* update testcase
* update testcase
* forward the convert_rgb
* update testcase
* update testcase
* update testcase
* merge the recent update from clip about model_input_name property
* update the doc
* update the doc
* update the doc
* update the doc
* remove unused imports
* reformat code style
* update the doc
* fix isort style
* bypass a weird failed unit test which is unrelated with my PR
* update the doc
* implement independent vision config class
* implement independent vision model class
* fix refactor bug
* fix refactor bug
* fix refactor bug
* make style
* fix refactor bug
* make style
* fix refactor bug
* fix refactor bug
* make style
* fix refactor bug
* fix refactor bug
* doc-build restyle
* implement independent text config class
* implement independent text model class
* implement independent text model class
* make style
* make fix-copies
* fix refactor bug
* fix refactor bug
* fix refactor bug
* fix refactor bug
* fix refactor bug
* fix refactor bug
* fix refactor bug
* fix refactor bug
* fix refactor bug
* fix refactor bug
* make style
* update doc
* black and isort
* update doc
* Update src/transformers/models/chinese_clip/configuration_chinese_clip.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/auto/tokenization_auto.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* modify the model type from chinese-clip to chinese_clip
* format the example comment of ChineseCLIPVisionConfig
* correct the copyright comment
* fix the tokenizer specification
* add copied from for loss function
* remove unused class
* update CHINESE_CLIP_TEXT_INPUTS_DOCSTRING
* update CHINESE_CLIP_INPUTS_DOCSTRING
* update doc
* update doc
* update code comment in config
* update copied from statement
* make style
* rename the doc file
* add copied statement
* remove unused attention_mask, causal_attention_mask in ChineseCLIPVisionEncoder
* remove ChineseCLIPTextPreTrainedModel
* fix bug
* fix bug
* fix bug
* update doc
* make style
* Update src/transformers/models/chinese_clip/configuration_chinese_clip.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/chinese_clip/configuration_chinese_clip.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* update ChineseCLIPImageProcessor in image_processing_auto
* fix config_class of chinesecliptextmodel
* fix the test case
* update the docs
* remove the copied from comment for ChineseCLIPTextModel, since it has diverged from BertModel with customed config_class
* update the testcase
* final fix
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2022-11-30 19:22:23 +01:00
..
2022-11-02 17:38:44 +01:00
2022-11-21 18:58:54 +01:00
2022-11-14 01:04:26 -05:00
2022-11-15 11:33:09 -05:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-11-02 11:57:36 +00:00
2022-11-15 10:46:34 +01:00
2022-11-09 15:34:08 +00:00
2022-10-21 10:04:49 -04:00
2022-05-03 14:42:02 +02:00
2022-10-04 16:13:22 +02:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-05-03 14:42:02 +02:00
2022-07-29 08:09:09 -04:00
2022-05-03 14:42:02 +02:00
2022-11-02 17:38:44 +01:00
2022-11-30 19:22:23 +01:00
2022-11-15 17:50:07 +01:00
2022-11-28 10:41:28 +01:00
2022-11-09 15:34:08 +00:00
2022-11-30 10:24:03 +00:00
2022-10-04 16:12:03 +02:00
2022-11-02 11:57:36 +00:00
2022-05-03 14:42:02 +02:00
2022-11-09 15:34:08 +00:00
2022-10-11 18:16:52 +01:00
2022-11-15 10:46:34 +01:00
2022-06-08 15:30:41 +02:00
2022-11-02 15:45:38 -04:00
2022-11-09 15:34:08 +00:00
2022-11-30 10:24:03 +00:00
2022-11-15 11:06:01 +01:00
2022-11-30 10:24:03 +00:00
2022-11-18 13:08:26 -05:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-11-29 10:38:01 +00:00
2022-07-29 08:09:09 -04:00
2022-11-02 11:57:36 +00:00
2022-11-02 17:38:44 +01:00
2022-11-09 15:34:08 +00:00
2022-11-15 10:46:34 +01:00
2022-11-28 13:19:28 +00:00
2022-11-02 17:38:44 +01:00
2022-11-11 16:55:59 +00:00
2022-10-10 15:03:46 -04:00
2022-11-09 15:34:08 +00:00
2022-07-22 18:05:38 +01:00
2022-05-03 14:42:02 +02:00
2022-11-30 14:47:54 +00:00
2022-11-09 15:34:08 +00:00
2022-07-01 09:04:38 -04:00
2022-09-14 10:17:40 -04:00
2022-11-09 15:34:08 +00:00
2022-11-04 18:01:41 +01:00
2022-05-03 14:42:02 +02:00
2022-09-09 20:01:02 +01:00
2022-11-02 17:38:44 +01:00
2022-11-09 15:34:08 +00:00
2022-11-10 21:05:27 +01:00
2022-09-12 19:30:27 +01:00
2022-11-10 19:29:20 +00:00
2022-11-10 19:29:20 +00:00
2022-11-14 01:04:26 -05:00
2022-11-09 15:34:08 +00:00
2022-11-02 11:57:36 +00:00
2022-11-09 15:34:08 +00:00
2022-11-02 17:38:44 +01:00
2022-11-09 15:34:08 +00:00
2022-08-01 11:09:47 -04:00
2022-07-22 18:05:38 +01:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-11-10 19:29:20 +00:00
2022-11-30 10:24:03 +00:00
2022-11-15 11:33:09 -05:00
2022-07-29 08:09:09 -04:00
2022-11-10 19:29:20 +00:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-05-12 16:25:55 -04:00
2022-09-09 20:01:02 +01:00
2022-11-21 10:21:28 -05:00
2022-11-14 01:00:10 -05:00
2022-11-02 11:57:36 +00:00
2022-05-03 14:42:02 +02:00
2022-07-18 15:26:21 +02:00
2022-11-09 15:34:08 +00:00
2022-11-18 13:08:26 -05:00
2022-11-09 15:34:08 +00:00
2022-07-29 08:09:09 -04:00
2022-05-03 14:42:02 +02:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-11-30 10:24:03 +00:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-11-04 19:14:56 +00:00
2022-05-03 14:42:02 +02:00
2022-11-22 17:56:04 +00:00
2022-11-02 11:57:36 +00:00
2022-11-09 15:34:08 +00:00
2022-05-03 14:42:02 +02:00
2022-06-10 18:50:29 +02:00
2022-05-12 16:25:55 -04:00
2022-11-09 15:34:08 +00:00
2022-08-30 14:03:28 +02:00
2022-05-03 14:42:02 +02:00
2022-11-28 17:20:24 +01:00
2022-05-17 14:33:13 +02:00
2022-11-15 10:46:34 +01:00
2022-11-28 17:08:57 +01:00
2022-10-10 14:54:54 -04:00
2022-11-02 11:57:36 +00:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-11-09 15:34:08 +00:00
2022-11-10 19:29:20 +00:00
2022-11-09 15:34:08 +00:00
2022-06-24 16:26:14 +02:00
2022-05-03 14:42:02 +02:00
2022-09-07 16:22:09 +02:00
2022-07-27 11:14:47 -04:00
2022-11-21 15:36:49 +01:00
2022-11-28 10:21:42 -05:00
2022-11-09 15:34:08 +00:00
2022-11-14 01:04:26 -05:00
2022-07-29 08:09:09 -04:00
2022-10-12 14:00:17 -04:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-05-03 14:42:02 +02:00
2022-05-03 14:42:02 +02:00
2022-06-09 09:50:03 +02:00
2022-11-02 11:57:36 +00:00
2022-11-02 11:57:36 +00:00
2022-11-09 15:34:08 +00:00
2022-11-10 19:29:20 +00:00
2022-10-10 14:54:36 -04:00
2022-11-15 11:06:01 +01:00
2022-09-16 16:38:08 +01:00
2022-10-27 14:38:59 +02:00
2022-11-10 19:29:20 +00:00
2022-05-17 18:20:36 +02:00
2022-05-03 14:42:02 +02:00
2022-11-10 19:29:20 +00:00
2022-05-03 14:42:02 +02:00
2022-11-30 15:07:28 +01:00
2022-11-04 18:01:41 +01:00
2022-11-09 15:34:08 +00:00
2022-11-09 15:34:08 +00:00
2022-05-12 16:25:55 -04:00
2022-05-12 16:25:55 -04:00
2022-11-15 10:46:34 +01:00
2022-11-09 15:34:08 +00:00
2022-11-30 10:24:03 +00:00
2022-06-08 15:30:41 +02:00
2022-05-03 14:42:02 +02:00