Mitchell Wortsman commited on
Commit
03d254f
1 Parent(s): f958ec6

test add README

Browse files
Files changed (1) hide show
  1. README.md +144 -0
README.md CHANGED
@@ -1,3 +1,147 @@
1
  ---
2
  license: mit
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ widget:
4
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/cat-dog-music.png
5
+ candidate_labels: playing music, playing sports
6
+ example_title: Cat & Dog
7
  ---
8
+ # Model Card for CLIP ViT-bigG/14 - LAION-2B
9
+
10
+ # Table of Contents
11
+
12
+ 1. [Model Details](#model-details)
13
+ 2. [Uses](#uses)
14
+ 3. [Training Details](#training-details)
15
+ 4. [Evaluation](#evaluation)
16
+ 5. [Acknowledgements](#acknowledgements)
17
+ 6. [Citation](#citation)
18
+ 7. [How To Get Started With the Model](#how-to-get-started-with-the-model)
19
+
20
+
21
+ # Model Details
22
+
23
+ ## Model Description
24
+
25
+ A CLIP ViT-bigG/14 model trained with the LAION-2B English subset of LAION-5B (https://laion.ai/blog/laion-5b/) using OpenCLIP (https://github.com/mlfoundations/open_clip).
26
+
27
+ Model training done by Mitchell Wortsman on the [stability.ai](https://stability.ai/) cluster.
28
+
29
+ # Uses
30
+
31
+ As per the original [OpenAI CLIP model card](https://github.com/openai/CLIP/blob/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1/model-card.md), this model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such model.
32
+
33
+ The OpenAI CLIP paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis. Additionally, the LAION-5B blog (https://laion.ai/blog/laion-5b/) and upcoming paper include additional discussion as it relates specifically to the training dataset.
34
+
35
+ ## Direct Use
36
+
37
+ Zero-shot image classification, image and text retrieval, among others.
38
+
39
+ ## Downstream Use
40
+
41
+ Image classification and other image task fine-tuning, linear probe image classification, image generation guiding and conditioning, among others.
42
+
43
+ ## Out-of-Scope Use
44
+
45
+ As per the OpenAI models,
46
+
47
+ **Any** deployed use case of the model - whether commercial or not - is currently out of scope. Non-deployed use cases such as image search in a constrained environment, are also not recommended unless there is thorough in-domain testing of the model with a specific, fixed class taxonomy. This is because our safety assessment demonstrated a high need for task specific testing especially given the variability of CLIP’s performance with different class taxonomies. This makes untested and unconstrained deployment of the model in any use case currently potentially harmful.
48
+
49
+ Certain use cases which would fall under the domain of surveillance and facial recognition are always out-of-scope regardless of performance of the model. This is because the use of artificial intelligence for tasks such as these can be premature currently given the lack of testing norms and checks to ensure its fair use.
50
+
51
+ Since the model has not been purposefully trained in or evaluated on any languages other than English, its use should be limited to English language use cases.
52
+
53
+ Further the above notice, the LAION-5B dataset used in training of these models has additional considerations, see below.
54
+
55
+ # Training Details
56
+
57
+ ## Training Data
58
+
59
+ This model was trained with the 2 Billion sample English subset of LAION-5B (https://laion.ai/blog/laion-5b/).
60
+ Fine-tuning was also partially done on LAION-A, a 900M subset of LAION-2B filtered with aesthetic V2 4.5+ and phash deduplicated.
61
+
62
+ **IMPORTANT NOTE:** The motivation behind dataset creation is to democratize research and experimentation around large-scale multi-modal model training and handling of uncurated, large-scale datasets crawled from publically available internet. Our recommendation is therefore to use the dataset for research purposes. Be aware that this large-scale dataset is uncurated. Keep in mind that the uncurated nature of the dataset means that collected links may lead to strongly discomforting and disturbing content for a human viewer. Therefore, please use the demo links with caution and at your own risk. It is possible to extract a “safe” subset by filtering out samples based on the safety tags (using a customized trained NSFW classifier that we built). While this strongly reduces the chance for encountering potentially harmful content when viewing, we cannot entirely exclude the possibility for harmful content being still present in safe mode, so that the warning holds also there. We think that providing the dataset openly to broad research and other interested communities will allow for transparent investigation of benefits that come along with training large-scale models as well as pitfalls and dangers that may stay unreported or unnoticed when working with closed large datasets that remain restricted to a small community. Providing our dataset openly, we however do not recommend using it for creating ready-to-go industrial products, as the basic research about general properties and safety of such large-scale models, which we would like to encourage with this release, is still in progress.
63
+
64
+ ## Training Procedure
65
+
66
+ The training procedure will soon be discussed by a blog post on laion.ai.
67
+
68
+ # Evaluation
69
+
70
+ Evaluation done with code in the [LAION CLIP Benchmark suite](https://github.com/LAION-AI/CLIP_benchmark).
71
+
72
+ ## Testing Data, Factors & Metrics
73
+
74
+ ### Testing Data
75
+
76
+ The testing is performed with VTAB+ (A combination of VTAB (https://arxiv.org/abs/1910.04867) w/ additional robustness datasets) for classification and COCO and Flickr for retrieval.
77
+
78
+ **TODO** - more detail
79
+
80
+ ## Results
81
+
82
+ The model achieves a 80.1 zero-shot top-1 accuracy on ImageNet-1k.
83
+
84
+ An initial round of benchmarks have been performed on a wider range of datasets, and will soon be visible at https://github.com/LAION-AI/CLIP_benchmark/blob/main/benchmark/results.ipynb
85
+
86
+ **TODO** - create table for just this model's metrics.
87
+
88
+ # Acknowledgements
89
+
90
+ Acknowledging [stability.ai](https://stability.ai/) for the compute used to train this model.
91
+
92
+ # Citation
93
+
94
+ **BibTeX:**
95
+
96
+ In addition to forthcoming LAION-5B (https://laion.ai/blog/laion-5b/) paper, please cite:
97
+
98
+ OpenAI CLIP paper
99
+ ```
100
+ @inproceedings{Radford2021LearningTV,
101
+ title={Learning Transferable Visual Models From Natural Language Supervision},
102
+ author={Alec Radford and Jong Wook Kim and Chris Hallacy and A. Ramesh and Gabriel Goh and Sandhini Agarwal and Girish Sastry and Amanda Askell and Pamela Mishkin and Jack Clark and Gretchen Krueger and Ilya Sutskever},
103
+ booktitle={ICML},
104
+ year={2021}
105
+ }
106
+ ```
107
+
108
+ OpenCLIP software
109
+ ```
110
+ @software{ilharco_gabriel_2021_5143773,
111
+ author = {Ilharco, Gabriel and
112
+ Wortsman, Mitchell and
113
+ Wightman, Ross and
114
+ Gordon, Cade and
115
+ Carlini, Nicholas and
116
+ Taori, Rohan and
117
+ Dave, Achal and
118
+ Shankar, Vaishaal and
119
+ Namkoong, Hongseok and
120
+ Miller, John and
121
+ Hajishirzi, Hannaneh and
122
+ Farhadi, Ali and
123
+ Schmidt, Ludwig},
124
+ title = {OpenCLIP},
125
+ month = jul,
126
+ year = 2021,
127
+ note = {If you use this software, please cite it as below.},
128
+ publisher = {Zenodo},
129
+ version = {0.1},
130
+ doi = {10.5281/zenodo.5143773},
131
+ url = {https://doi.org/10.5281/zenodo.5143773}
132
+ }
133
+ ```
134
+
135
+ Scaling OpenCLIP paper
136
+ @article{cherti2022reproducible,
137
+ title={Reproducible scaling laws for contrastive language-image learning},
138
+ author={Cherti, Mehdi and Beaumont, Romain and Wightman, Ross and Wortsman, Mitchell and Ilharco, Gabriel and Gordon, Cade and Schuhmann, Christoph and Schmidt, Ludwig and Jitsev, Jenia},
139
+ journal={arXiv preprint arXiv:2212.07143},
140
+ year={2022}
141
+ }
142
+
143
+ # How to Get Started with the Model
144
+
145
+ Use the code below to get started with the model.
146
+
147
+ ** TODO ** - Hugging Face transformers, OpenCLIP, and timm getting started snippets