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-04-04 10:25:46 -04:00
2022-11-21 18:58:54 +01:00
2022-11-08 19:54:41 +00:00
2022-11-09 15:34:08 +00:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-04-29 17:42:15 -04:00
2022-04-04 10:25:46 -04:00
2022-11-01 11:09:53 -07:00
2022-04-04 10:25:46 -04:00
2022-11-04 11:32:44 -04:00
2022-11-04 11:32:44 -04:00
2022-11-04 11:32:44 -04:00
2022-11-04 11:32:44 -04:00
2022-11-07 09:19:04 -05:00
2022-04-04 10:25:46 -04:00
2022-04-13 11:36:54 +02:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-11-30 19:22:23 +01:00
2022-11-15 13:26:46 -05:00
2022-11-09 18:31:22 +01:00
2022-06-24 17:10:38 +02:00
2022-11-30 10:24:03 +00:00
2022-04-04 10:25:46 -04:00
2022-11-08 19:54:41 +00:00
2022-05-02 12:47:39 -04:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-06-08 14:03:18 +01:00
2022-05-10 16:21:44 -04:00
2022-11-15 13:26:07 -05:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-11-30 14:50:55 +00:00
2022-11-30 14:50:55 +00:00
2022-04-04 10:25:46 -04:00
2022-11-18 13:08:26 -05:00
2022-10-28 13:16:07 -07:00
2022-04-04 10:25:46 -04:00
2022-11-29 10:38:01 +00:00
2022-04-04 10:25:46 -04:00
2022-11-08 19:54:41 +00:00
2022-05-03 11:26:19 +02:00
2022-07-27 10:08:59 +02:00
2022-09-09 07:36:46 -04:00
2022-10-31 21:32:58 -04:00
2022-10-26 17:22:57 +02:00
2022-04-04 10:25:46 -04:00
2022-11-08 19:54:41 +00:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-11-29 10:02:40 -05:00
2022-04-04 10:25:46 -04:00
2022-09-14 10:17:40 -04:00
2022-05-24 09:31:10 -04:00
2022-11-09 15:34:08 +00:00
2022-09-29 10:48:04 +01:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-11-10 21:05:27 +01:00
2022-09-02 14:48:19 +02:00
2022-11-08 19:54:41 +00:00
2022-11-08 19:54:41 +00:00
2022-04-04 10:25:46 -04:00
2022-11-04 11:32:44 -04:00
2022-11-30 14:50:55 +00:00
2022-10-18 17:42:46 +02:00
2022-11-07 09:19:04 -05:00
2022-08-16 10:20:46 -05:00
2022-08-01 11:09:47 -04:00
2022-04-04 10:25:46 -04:00
2022-09-29 13:27:58 +02:00
2022-07-29 08:09:09 -04:00
2022-10-24 17:54:23 +02:00
2022-11-30 14:50:55 +00:00
2022-07-29 08:09:09 -04:00
2022-07-29 08:09:09 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-11-30 14:50:55 +00:00
2022-11-30 14:50:55 +00:00
2022-04-04 10:25:46 -04:00
2022-11-07 09:19:04 -05:00
2022-06-29 09:30:55 -04:00
2022-11-18 13:08:26 -05:00
2022-06-23 12:36:22 -04:00
2022-07-29 08:09:09 -04:00
2022-04-04 10:25:46 -04:00
2022-11-16 11:17:32 -05:00
2022-10-10 09:30:59 -04:00
2022-11-30 10:24:03 +00:00
2022-09-02 19:54:02 +02:00
2022-04-04 10:25:46 -04:00
2022-11-08 19:54:41 +00:00
2022-04-04 10:25:46 -04:00
2022-07-29 08:09:09 -04:00
2022-11-30 14:50:55 +00:00
2022-11-04 11:32:44 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-04-04 10:25:46 -04:00
2022-10-27 11:33:15 -07:00
2022-11-08 10:03:43 -05:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-11-09 15:34:08 +00:00
2022-11-03 14:18:45 +01:00
2022-07-29 08:09:09 -04:00
2022-11-07 09:19:04 -05:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-11-30 14:50:55 +00:00
2022-11-15 13:06:45 +01:00
2022-11-09 15:34:08 +00:00
2022-11-07 09:19:04 -05:00
2022-11-30 14:50:55 +00:00
2022-11-14 01:04:26 -05:00
2022-04-08 10:57:51 +02:00
2022-09-30 15:32:59 -04:00
2022-05-17 19:07:43 -04:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-06-21 10:24:50 +02:00
2022-05-17 00:43:16 +02:00
2022-05-17 00:43:16 +02:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-11-08 19:54:41 +00:00
2022-11-30 14:50:55 +00:00
2022-11-07 09:19:04 -05:00
2022-11-30 14:50:55 +00:00
2022-11-30 14:50:55 +00:00
2022-09-22 07:15:03 -04:00
2022-11-30 14:50:55 +00:00
2022-04-04 10:25:46 -04:00
2022-06-15 18:34:15 +02:00
2022-10-28 13:28:18 -07:00
2022-05-17 00:43:16 +02:00
2022-11-09 15:34:08 +00:00
2022-09-19 19:22:34 +02:00
2022-08-24 10:51:05 +01:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2022-11-30 14:50:55 +00:00
2022-04-04 10:25:46 -04:00