Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- InternVL-main/clip_benchmark/benchmark/README.md +57 -0
- InternVL-main/clip_benchmark/benchmark/benchmark.csv +508 -0
- InternVL-main/clip_benchmark/benchmark/dataset_type.csv +42 -0
- InternVL-main/clip_benchmark/benchmark/datasets.txt +39 -0
- InternVL-main/clip_benchmark/benchmark/datasets_multilingual.txt +13 -0
- InternVL-main/clip_benchmark/benchmark/models.txt +13 -0
- InternVL-main/clip_benchmark/benchmark/results.ipynb +0 -0
- InternVL-main/clip_benchmark/benchmark/webdatasets.txt +41 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/__init__.py +0 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/ar_classnames.json +1004 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/ar_zeroshot_classification_templates.json +59 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/birdsnap.py +235 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/builder.py +1012 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/caltech101.py +243 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/cn_classnames.json +1004 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/cn_zeroshot_classification_templates.json +84 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/cupl_prompts.json +0 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/en_classnames.json +1701 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/en_zeroshot_classification_templates.json +298 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/flickr.py +59 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/imagenetv2.py +98 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/it_classnames.json +1004 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/it_zeroshot_classification_templates.json +53 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/jp_classnames.json +1004 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/jp_zeroshot_classification_templates.json +41 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/kitti.py +205 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/multilingual_mscoco.py +95 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/objectnet.py +71 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/tfds.py +51 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/tools.py +22 -0
- InternVL-main/clip_benchmark/clip_benchmark/datasets/voc2007.py +251 -0
- InternVL-main/clip_benchmark/clip_benchmark/models/intern_vit_6b/configuration_intern_vit.py +117 -0
- InternVL-main/clip_benchmark/clip_benchmark/models/intern_vit_6b/flash_attention.py +75 -0
- InternVL-main/clip_benchmark/clip_benchmark/models/intern_vit_6b/modeling_intern_vit.py +342 -0
- InternVL-main/clip_benchmark/clip_benchmark/models/internvl_huggingface/configuration_intern_vit.py +117 -0
- InternVL-main/clip_benchmark/clip_benchmark/models/internvl_huggingface/flash_attention.py +76 -0
- InternVL-main/clip_benchmark/clip_benchmark/models/internvl_huggingface/modeling_intern_vit.py +342 -0
- InternVL/InternVL_2_5/.gitattributes +37 -0
- InternVL/InternVL_2_5/README.md +677 -0
- InternVL/InternVL_2_5/added_tokens.json +11 -0
- InternVL/InternVL_2_5/config.json +145 -0
- InternVL/InternVL_2_5/configuration_intern_vit.py +120 -0
- InternVL/InternVL_2_5/configuration_internlm2.py +150 -0
- InternVL/InternVL_2_5/configuration_internvl_chat.py +96 -0
- InternVL/InternVL_2_5/conversation.py +391 -0
- InternVL/InternVL_2_5/eval_llm_benchmark.log +61 -0
- InternVL/InternVL_2_5/generation_config.json +8 -0
- InternVL/InternVL_2_5/modeling_intern_vit.py +430 -0
- InternVL/InternVL_2_5/modeling_internlm2.py +1415 -0
- InternVL/InternVL_2_5/modeling_internvl_chat.py +349 -0
InternVL-main/clip_benchmark/benchmark/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Benchmark
|
| 2 |
+
|
| 3 |
+
the benchmark results are available in [benchmark.csv](benchmark.csv).
|
| 4 |
+
You can visualize the results in the [notebook](results.ipynb)
|
| 5 |
+
|
| 6 |
+
# How to reproduce the CLIP benchmark results
|
| 7 |
+
|
| 8 |
+
## Webdataset evaluation: VTAB+ and retrieval datasets (MSCOCO, Flickr8k, Flickr30k)
|
| 9 |
+
|
| 10 |
+
```bash
|
| 11 |
+
clip_benchmark eval --pretrained_model openai openclip_base \
|
| 12 |
+
--dataset "webdatasets.txt" \
|
| 13 |
+
--dataset_root "https://huggingface.co/datasets/clip-benchmark/wds_{dataset_cleaned}/tree/main" \
|
| 14 |
+
--output "benchmark_{dataset}_{pretrained}_{model}_{language}_{task}.json"
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
Once the evaluation finishes, you can construct a CSV with all the results:
|
| 18 |
+
|
| 19 |
+
```bash
|
| 20 |
+
clip_benchmark build benchmark_*.json --output benchmark.csv
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
*Notes:* Pascal VOC 2007 multilabel is not yet included in the webdataset test suite. Multilingual support with webdataset is in progress.
|
| 24 |
+
|
| 25 |
+
## Alternative: Local download
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
clip_benchmark eval --pretrained_model openai openclip_base --dataset vtab+ retrieval \
|
| 29 |
+
--dataset_root "clip_benchmark_datasets/{dataset}" \
|
| 30 |
+
--output "benchmark_{dataset}_{pretrained}_{model}_{language}_{task}.json"
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
(Change `--dataset_root` accordingly)
|
| 34 |
+
|
| 35 |
+
## Multilingual ImageNet benchmark
|
| 36 |
+
|
| 37 |
+
To run the multilingual ImageNet benchmark, use:
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
clip_benchmark eval --pretrained_model openclip_multilingual openclip_base openai --dataset imagenet1k --language cn it jp en ar\
|
| 41 |
+
--dataset_root "clip_benchmark_datasets/{dataset}" \
|
| 42 |
+
--output "multilingual_{dataset}_{pretrained}_{model}_{language}_{task}.json"
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
(Change `--dataset_root` accordingly)
|
| 46 |
+
|
| 47 |
+
## Multilingual MS-COCO benchmark
|
| 48 |
+
|
| 49 |
+
To run the multilingual MS-COCO benchmark, use:
|
| 50 |
+
|
| 51 |
+
```bash
|
| 52 |
+
clip_benchmark eval --pretrained_model openclip_multilingual openclip_base openai --dataset multilingual_mscoco_captions --language es it ko pl ru tr zh en \
|
| 53 |
+
--dataset_root "clip_benchmark_datasets/{dataset}" \
|
| 54 |
+
--output "multilingual_{dataset}_{pretrained}_{model}_{language}_{task}.json"
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
(Change `--dataset_root` accordingly)
|
InternVL-main/clip_benchmark/benchmark/benchmark.csv
ADDED
|
@@ -0,0 +1,508 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
acc1,acc5,mean_per_class_recall,dataset,model,pretrained,task,mean_average_precision,image_retrieval_recall@5,text_retrieval_recall@5,model_fullname
|
| 2 |
+
0.0232340494791666,0.1152615017361111,0.0242046402834269,vtab/dsprites_label_orientation,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 3 |
+
0.4460852605182502,0.9469211479520758,0.3940612716631316,fer2013,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 4 |
+
0.7738666666666667,0.9362666666666668,0.7345750490593081,imagenet-a,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 5 |
+
0.4457446808510638,0.7585106382978724,0.449468085106383,vtab/dtd,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 6 |
+
0.7521562425290105,0.9608106368501388,0.7512820500659019,sun397,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 7 |
+
,,,voc2007_multilabel,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,0.796263575553894,,,ViT-B-32 laion2b_s34b_b79k
|
| 8 |
+
0.7557,0.9386,0.7554000000000001,vtab/cifar100,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 9 |
+
0.665,0.89844,0.66506,imagenet1k,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 10 |
+
0.1889597536837475,0.819793270288102,0.1681683759314615,vtab/dmlab,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 11 |
+
0.4955,0.8497,0.5259367109048434,mnist,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 12 |
+
0.5175536361103371,0.9651713569239344,0.5055924943171644,fer2013,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 13 |
+
0.6246666789267521,0.91313422954558,0.6346910684418603,sun397,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 14 |
+
0.9070591441809758,0.995366584900518,0.9070894162634328,vtab/pets,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 15 |
+
0.5609659540775931,0.8069675376088677,0.5169427663206733,gtsrb,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 16 |
+
0.0313720703125,0.1469997829861111,0.0320098582855241,vtab/dsprites_label_x_position,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 17 |
+
0.3628226797787339,0.6565765212046711,0.4033487053539641,vtab/svhn,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 18 |
+
0.4362628661916072,0.7091844813935075,0.370358797280688,gtsrb,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 19 |
+
0.5535494775660725,0.9136447449293178,0.5591738787984386,vtab/svhn,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 20 |
+
0.4417465274038979,0.7008721869279638,0.4272611771980346,objectnet,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 21 |
+
0.7174074074074074,0.9561111111111112,0.7202760268647987,vtab/eurosat,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 22 |
+
0.501821060965954,0.7586698337292161,0.4394378810250903,gtsrb,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 23 |
+
0.9321340964840557,0.9978195693649496,0.9313974108097984,vtab/pets,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 24 |
+
0.4934283452098179,0.7430720506730008,0.4353727539920664,gtsrb,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 25 |
+
0.8522353714661407,0.963346482577252,0.944284654839904,vtab/caltech101,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 26 |
+
,,,flickr30k,ViT-B-32-quickgelu,laion400m_e32,zeroshot_retrieval,,0.8546000123023987,0.9409999847412108,ViT-B-32-quickgelu laion400m_e32
|
| 27 |
+
0.1178600823045267,0.5817283950617284,0.1208963734895024,vtab/smallnorb_label_elevation,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 28 |
+
0.76664,0.9485,0.76656,imagenet1k,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 29 |
+
0.7679,0.9386,0.7581398074696393,mnist,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 30 |
+
0.2883263009845288,,0.3645688070267072,vtab/kitti_closest_vehicle_distance,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 31 |
+
0.1854185418541854,0.4452445244524452,0.1875846702317291,fgvc_aircraft,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 32 |
+
0.0197618272569444,0.1133355034722222,0.0176459217575104,vtab/dsprites_label_orientation,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 33 |
+
,,,flickr8k,ViT-B-16-plus-240,laion400m_e32,zeroshot_retrieval,,0.873199999332428,0.9549999833106995,ViT-B-16-plus-240 laion400m_e32
|
| 34 |
+
0.551063829787234,0.8356382978723405,0.5499999999999999,vtab/dtd,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 35 |
+
0.8391,0.9729,0.8388,vtab/cifar100,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 36 |
+
0.482037037037037,0.935,0.493913656654034,vtab/eurosat,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 37 |
+
0.6828752642706131,0.8578630671653927,0.6628139602370955,vtab/flowers,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 38 |
+
0.5844813935075218,0.820744259699129,0.5442606899522975,gtsrb,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 39 |
+
0.50628662109375,,0.5062329426609509,vtab/pcam,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 40 |
+
0.6932,0.8887,0.6785851251044699,imagenet-r,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 41 |
+
0.2304230423042304,0.5295529552955296,0.2319696969696969,fgvc_aircraft,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 42 |
+
0.605010986328125,,0.605165824864527,vtab/pcam,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 43 |
+
,,,flickr8k,ViT-B-16,laion400m_e32,zeroshot_retrieval,,0.8575999736785889,0.9409999847412109,ViT-B-16 laion400m_e32
|
| 44 |
+
0.7835420393559929,0.9242153195641568,0.7862863094545812,vtab/flowers,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 45 |
+
0.9467,0.999,0.9466,vtab/cifar10,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 46 |
+
0.6961,0.9086,0.6957000000000001,imagenetv2,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 47 |
+
0.4345209817893903,0.707680126682502,0.400638686800972,gtsrb,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 48 |
+
0.0317789713541666,0.147705078125,0.0324921668671336,vtab/dsprites_label_x_position,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 49 |
+
0.7871,0.9505,0.7775130720394369,mnist,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 50 |
+
0.63334,0.88778,0.63284,imagenet1k,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 51 |
+
0.6031914893617021,0.8867021276595745,0.6042553191489363,vtab/dtd,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 52 |
+
0.985875,0.99975,0.9864999999999998,stl10,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 53 |
+
0.2636018957345971,0.5149289099526067,0.2629857819905213,country211,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 54 |
+
0.5132978723404256,0.7787234042553192,0.5095744680851063,vtab/dtd,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 55 |
+
0.4342160768689946,1.0,0.2167811161586062,vtab/diabetic_retinopathy,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 56 |
+
0.5512,0.8156,0.5509,imagenetv2,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 57 |
+
0.7105220361034315,0.8590014636526264,0.6857234783638442,vtab/flowers,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 58 |
+
0.6867793368519779,0.9372344925244128,0.6845985471139586,sun397,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 59 |
+
0.5016666666666667,0.959074074074074,0.511474800858698,vtab/eurosat,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 60 |
+
0.8468,0.9733,0.8471000000000001,vtab/cifar100,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 61 |
+
,,,voc2007_multilabel,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,0.801436722278595,,,ViT-H-14 laion2b_s32b_b79k
|
| 62 |
+
0.9172,0.9975,0.9172,vtab/cifar10,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 63 |
+
0.6981352410026298,0.9398183055335896,0.6849982147927691,sun397,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 64 |
+
0.77972,0.95216,0.77952,imagenet1k,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 65 |
+
0.029541015625,0.1558973524305555,0.0292117961574083,vtab/dsprites_label_x_position,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 66 |
+
0.5,0.7502771179730799,0.4499584478173962,gtsrb,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 67 |
+
0.7590333333333333,0.9128666666666668,0.7444515544684158,imagenet-r,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 68 |
+
0.4690721649484536,0.931178601281694,0.4334946917742944,fer2013,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 69 |
+
0.485626220703125,,0.4856418903784925,vtab/pcam,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 70 |
+
0.9438539111474517,0.9986372308530936,0.9434557685576204,vtab/pets,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 71 |
+
,,,flickr8k,ViT-L-14,laion400m_e32,zeroshot_retrieval,,0.8984000086784363,0.9649999737739563,ViT-L-14 laion400m_e32
|
| 72 |
+
0.0972839506172839,0.5397530864197531,0.0973286727349915,vtab/smallnorb_label_elevation,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 73 |
+
0.5159912109375,,0.5157975788193991,vtab/pcam,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 74 |
+
0.7824519230769231,0.9688835470085472,0.8629106820310023,voc2007,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 75 |
+
0.0293918185763888,0.150390625,0.0306791200330755,vtab/dsprites_label_x_position,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 76 |
+
0.5710666666666666,0.8348,0.5639196371233688,imagenet-a,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 77 |
+
0.6408566721581549,,0.6410094956864107,renderedsst2,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 78 |
+
0.1134156378600823,0.5579423868312757,0.1146512139135114,vtab/smallnorb_label_elevation,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 79 |
+
0.1590499230261711,0.8403782713877281,0.1701282125753662,vtab/dmlab,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 80 |
+
,,,voc2007_multilabel,ViT-B-32,laion2b_e16,zeroshot_classification,0.7927550077438354,,,ViT-B-32 laion2b_e16
|
| 81 |
+
,,,mscoco_captions,ViT-B-16,laion400m_e32,zeroshot_retrieval,,0.6364254355430603,0.7961999773979187,ViT-B-16 laion400m_e32
|
| 82 |
+
0.758985200845666,0.8894129126687266,0.7455642498757189,vtab/flowers,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 83 |
+
,,,voc2007_multilabel,ViT-B-32,openai,zeroshot_classification,0.7601363658905029,,,ViT-B-32 openai
|
| 84 |
+
0.6968,0.9081,0.6974,imagenetv2,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 85 |
+
0.8893431452711911,0.9940038157536112,0.884512216368383,vtab/pets,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 86 |
+
0.7021,0.9244,0.703,vtab/cifar100,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 87 |
+
0.5072222222222222,0.9255555555555556,0.489609055911575,vtab/eurosat,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 88 |
+
0.7067545304777595,,0.7068315384169996,renderedsst2,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 89 |
+
0.665743087897188,0.8816640138340309,0.6655023529411764,imagenet_sketch,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 90 |
+
0.5155555555555555,0.9201851851851852,0.526225901185735,vtab/eurosat,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 91 |
+
,,,flickr30k,ViT-B-32,openai,zeroshot_retrieval,,0.8338000178337097,0.9490000009536744,ViT-B-32 openai
|
| 92 |
+
0.1593333333333333,0.9299333333333332,0.1673057808855792,vtab/clevr_closest_object_distance,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 93 |
+
0.7464,0.9285,0.7471,vtab/cifar100,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 94 |
+
,,,mscoco_captions,ViT-L-14,laion400m_e32,zeroshot_retrieval,,0.6805678009986877,0.8216000199317932,ViT-L-14 laion400m_e32
|
| 95 |
+
0.9307713273371492,0.9980921231943308,0.9330900923082088,vtab/pets,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 96 |
+
0.6188,0.8745,0.6202000000000001,imagenetv2,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 97 |
+
0.4230383776454636,0.7030792509186661,0.4230898039215686,imagenet_sketch,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 98 |
+
0.7910657051282052,0.9600026709401708,0.8052125971178338,voc2007,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 99 |
+
0.1674950516824279,0.8040906091928745,0.1782001238774596,vtab/dmlab,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 100 |
+
0.8310322156476002,0.9529914529914528,0.903296243135675,vtab/caltech101,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 101 |
+
0.1094650205761317,0.5571193415637861,0.1098932195729559,vtab/smallnorb_label_elevation,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 102 |
+
0.5716,0.8386,0.5721,imagenetv2,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 103 |
+
0.1080658436213991,0.5204115226337449,0.108510287776451,vtab/smallnorb_label_elevation,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 104 |
+
0.8982,0.9963,0.8995000000000001,vtab/cifar10,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 105 |
+
0.9381302807304442,0.9986372308530936,0.9372081115891412,vtab/pets,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 106 |
+
0.5819,0.8386,0.5815,imagenetv2,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 107 |
+
0.6666666666666666,0.941904761904762,0.6759805529181834,vtab/resisc45,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 108 |
+
,,,voc2007_multilabel,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,0.7846916913986206,,,ViT-B-16-plus-240 laion400m_e32
|
| 109 |
+
0.5363831083338246,0.7926467409459804,0.53684,imagenet_sketch,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 110 |
+
0.7930605646063923,0.986693197363512,0.79277195221544,cars,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 111 |
+
0.6457990115321252,,0.6459400874297956,renderedsst2,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 112 |
+
0.6445715707001617,0.9434149981345604,0.6469166001999892,cars,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 113 |
+
0.503753662109375,,0.5035515136049098,vtab/pcam,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 114 |
+
0.5706822372464659,0.9138752304855562,0.5886888789913961,vtab/svhn,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 115 |
+
0.7761084401709402,0.9418402777777778,0.8508423918048074,voc2007,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 116 |
+
0.1884360189573459,0.4163507109004739,0.1883412322274882,country211,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 117 |
+
0.97075,0.999375,0.971875,stl10,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 118 |
+
0.1508247195953375,0.8088849791071036,0.1720986035113953,vtab/dmlab,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 119 |
+
0.2629716428404031,1.0,0.2194476579174435,vtab/diabetic_retinopathy,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 120 |
+
0.4630454824830977,0.817340196681008,0.4869931863892911,vtab/svhn,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 121 |
+
,,,mscoco_captions,ViT-B-32,laion2b_e16,zeroshot_retrieval,,0.6467413306236267,0.7950000166893005,ViT-B-32 laion2b_e16
|
| 122 |
+
0.270042194092827,,0.3517916468296155,vtab/kitti_closest_vehicle_distance,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 123 |
+
0.7082,0.9169,0.709,imagenetv2,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 124 |
+
0.6352380952380953,0.9225396825396824,0.6419889996880412,vtab/resisc45,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 125 |
+
0.5404255319148936,0.8398936170212766,0.5367021276595745,vtab/dtd,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 126 |
+
0.2236286919831223,,0.3717030717825018,vtab/kitti_closest_vehicle_distance,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 127 |
+
0.5850793650793651,0.910952380952381,0.5919202546199539,vtab/resisc45,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 128 |
+
0.7567441239316239,0.9461805555555556,0.7914514618991711,voc2007,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 129 |
+
0.3319333333333333,0.9534,0.3193231509666999,vtab/clevr_count_all,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 130 |
+
0.5661724327292696,,0.5658672775172254,renderedsst2,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 131 |
+
0.2686357243319268,,0.3735376764204429,vtab/kitti_closest_vehicle_distance,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 132 |
+
0.1856168902573125,0.82608313173521,0.1925396140565279,vtab/dmlab,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 133 |
+
0.8504273504273504,0.9681130834976988,0.9394300669046936,vtab/caltech101,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 134 |
+
0.7768934212162666,0.983957219251337,0.777448930592225,cars,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 135 |
+
0.3048171481253841,0.7613706207744315,0.3503741918499782,vtab/svhn,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 136 |
+
0.96575,0.999375,0.966625,stl10,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 137 |
+
0.6219482421875,,0.6220625731388706,vtab/pcam,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 138 |
+
,,,flickr30k,ViT-L-14,laion400m_e32,zeroshot_retrieval,,0.9082000255584716,0.977999985218048,ViT-L-14 laion400m_e32
|
| 139 |
+
0.72734,0.9293,0.72694,imagenet1k,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 140 |
+
0.7766666666666666,0.9304333333333332,0.7605432098970494,imagenet-r,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 141 |
+
0.6137,0.8644,0.6146999999999999,imagenetv2,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 142 |
+
0.2877333333333333,0.9075333333333332,0.2821869879006831,vtab/clevr_count_all,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 143 |
+
0.6190740740740741,0.962037037037037,0.6309344676440423,vtab/eurosat,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 144 |
+
0.0313313802083333,0.1560872395833333,0.031335128135504,vtab/dsprites_label_x_position,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 145 |
+
0.1149794238683127,0.5761316872427984,0.115904554765943,vtab/smallnorb_label_elevation,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 146 |
+
0.7760611481541714,0.9046999512115792,0.7813275676765017,vtab/flowers,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 147 |
+
0.8865,0.9695666666666668,0.8748158307459671,imagenet-r,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 148 |
+
,,,mscoco_captions,ViT-H-14,laion2b_s32b_b79k,zeroshot_retrieval,,0.734306275844574,0.8604000210762024,ViT-H-14 laion2b_s32b_b79k
|
| 149 |
+
0.7524,0.9418,0.7528999999999999,vtab/cifar100,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 150 |
+
0.2618666666666667,0.5721333333333334,0.2839019082932269,imagenet-a,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 151 |
+
0.9345852505907224,0.9988807362268376,0.9351484667320789,cars,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 152 |
+
0.4286709389802173,0.898300362217888,0.392124222029496,fer2013,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 153 |
+
0.68352,0.91864,0.68396,imagenet1k,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 154 |
+
0.1123456790123456,0.5467489711934156,0.1133381228564946,vtab/smallnorb_label_elevation,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 155 |
+
0.4932893159621922,0.7566861207726621,0.4940521568627451,imagenet_sketch,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 156 |
+
0.5009752020061299,0.932153803287824,0.449919123283142,fer2013,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 157 |
+
0.7549,0.946,0.7545,imagenet1k,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 158 |
+
0.0346001519097222,0.1698269314236111,0.0339338982697889,vtab/dsprites_label_x_position,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 159 |
+
0.71777753849467,0.9007214385700442,0.7007187288769688,objectnet,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 160 |
+
0.7294,0.9415,0.7332910901261492,mnist,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 161 |
+
0.0342746310763888,0.1416965060763889,0.034365141983162,vtab/dsprites_label_orientation,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 162 |
+
0.210639793766112,1.0,0.2335698910327324,vtab/diabetic_retinopathy,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 163 |
+
0.8392504930966469,0.9510190664036818,0.9090841082001052,vtab/caltech101,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 164 |
+
0.2841068917018284,,0.4076831334000694,vtab/kitti_closest_vehicle_distance,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 165 |
+
0.6813829787234043,0.925531914893617,0.6829787234042553,vtab/dtd,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 166 |
+
0.6909,0.91432,0.69156,imagenet1k,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 167 |
+
0.2424666666666666,0.7876,0.2312503165591237,vtab/clevr_count_all,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 168 |
+
0.67002,0.90424,0.67026,imagenet1k,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 169 |
+
,,,flickr30k,ViT-B-16,laion400m_e32,zeroshot_retrieval,,0.881600022315979,0.9679999947547911,ViT-B-16 laion400m_e32
|
| 170 |
+
0.8787,0.9709333333333332,0.8651131734542029,imagenet-r,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 171 |
+
0.62918,0.87652,0.6289,imagenet1k,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 172 |
+
0.5469522240527183,,0.5464163192635053,renderedsst2,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 173 |
+
0.4425531914893617,0.7638297872340426,0.4430851063829787,vtab/dtd,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 174 |
+
0.5149133196941962,0.7512652094325402,0.5017005288059357,objectnet,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 175 |
+
0.4855,0.8418,0.4575381785680641,mnist,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 176 |
+
0.6550016151609777,0.8503284160654678,0.6433184742666794,objectnet,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 177 |
+
0.7744,0.9471,0.7737999999999998,vtab/cifar100,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 178 |
+
0.7920656634746922,0.9787339883099117,0.7926165075935756,cars,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 179 |
+
0.2081575246132208,,0.1791674645508319,vtab/kitti_closest_vehicle_distance,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 180 |
+
0.0260687934027777,0.1259223090277778,0.0268337475785376,vtab/dsprites_label_orientation,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 181 |
+
0.6922,0.9403,0.6883700135057857,mnist,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 182 |
+
0.1143209876543209,0.5373662551440329,0.1138628810502107,vtab/smallnorb_label_elevation,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 183 |
+
0.6769,0.9012,0.6781,imagenetv2,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 184 |
+
0.7683627136752137,0.952590811965812,0.8035754023986389,voc2007,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 185 |
+
0.8504273504273504,0.953155818540434,0.9440706929933655,vtab/caltech101,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 186 |
+
0.6434889751181566,0.9243614027989776,0.6527406670624641,sun397,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 187 |
+
0.3311163895486936,0.7250989707046714,0.3196447660118034,gtsrb,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 188 |
+
0.6521841655367565,0.8748649020416986,0.6524090196078433,imagenet_sketch,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 189 |
+
0.1469194312796208,0.3500473933649289,0.1470142180094787,country211,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 190 |
+
0.96875,0.99975,0.9695,stl10,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 191 |
+
0.6908043501669,0.8805319263486594,0.6736647184602601,objectnet,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 192 |
+
0.984375,0.999875,0.9849999999999998,stl10,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 193 |
+
0.5544309249488533,0.7926671691611931,0.5363732822578842,objectnet,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 194 |
+
0.7555422008547008,0.9489182692307692,0.830992972154603,voc2007,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 195 |
+
0.5293285385839769,0.78944369117098,0.5286741176470588,imagenet_sketch,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 196 |
+
0.7889957264957265,0.9573317307692308,0.8054447759101763,voc2007,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 197 |
+
0.675285506739982,0.9369310554094562,0.6824513086557495,sun397,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 198 |
+
0.111275720164609,0.5548971193415638,0.1102182875784799,vtab/smallnorb_label_elevation,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 199 |
+
,,,flickr8k,ViT-B-32,laion2b_e16,zeroshot_retrieval,,0.8574000000953674,0.9319999814033508,ViT-B-32 laion2b_e16
|
| 200 |
+
0.5989555292344136,0.8103262625174976,0.586320244179702,objectnet,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 201 |
+
,,,mscoco_captions,ViT-g-14,laion2b_s12b_b42k,zeroshot_retrieval,,0.7239903807640076,0.853600025177002,ViT-g-14 laion2b_s12b_b42k
|
| 202 |
+
0.7101,0.9209,0.7106999999999999,vtab/cifar100,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 203 |
+
0.189873417721519,,0.2568338943834677,vtab/kitti_closest_vehicle_distance,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 204 |
+
,,,mscoco_captions,ViT-B-32,laion2b_s34b_b79k,zeroshot_retrieval,,0.654218316078186,0.7982000112533569,ViT-B-32 laion2b_s34b_b79k
|
| 205 |
+
0.1186008230452674,0.560082304526749,0.1176434679315522,vtab/smallnorb_label_elevation,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 206 |
+
0.5634266886326195,,0.5635892536622082,renderedsst2,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 207 |
+
,,,flickr8k,ViT-L-14,laion2b_s32b_b82k,zeroshot_retrieval,,0.9147999882698059,0.9670000076293945,ViT-L-14 laion2b_s32b_b82k
|
| 208 |
+
0.0237358940972222,0.1186116536458333,0.0218059467808842,vtab/dsprites_label_orientation,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 209 |
+
0.1316147176001874,1.0,0.230780955782727,vtab/diabetic_retinopathy,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 210 |
+
0.8599676657132197,0.9912946150976246,0.8615494787047302,cars,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 211 |
+
0.5569148936170213,0.8361702127659575,0.5563829787234043,vtab/dtd,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 212 |
+
,,,flickr30k,ViT-B-32,laion2b_s34b_b79k,zeroshot_retrieval,,0.8835999965667725,0.9629999995231628,ViT-B-32 laion2b_s34b_b79k
|
| 213 |
+
0.0715256620576517,1.0,0.2196341124982623,vtab/diabetic_retinopathy,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 214 |
+
0.5699,0.8279,0.5675693520579019,mnist,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 215 |
+
0.5940803382663847,0.917174480785972,0.5967107342155968,cars,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 216 |
+
0.98275,1.0,0.982875,stl10,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 217 |
+
0.4199524940617577,0.6838479809976247,0.393417229364651,gtsrb,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 218 |
+
0.0633231778767283,1.0,0.2107285863733837,vtab/diabetic_retinopathy,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 219 |
+
0.9497,0.9963,0.9497,vtab/cifar10,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 220 |
+
0.76548,0.95168,0.7656000000000001,imagenet1k,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 221 |
+
0.2742616033755274,,0.405770386325608,vtab/kitti_closest_vehicle_distance,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 222 |
+
0.2380126552613077,1.0,0.233320813717688,vtab/diabetic_retinopathy,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 223 |
+
0.2307582938388625,0.4708056872037914,0.2308530805687204,country211,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 224 |
+
0.2633333333333333,0.574,0.2790514196577626,imagenet-a,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 225 |
+
,,,voc2007_multilabel,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,0.7621888518333435,,,ViT-B-32-quickgelu laion400m_e32
|
| 226 |
+
0.199,0.7285333333333334,0.1948019376127608,vtab/clevr_count_all,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 227 |
+
0.5376190476190477,0.8671428571428571,0.5417275836816031,vtab/resisc45,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 228 |
+
0.0302191840277777,0.1466335720486111,0.0300817149220147,vtab/dsprites_label_x_position,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 229 |
+
,,,flickr8k,ViT-g-14,laion2b_s12b_b42k,zeroshot_retrieval,,0.9175999760627747,0.9739999771118164,ViT-g-14 laion2b_s12b_b42k
|
| 230 |
+
0.157994281944139,0.8222564328128437,0.1661260800820199,vtab/dmlab,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 231 |
+
0.1812322274881516,0.4011374407582938,0.181563981042654,country211,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 232 |
+
0.9272,0.9988,0.9272000000000002,vtab/cifar10,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 233 |
+
0.9401,0.9992,0.9405,vtab/cifar10,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 234 |
+
0.7331380360909304,1.0,0.206266837915639,vtab/diabetic_retinopathy,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 235 |
+
0.2587904360056259,,0.3397102822066769,vtab/kitti_closest_vehicle_distance,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 236 |
+
0.2166666666666666,0.5310666666666667,0.2348332752565157,imagenet-a,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 237 |
+
0.99375,1.0,0.993625,stl10,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 238 |
+
0.087368174361378,1.0,0.2520359622114083,vtab/diabetic_retinopathy,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 239 |
+
0.1236939151813153,0.6480485556238476,0.1332639799678708,vtab/svhn,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 240 |
+
0.5782537067545305,,0.5785203520352036,renderedsst2,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 241 |
+
0.0588477366255144,0.268395061728395,0.0601925439678357,vtab/smallnorb_label_azimuth,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 242 |
+
0.6367,0.9218,0.6276012948452819,mnist,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 243 |
+
0.0313856336805555,0.1553955078125,0.0307666564982354,vtab/dsprites_label_x_position,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 244 |
+
0.9569,0.9963,0.9572,vtab/cifar10,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 245 |
+
0.4973871733966746,0.7704671417260491,0.4655936453259506,gtsrb,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 246 |
+
0.5853968253968254,0.896984126984127,0.5932699170625959,vtab/resisc45,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 247 |
+
0.1419837255333186,0.8292060699362217,0.16573619863836,vtab/dmlab,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 248 |
+
0.612762451171875,,0.6128028129314551,vtab/pcam,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 249 |
+
0.1945898394545854,0.8513305476138113,0.1635130198328585,vtab/dmlab,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 250 |
+
0.7259778950659286,0.9500616069294004,0.7127784763377728,sun397,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 251 |
+
0.4661333333333333,0.7688,0.4728184257301568,imagenet-a,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 252 |
+
0.6371428571428571,0.9277777777777778,0.6463008933552572,vtab/resisc45,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 253 |
+
0.1111111111111111,,0.2722929936305732,vtab/kitti_closest_vehicle_distance,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 254 |
+
0.6105248678496336,0.8503998899565721,0.6103113725490197,imagenet_sketch,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 255 |
+
0.8732624693376942,0.9926410466067048,0.8695864391489154,vtab/pets,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 256 |
+
0.1486,0.9095333333333332,0.1443124682607226,vtab/clevr_closest_object_distance,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 257 |
+
0.0243462456597222,0.1128879123263889,0.0249444752915047,vtab/dsprites_label_orientation,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 258 |
+
0.596238872840889,0.8439741397944546,0.5964254901960785,imagenet_sketch,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 259 |
+
0.6276595744680851,0.9069148936170212,0.6324468085106383,vtab/dtd,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 260 |
+
,,,voc2007_multilabel,ViT-B-16,openai,zeroshot_classification,0.788827121257782,,,ViT-B-16 openai
|
| 261 |
+
,,,flickr30k,ViT-L-14,openai,zeroshot_retrieval,,0.8715999722480774,0.9739999771118164,ViT-L-14 openai
|
| 262 |
+
0.2505250525052505,0.6012601260126013,0.2483244206773618,fgvc_aircraft,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 263 |
+
0.5559259259259259,0.8868518518518519,0.5469811732579133,vtab/eurosat,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 264 |
+
0.9427636958299264,0.9983646770237122,0.9434000102313552,vtab/pets,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 265 |
+
0.1746174617461746,0.45004500450045,0.1753386809269162,fgvc_aircraft,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 266 |
+
,,,flickr30k,ViT-B-16,openai,zeroshot_retrieval,,0.855400025844574,0.9629999995231628,ViT-B-16 openai
|
| 267 |
+
0.8934314527119106,0.9956391387298992,0.8906060208128682,vtab/pets,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 268 |
+
0.6266666666666667,0.9611111111111112,0.6380077170682305,vtab/eurosat,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 269 |
+
0.5596,0.8341,0.5602,imagenetv2,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 270 |
+
0.481439996855902,0.763229774607479,0.4822572549019607,imagenet_sketch,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 271 |
+
0.2450666666666666,0.8254,0.1666666666666666,vtab/clevr_closest_object_distance,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 272 |
+
,,,flickr30k,ViT-H-14,laion2b_s32b_b79k,zeroshot_retrieval,,0.9409999847412108,0.9929999709129332,ViT-H-14 laion2b_s32b_b79k
|
| 273 |
+
,,,voc2007_multilabel,ViT-L-14,openai,zeroshot_classification,0.7903817892074585,,,ViT-L-14 openai
|
| 274 |
+
0.4267205349679576,0.9361939258846476,0.3989364402674789,fer2013,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 275 |
+
0.6960663515824705,0.9390183349577946,0.6804128851625355,sun397,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 276 |
+
0.3318666666666666,0.6664,0.3409181030776702,imagenet-a,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 277 |
+
0.9083,0.9944,0.9082,vtab/cifar10,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 278 |
+
,,,voc2007_multilabel,ViT-L-14-336,openai,zeroshot_classification,0.8035513162612915,,,ViT-L-14-336 openai
|
| 279 |
+
0.5922666666666667,0.8565333333333334,0.5810468077571583,imagenet-a,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 280 |
+
0.6730158730158731,0.938095238095238,0.6781338184038964,vtab/resisc45,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 281 |
+
0.7354112959925005,1.0,0.1999235670840696,vtab/diabetic_retinopathy,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 282 |
+
,,,flickr30k,ViT-B-16-plus-240,laion400m_e32,zeroshot_retrieval,,0.8894000053405762,0.9710000157356262,ViT-B-16-plus-240 laion400m_e32
|
| 283 |
+
,,,flickr8k,ViT-B-32,openai,zeroshot_retrieval,,0.805400013923645,0.9139999747276306,ViT-B-32 openai
|
| 284 |
+
0.5897858319604613,,0.5895015488390944,renderedsst2,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 285 |
+
0.5388,0.8212,0.5362716338708938,imagenet-a,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 286 |
+
,,,mscoco_captions,ViT-B-16,openai,zeroshot_retrieval,,0.5836865305900574,0.7681999802589417,ViT-B-16 openai
|
| 287 |
+
,,,flickr8k,ViT-B-32,laion2b_s34b_b79k,zeroshot_retrieval,,0.8629999756813049,0.9409999847412109,ViT-B-32 laion2b_s34b_b79k
|
| 288 |
+
0.99425,0.999875,0.9945,stl10,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 289 |
+
0.5612707437000615,0.8849492931776275,0.5565312569182044,vtab/svhn,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 290 |
+
0.1097119341563786,0.5409053497942387,0.1081320376350696,vtab/smallnorb_label_elevation,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 291 |
+
0.805221688034188,0.9551282051282052,0.8491537874687232,voc2007,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 292 |
+
,,,flickr8k,ViT-L-14-336,openai,zeroshot_retrieval,,0.8795999884605408,0.9390000104904175,ViT-L-14-336 openai
|
| 293 |
+
0.1716,0.9095333333333332,0.1619443104834767,vtab/clevr_closest_object_distance,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 294 |
+
0.1573333333333333,0.6964666666666667,0.1495026928557915,vtab/clevr_count_all,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 295 |
+
,,,mscoco_captions,ViT-B-16-plus-240,laion400m_e32,zeroshot_retrieval,,0.6620951890945435,0.8101999759674072,ViT-B-16-plus-240 laion400m_e32
|
| 296 |
+
0.8336,0.9666,0.8325000000000001,vtab/cifar100,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 297 |
+
0.0984362139917695,0.5293827160493827,0.0977694426163014,vtab/smallnorb_label_elevation,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 298 |
+
,,,voc2007_multilabel,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,0.8066232800483704,,,ViT-g-14 laion2b_s12b_b42k
|
| 299 |
+
0.6087301587301587,0.9147619047619048,0.6152225643499313,vtab/resisc45,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 300 |
+
0.0550617283950617,0.2645267489711934,0.055379474051494,vtab/smallnorb_label_azimuth,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 301 |
+
0.1676666666666666,0.8819333333333333,0.1954414937508546,vtab/clevr_closest_object_distance,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 302 |
+
0.0200330946180555,0.1053195529513889,0.0222572574909185,vtab/dsprites_label_orientation,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 303 |
+
0.5526123046875,,0.5526478181769814,vtab/pcam,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 304 |
+
,,,mscoco_captions,ViT-L-14,openai,zeroshot_retrieval,,0.6108356714248657,0.7918000221252441,ViT-L-14 openai
|
| 305 |
+
,,,mscoco_captions,ViT-B-32-quickgelu,laion400m_e32,zeroshot_retrieval,,0.6084766387939453,0.7675999999046326,ViT-B-32-quickgelu laion400m_e32
|
| 306 |
+
0.7537811026183119,0.8923402179216132,0.7256696912813558,vtab/flowers,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 307 |
+
0.1659634317862166,,0.3247233185334074,vtab/kitti_closest_vehicle_distance,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 308 |
+
0.0193684895833333,0.1180826822916666,0.0197744129948227,vtab/dsprites_label_orientation,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 309 |
+
0.9037884982284,0.9970019078768056,0.9039815014388496,vtab/pets,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 310 |
+
0.3742,0.7294,0.3706020613065869,mnist,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 311 |
+
0.6746527403897922,0.8668030580381177,0.6650572756513145,objectnet,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 312 |
+
0.765625,0.959869123931624,0.8071517771314477,voc2007,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 313 |
+
0.546031746031746,0.902063492063492,0.5542849348347576,vtab/resisc45,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 314 |
+
0.0427924262152777,0.1601019965277778,0.0430371102717507,vtab/dsprites_label_x_position,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 315 |
+
0.6957142857142857,0.9571428571428572,0.706242238089474,vtab/resisc45,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 316 |
+
0.6514814814814814,0.9551851851851852,0.6638062361650154,vtab/eurosat,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 317 |
+
0.8475333333333334,0.9550666666666666,0.8331685531673508,imagenet-r,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 318 |
+
0.1902,0.9085333333333332,0.1387289271305892,vtab/clevr_closest_object_distance,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 319 |
+
0.3852181929932391,0.7822295636140135,0.379296565517112,vtab/svhn,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 320 |
+
0.3182464454976303,0.5937914691943128,0.3175829383886256,country211,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 321 |
+
0.6659,0.9224,0.6665327286676481,mnist,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 322 |
+
0.6327693607655879,0.8639588123170037,0.6325447058823529,imagenet_sketch,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 323 |
+
0.2279620853080568,0.486303317535545,0.2282938388625592,country211,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 324 |
+
0.764,0.9231,0.7589335620721703,mnist,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 325 |
+
0.0268283420138888,0.1092258029513889,0.025387675404758,vtab/dsprites_label_orientation,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 326 |
+
0.3693369336933693,0.744974497449745,0.3649286987522281,fgvc_aircraft,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 327 |
+
0.4102258758451137,0.8022818070067609,0.4216815643098484,vtab/svhn,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 328 |
+
0.743319785938908,0.9583279695459478,0.7348385903018446,sun397,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 329 |
+
,,,flickr8k,ViT-H-14,laion2b_s32b_b79k,zeroshot_retrieval,,0.9277999997138977,0.9729999899864197,ViT-H-14 laion2b_s32b_b79k
|
| 330 |
+
0.5487,0.8411,0.5430718178404617,mnist,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 331 |
+
0.7171428571428572,0.958095238095238,0.7258469461953507,vtab/resisc45,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 332 |
+
0.3454976303317535,0.6221800947867299,0.3445971563981042,country211,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 333 |
+
0.9645,0.999375,0.965125,stl10,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 334 |
+
0.779,0.9289333333333334,0.7643246651538985,imagenet-r,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 335 |
+
0.1633333333333333,0.7125333333333334,0.1575975877364315,vtab/clevr_count_all,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 336 |
+
0.8683565004088307,0.9934587080948488,0.8661667839491306,vtab/pets,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 337 |
+
0.647962962962963,0.9805555555555556,0.6445566610022502,vtab/eurosat,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 338 |
+
0.6929582045861116,0.8668076109936576,0.6668176645957112,vtab/flowers,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 339 |
+
0.6630346397788258,0.8573751829565783,0.6645264657992297,vtab/flowers,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 340 |
+
0.1772666666666666,0.7803333333333333,0.2270014558851883,vtab/clevr_closest_object_distance,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 341 |
+
0.2784,0.8929333333333334,0.2563239722391655,vtab/clevr_count_all,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 342 |
+
0.8328402366863905,0.94543063773833,0.9085289082247568,vtab/caltech101,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 343 |
+
0.2786954517516902,0.7308312845728334,0.2795999671407248,vtab/svhn,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 344 |
+
0.035400390625,0.1624348958333333,0.0364155761076967,vtab/dsprites_label_x_position,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 345 |
+
0.2699554722287321,1.0,0.2211405088000341,vtab/diabetic_retinopathy,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 346 |
+
0.0259874131944444,0.1214463975694444,0.0262399607702056,vtab/dsprites_label_orientation,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 347 |
+
0.819197896120973,0.9465811965811964,0.8786521640800292,vtab/caltech101,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 348 |
+
0.4896907216494845,0.9721370855391472,0.4887152232577444,fer2013,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 349 |
+
,,,voc2007_multilabel,ViT-L-14,laion400m_e32,zeroshot_classification,0.7847012877464294,,,ViT-L-14 laion400m_e32
|
| 350 |
+
0.8020816392909416,0.9253537160513904,0.7985485908748879,vtab/flowers,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 351 |
+
0.5163895486935867,0.7605700712589074,0.4472134621454642,gtsrb,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 352 |
+
0.5255354200988468,,0.5258471570841294,renderedsst2,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 353 |
+
0.2242797448867385,0.8738508906971629,0.1816019549723685,vtab/dmlab,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 354 |
+
0.5442040519562185,0.8052231327005837,0.5451807843137254,imagenet_sketch,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 355 |
+
0.545867919921875,,0.5459467330999297,vtab/pcam,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 356 |
+
0.697049639280715,0.877516959190266,0.6846202591899297,objectnet,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 357 |
+
0.0558847736625514,0.2832098765432099,0.0522661133926831,vtab/smallnorb_label_azimuth,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 358 |
+
0.2352,0.7871333333333334,0.2199570643185355,vtab/clevr_count_all,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 359 |
+
0.8039,0.9392333333333334,0.7907448605291261,imagenet-r,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 360 |
+
0.2292545710267229,,0.3081761474014508,vtab/kitti_closest_vehicle_distance,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 361 |
+
0.04559670781893,0.274320987654321,0.0456436809466583,vtab/smallnorb_label_azimuth,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 362 |
+
0.585723876953125,,0.5857677281000415,vtab/pcam,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 363 |
+
0.8932,0.9735333333333334,0.8804663010091829,imagenet-r,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 364 |
+
0.3677333333333333,0.7024,0.3814206048810433,imagenet-a,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 365 |
+
0.378037803780378,0.8028802880288028,0.3781639928698752,fgvc_aircraft,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 366 |
+
0.5430851063829787,0.8356382978723405,0.5473404255319149,vtab/dtd,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 367 |
+
0.9261285909712722,0.9976371098122124,0.9261518670531818,cars,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 368 |
+
0.6904,0.9518,0.6833555055021581,mnist,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 369 |
+
0.6174603174603175,0.921904761904762,0.624279367877562,vtab/resisc45,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 370 |
+
0.537057676232934,0.9492894956812482,0.5338791359180816,fer2013,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 371 |
+
,,,voc2007_multilabel,ViT-B-16,laion400m_e32,zeroshot_classification,0.7843208312988281,,,ViT-B-16 laion400m_e32
|
| 372 |
+
0.4582056283087211,0.9531903037057676,0.4167779537443768,fer2013,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 373 |
+
0.1594666666666666,0.8705333333333334,0.1702024394180443,vtab/clevr_closest_object_distance,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 374 |
+
0.955,0.9995,0.955375,stl10,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 375 |
+
0.7640666666666667,0.9159,0.7521727338627011,imagenet-r,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 376 |
+
0.8328402366863905,0.952827087442472,0.9177765781998192,vtab/caltech101,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 377 |
+
0.53631591796875,,0.53614377703907,vtab/pcam,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 378 |
+
0.0517695473251028,0.2697942386831276,0.0537673960190341,vtab/smallnorb_label_azimuth,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 379 |
+
0.6453,0.888,0.6451,vtab/cifar100,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 380 |
+
,,,flickr30k,ViT-B-32,laion2b_e16,zeroshot_retrieval,,0.8812000155448914,0.9639999866485596,ViT-B-32 laion2b_e16
|
| 381 |
+
0.4393776246365888,0.684612899752342,0.4268760394558317,objectnet,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 382 |
+
,,,flickr30k,ViT-g-14,laion2b_s12b_b42k,zeroshot_retrieval,,0.9348000288009644,0.99099999666214,ViT-g-14 laion2b_s12b_b42k
|
| 383 |
+
0.381760909649662,0.7632913337430854,0.4057750407393451,vtab/svhn,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 384 |
+
0.5006666666666667,0.8033333333333333,0.4832835476168289,imagenet-a,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 385 |
+
0.9705,0.9994,0.9711,vtab/cifar10,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 386 |
+
0.4800780161604904,0.9711618835330176,0.4909158276198425,fer2013,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 387 |
+
,,,mscoco_captions,ViT-L-14-336,openai,zeroshot_retrieval,,0.615513801574707,0.8101999759674072,ViT-L-14-336 openai
|
| 388 |
+
0.7068,0.9062666666666668,0.6753602288814418,imagenet-a,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 389 |
+
0.9078,0.9977,0.9083,vtab/cifar10,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 390 |
+
0.3860633066994468,0.8061232329440688,0.3685311302620919,vtab/svhn,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 391 |
+
0.7160513904699951,0.8744511302650837,0.6998995164388323,vtab/flowers,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 392 |
+
0.1971197119711971,0.5022502250225023,0.197344028520499,fgvc_aircraft,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 393 |
+
0.6033343577135832,0.8973570989551322,0.5683458085959752,vtab/svhn,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 394 |
+
0.4899860019381932,0.7341983417680629,0.4820376550831692,objectnet,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 395 |
+
0.7626201923076923,0.9526575854700856,0.815718996924191,voc2007,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 396 |
+
0.1462728551336146,,0.1818997858588953,vtab/kitti_closest_vehicle_distance,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 397 |
+
0.6787234042553192,0.923936170212766,0.6813829787234043,vtab/dtd,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 398 |
+
0.1721574664614031,0.8585001099626127,0.1577427840925754,vtab/dmlab,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 399 |
+
0.7916734428362335,0.9193364774760124,0.7931691849985836,vtab/flowers,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 400 |
+
0.0549794238683127,0.2670781893004115,0.0559609415916413,vtab/smallnorb_label_azimuth,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 401 |
+
0.7843883547008547,0.9570646367521368,0.835061321772101,voc2007,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 402 |
+
0.6177777777777778,0.957037037037037,0.6299267597724122,vtab/eurosat,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 403 |
+
0.543701171875,,0.5435553179465629,vtab/pcam,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 404 |
+
0.0315348307291666,0.1596544053819444,0.0323590170008084,vtab/dsprites_label_x_position,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 405 |
+
0.5796296296296296,0.9525925925925924,0.5888803943202612,vtab/eurosat,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 406 |
+
0.9185064050149904,0.9956391387298992,0.9161666963118203,vtab/pets,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 407 |
+
0.5381177990739744,0.7715085603531818,0.5274232792623416,objectnet,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 408 |
+
,,,flickr30k,ViT-L-14,laion2b_s32b_b82k,zeroshot_retrieval,,0.929199993610382,0.9869999885559082,ViT-L-14 laion2b_s32b_b82k
|
| 409 |
+
0.8368362144011939,0.987439373212287,0.8375394945435981,cars,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 410 |
+
,,,flickr8k,ViT-B-32-quickgelu,laion400m_e32,zeroshot_retrieval,,0.8303999900817871,0.9169999957084656,ViT-B-32-quickgelu laion400m_e32
|
| 411 |
+
0.9742,0.9994,0.9742999999999998,vtab/cifar10,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 412 |
+
0.613015873015873,0.91,0.6150226494017114,vtab/resisc45,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 413 |
+
0.1901913349461183,0.8472839234660215,0.1733383864929211,vtab/dmlab,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 414 |
+
0.1979333333333333,0.8076,0.1820160989597282,vtab/clevr_count_all,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 415 |
+
,,,voc2007_multilabel,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,0.8199208974838257,,,ViT-L-14 laion2b_s32b_b82k
|
| 416 |
+
0.1674,0.8695333333333334,0.1827530663763387,vtab/clevr_closest_object_distance,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 417 |
+
0.1715165876777251,0.4024170616113744,0.1707582938388625,country211,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 418 |
+
0.75202,0.94252,0.7526400000000001,imagenet1k,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 419 |
+
0.8923412373943854,0.9967293540474244,0.8919759072052595,vtab/pets,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 420 |
+
0.487670937870141,0.7249919241951115,0.4750858280106649,objectnet,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 421 |
+
0.8959084690958836,0.9960203954732,0.8961635505798664,cars,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 422 |
+
0.7832532051282052,0.9692174145299144,0.864352156405908,voc2007,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 423 |
+
0.5031481481481481,0.92,0.5110567650187513,vtab/eurosat,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 424 |
+
0.161,0.9128666666666668,0.1739135544326629,vtab/clevr_closest_object_distance,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 425 |
+
0.8441736102474816,0.9912946150976246,0.8456794155511405,cars,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 426 |
+
0.7372,0.9338,0.7372000000000001,vtab/cifar100,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 427 |
+
0.7136119694259229,0.8591640917222313,0.691284904068223,vtab/flowers,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 428 |
+
0.1485814822960193,0.8129316032548933,0.1482313831309264,vtab/dmlab,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 429 |
+
0.6112026359143328,,0.6113264286955011,renderedsst2,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 430 |
+
0.5370675453047776,,0.5373060332349024,renderedsst2,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 431 |
+
,,,mscoco_captions,ViT-B-32,openai,zeroshot_retrieval,,0.5584565997123718,0.748199999332428,ViT-B-32 openai
|
| 432 |
+
,,,flickr8k,ViT-B-16,openai,zeroshot_retrieval,,0.8285999894142151,0.9139999747276306,ViT-B-16 openai
|
| 433 |
+
0.8379355687047995,0.9518408941485864,0.9328934325841473,vtab/caltech101,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 434 |
+
0.0307752821180555,0.1437852647569444,0.0304426618193977,vtab/dsprites_label_orientation,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 435 |
+
0.841715976331361,0.940828402366864,0.9341112975275198,vtab/caltech101,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 436 |
+
0.0311008029513888,0.1568060980902778,0.0321637232587243,vtab/dsprites_label_x_position,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 437 |
+
,,,flickr30k,ViT-L-14-336,openai,zeroshot_retrieval,,0.8889999985694885,0.9810000061988832,ViT-L-14-336 openai
|
| 438 |
+
0.5961406197803062,0.8388060288077973,0.5956784313725489,imagenet_sketch,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 439 |
+
0.4657286152131513,0.9445528002229032,0.4812190866355833,fer2013,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 440 |
+
0.0562962962962962,0.274156378600823,0.0567608380809354,vtab/smallnorb_label_azimuth,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 441 |
+
0.1583333333333333,0.8006,0.1676244908434004,vtab/clevr_closest_object_distance,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 442 |
+
0.7326224513709867,1.0,0.2068672210509669,vtab/diabetic_retinopathy,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 443 |
+
0.8911666666666667,0.9757333333333332,0.8776131879598171,imagenet-r,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 444 |
+
0.988625,0.999875,0.988625,stl10,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 445 |
+
0.6865218750574692,0.9403608143148756,0.6921311150610732,sun397,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 446 |
+
0.5509033203125,,0.5508520491113902,vtab/pcam,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 447 |
+
0.1606666666666666,0.9079333333333334,0.1772310296867651,vtab/clevr_closest_object_distance,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 448 |
+
0.5574468085106383,0.8648936170212767,0.5622340425531915,vtab/dtd,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 449 |
+
0.2315333333333333,0.805,0.2332901934437162,vtab/clevr_count_all,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 450 |
+
0.0298394097222222,0.1414794921875,0.0308127750442299,vtab/dsprites_label_x_position,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 451 |
+
0.0623868312757201,0.2708641975308642,0.0631906837062103,vtab/smallnorb_label_azimuth,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 452 |
+
0.4774310392867094,0.9402340484814712,0.4649079545536754,fer2013,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 453 |
+
0.5230010414824422,0.7913694511584036,0.5233670588235293,imagenet_sketch,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 454 |
+
0.7341666666666666,0.9035,0.7214778957504825,imagenet-r,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 455 |
+
0.8353057199211046,0.9546351084812624,0.9005042720791782,vtab/caltech101,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 456 |
+
0.3109333333333333,0.8006,0.3066391557930237,vtab/clevr_count_all,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 457 |
+
0.6985172981878089,,0.6986603265589717,renderedsst2,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 458 |
+
0.1087242798353909,0.540164609053498,0.1086253991970707,vtab/smallnorb_label_elevation,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 459 |
+
0.9351,0.998,0.936,vtab/cifar10,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 460 |
+
,,,flickr8k,ViT-L-14,openai,zeroshot_retrieval,,0.8633999824523926,0.9409999847412109,ViT-L-14 openai
|
| 461 |
+
0.65528,0.894,0.6563199999999999,imagenet1k,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 462 |
+
0.5930807248764415,,0.5925413265010712,renderedsst2,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 463 |
+
0.1650710900473933,0.3788625592417061,0.164218009478673,country211,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 464 |
+
0.168016801680168,0.4119411941194119,0.1658110516934046,fgvc_aircraft,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 465 |
+
0.0303819444444444,0.1311170789930555,0.0332405586865836,vtab/dsprites_label_orientation,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 466 |
+
0.3171317131713171,0.7827782778277828,0.3170053475935828,fgvc_aircraft,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 467 |
+
0.6691,0.8925,0.6685000000000001,vtab/cifar100,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 468 |
+
0.0516872427983539,0.2725925925925926,0.0526600212836742,vtab/smallnorb_label_azimuth,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 469 |
+
0.6559,0.8854,0.6541,imagenetv2,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 470 |
+
0.5569148936170213,0.8558510638297873,0.5542553191489361,vtab/dtd,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 471 |
+
0.1663981042654028,0.3825118483412322,0.1670142180094786,country211,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 472 |
+
0.7074,0.9179,0.7075,imagenetv2,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 473 |
+
0.3137333333333333,0.6410666666666667,0.3236449813371542,imagenet-a,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 474 |
+
0.0454320987654321,0.2672427983539094,0.0450240211431134,vtab/smallnorb_label_azimuth,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 475 |
+
0.8741,0.9655666666666668,0.8599962924086103,imagenet-r,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 476 |
+
0.4275427542754275,0.8361836183618362,0.4260962566844919,fgvc_aircraft,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 477 |
+
,,,mscoco_captions,ViT-L-14,laion2b_s32b_b82k,zeroshot_retrieval,,0.7107957005500793,0.8399999737739563,ViT-L-14 laion2b_s32b_b82k
|
| 478 |
+
0.5958,0.8547,0.5955999999999999,imagenetv2,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 479 |
+
0.7540228405391985,0.9617025580668296,0.7523924485563404,sun397,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 480 |
+
0.2418241824182418,0.6054605460546054,0.2405525846702317,fgvc_aircraft,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 481 |
+
0.0590123456790123,0.279835390946502,0.0603763349553147,vtab/smallnorb_label_azimuth,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
| 482 |
+
0.7613,0.9289,0.7611,vtab/cifar100,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 483 |
+
0.9277453053102848,0.9983832856609874,0.9288577913034778,cars,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 484 |
+
0.0257297092013888,0.1208224826388889,0.0259727501505128,vtab/dsprites_label_orientation,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 485 |
+
0.8254437869822485,0.954963839579224,0.908884143116176,vtab/caltech101,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 486 |
+
0.980125,0.999875,0.980875,stl10,ViT-L-14,laion400m_e32,zeroshot_classification,,,,ViT-L-14 laion400m_e32
|
| 487 |
+
0.2463246324632463,0.5724572457245725,0.2460249554367201,fgvc_aircraft,ViT-B-32,laion2b_s34b_b79k,zeroshot_classification,,,,ViT-B-32 laion2b_s34b_b79k
|
| 488 |
+
0.8102964743589743,0.9655448717948718,0.8579252085748035,voc2007,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 489 |
+
0.2044,0.7866666666666666,0.2151124081246672,vtab/clevr_count_all,ViT-B-16,openai,zeroshot_classification,,,,ViT-B-16 openai
|
| 490 |
+
0.2872511848341232,0.542085308056872,0.2880094786729857,country211,ViT-g-14,laion2b_s12b_b42k,zeroshot_classification,,,,ViT-g-14 laion2b_s12b_b42k
|
| 491 |
+
0.06,0.288312757201646,0.0630119225348046,vtab/smallnorb_label_azimuth,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 492 |
+
0.9664,0.9987,0.9665,vtab/cifar10,ViT-L-14,laion2b_s32b_b82k,zeroshot_classification,,,,ViT-L-14 laion2b_s32b_b82k
|
| 493 |
+
0.1895333333333333,0.7248666666666667,0.1870254885776544,vtab/clevr_count_all,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 494 |
+
0.8415619947767691,0.9900509886829996,0.8435641961196442,cars,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 495 |
+
0.337965783923131,1.0,0.2591163084325771,vtab/diabetic_retinopathy,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 496 |
+
0.1582,0.8814666666666666,0.1812267071156741,vtab/clevr_closest_object_distance,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 497 |
+
0.0475720164609053,0.2691358024691358,0.0457953163680852,vtab/smallnorb_label_azimuth,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 498 |
+
0.3651623119556611,0.7007917656373713,0.3512103003164681,gtsrb,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 499 |
+
0.1592258632065097,0.8009676709918627,0.1713416703583154,vtab/dmlab,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 500 |
+
0.4948535233570863,0.7578780680918448,0.4319824074083427,gtsrb,ViT-B-16-plus-240,laion400m_e32,zeroshot_classification,,,,ViT-B-16-plus-240 laion400m_e32
|
| 501 |
+
0.3294329432943294,0.7836783678367837,0.3317290552584671,fgvc_aircraft,ViT-L-14-336,openai,zeroshot_classification,,,,ViT-L-14-336 openai
|
| 502 |
+
0.684701252367729,0.9328576420177648,0.6783238400960281,sun397,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 503 |
+
0.6885672467067816,0.8466417303626605,0.6732279033655394,vtab/flowers,ViT-B-32,laion2b_e16,zeroshot_classification,,,,ViT-B-32 laion2b_e16
|
| 504 |
+
0.8385930309007232,0.9539776462853384,0.9334530557615972,vtab/caltech101,ViT-L-14,openai,zeroshot_classification,,,,ViT-L-14 openai
|
| 505 |
+
0.6696489324530592,0.9273222134358275,0.6609448269493161,sun397,ViT-B-32-quickgelu,laion400m_e32,zeroshot_classification,,,,ViT-B-32-quickgelu laion400m_e32
|
| 506 |
+
0.3000947867298578,0.556872037914692,0.2994312796208531,country211,ViT-H-14,laion2b_s32b_b79k,zeroshot_classification,,,,ViT-H-14 laion2b_s32b_b79k
|
| 507 |
+
0.409445528002229,0.9413485650599052,0.3587300457745208,fer2013,ViT-B-32,openai,zeroshot_classification,,,,ViT-B-32 openai
|
| 508 |
+
0.96975,0.999875,0.96975,stl10,ViT-B-16,laion400m_e32,zeroshot_classification,,,,ViT-B-16 laion400m_e32
|
InternVL-main/clip_benchmark/benchmark/dataset_type.csv
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dataset,type
|
| 2 |
+
imagenet1k,natural
|
| 3 |
+
imagenetv2,natural
|
| 4 |
+
imagenet-r,natural
|
| 5 |
+
imagenet_sketch,specialized
|
| 6 |
+
objectnet,natural
|
| 7 |
+
imagenet-a,natural
|
| 8 |
+
imagenet-o,natural
|
| 9 |
+
vtab/cifar10,natural
|
| 10 |
+
vtab/cifar100,natural
|
| 11 |
+
mnist,specialized
|
| 12 |
+
vtab/flowers,natural
|
| 13 |
+
cars,natural
|
| 14 |
+
vtab/svhn,natural
|
| 15 |
+
fer2013,natural
|
| 16 |
+
renderedsst2,specialized
|
| 17 |
+
vtab/pets,natural
|
| 18 |
+
vtab/caltech101,natural
|
| 19 |
+
voc2007_multilabel,natural
|
| 20 |
+
voc2007,natural
|
| 21 |
+
sun397,natural
|
| 22 |
+
fgvc_aircraft,natural
|
| 23 |
+
country211,natural
|
| 24 |
+
vtab/dtd,natural
|
| 25 |
+
gtsrb,natural
|
| 26 |
+
stl10,natural
|
| 27 |
+
vtab/diabetic_retinopathy,specialized
|
| 28 |
+
vtab/eurosat,specialized
|
| 29 |
+
vtab/resisc45,specialized
|
| 30 |
+
vtab/pcam,specialized
|
| 31 |
+
vtab/clevr_count_all,structured
|
| 32 |
+
vtab/clevr_closest_object_distance,structured
|
| 33 |
+
vtab/dsprites_label_orientation,structured
|
| 34 |
+
vtab/dsprites_label_x_position,structured
|
| 35 |
+
vtab/dsprites_label_y_position,structured
|
| 36 |
+
vtab/smallnorb_label_elevation,structured
|
| 37 |
+
vtab/smallnorb_label_azimuth,structured
|
| 38 |
+
vtab/dmlab,structured
|
| 39 |
+
vtab/kitti_closest_vehicle_distance,structured
|
| 40 |
+
mscoco_captions,retrieval
|
| 41 |
+
flickr8k,retrieval
|
| 42 |
+
flickr30k,retrieval
|
InternVL-main/clip_benchmark/benchmark/datasets.txt
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mscoco_captions
|
| 2 |
+
flickr8k
|
| 3 |
+
flickr30k
|
| 4 |
+
imagenet1k
|
| 5 |
+
imagenetv2
|
| 6 |
+
imagenet_sketch
|
| 7 |
+
imagenet-a
|
| 8 |
+
imagenet-r
|
| 9 |
+
objectnet
|
| 10 |
+
fer2013
|
| 11 |
+
voc2007
|
| 12 |
+
voc2007_multilabel
|
| 13 |
+
sun397
|
| 14 |
+
cars
|
| 15 |
+
fgvc_aircraft
|
| 16 |
+
mnist
|
| 17 |
+
stl10
|
| 18 |
+
gtsrb
|
| 19 |
+
country211
|
| 20 |
+
renderedsst2
|
| 21 |
+
vtab/caltech101
|
| 22 |
+
vtab/cifar10
|
| 23 |
+
vtab/cifar100
|
| 24 |
+
vtab/clevr_count_all
|
| 25 |
+
vtab/clevr_closest_object_distance
|
| 26 |
+
vtab/diabetic_retinopathy
|
| 27 |
+
vtab/dmlab
|
| 28 |
+
vtab/dsprites_label_orientation
|
| 29 |
+
vtab/dsprites_label_x_position
|
| 30 |
+
vtab/dtd
|
| 31 |
+
vtab/eurosat
|
| 32 |
+
vtab/kitti_closest_vehicle_distance
|
| 33 |
+
vtab/flowers
|
| 34 |
+
vtab/pets
|
| 35 |
+
vtab/pcam
|
| 36 |
+
vtab/resisc45
|
| 37 |
+
vtab/smallnorb_label_azimuth
|
| 38 |
+
vtab/smallnorb_label_elevation
|
| 39 |
+
vtab/svhn
|
InternVL-main/clip_benchmark/benchmark/datasets_multilingual.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
multilingual_mscoco_captions,es
|
| 2 |
+
multilingual_mscoco_captions,it
|
| 3 |
+
multilingual_mscoco_captions,ko
|
| 4 |
+
multilingual_mscoco_captions,pl
|
| 5 |
+
multilingual_mscoco_captions,ru
|
| 6 |
+
multilingual_mscoco_captions,tr
|
| 7 |
+
multilingual_mscoco_captions,zh
|
| 8 |
+
multilingual_mscoco_captions,en
|
| 9 |
+
imagenet1k,zh
|
| 10 |
+
imagenet1k,it
|
| 11 |
+
imagenet1k,jp
|
| 12 |
+
imagenet1k,en
|
| 13 |
+
imagenet1k,ar
|
InternVL-main/clip_benchmark/benchmark/models.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ViT-B-32,openai
|
| 2 |
+
ViT-B-16,openai
|
| 3 |
+
ViT-L-14,openai
|
| 4 |
+
ViT-L-14-336,openai
|
| 5 |
+
ViT-B-32-quickgelu,laion400m_e32
|
| 6 |
+
ViT-B-32,laion2b_e16
|
| 7 |
+
ViT-B-32,laion2b_s34b_b79k
|
| 8 |
+
ViT-B-16,laion400m_e32
|
| 9 |
+
ViT-B-16-plus-240,laion400m_e32
|
| 10 |
+
ViT-L-14,laion400m_e32
|
| 11 |
+
ViT-L-14,laion2b_s32b_b82k
|
| 12 |
+
ViT-H-14,laion2b_s32b_b79k
|
| 13 |
+
ViT-g-14,laion2b_s12b_b42k
|
InternVL-main/clip_benchmark/benchmark/results.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
InternVL-main/clip_benchmark/benchmark/webdatasets.txt
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
wds/mscoco_captions
|
| 2 |
+
wds/flickr8k
|
| 3 |
+
wds/flickr30k
|
| 4 |
+
wds/imagenet1k
|
| 5 |
+
wds/imagenetv2
|
| 6 |
+
wds/imagenet_sketch
|
| 7 |
+
wds/imagenet-a
|
| 8 |
+
wds/imagenet-r
|
| 9 |
+
wds/imagenet-o
|
| 10 |
+
wds/objectnet
|
| 11 |
+
wds/fer2013
|
| 12 |
+
wds/voc2007
|
| 13 |
+
wds/voc2007_multilabel
|
| 14 |
+
wds/sun397
|
| 15 |
+
wds/cars
|
| 16 |
+
wds/fgvc_aircraft
|
| 17 |
+
wds/mnist
|
| 18 |
+
wds/stl10
|
| 19 |
+
wds/gtsrb
|
| 20 |
+
wds/country211
|
| 21 |
+
wds/renderedsst2
|
| 22 |
+
wds/vtab/caltech101
|
| 23 |
+
wds/vtab/cifar10
|
| 24 |
+
wds/vtab/cifar100
|
| 25 |
+
wds/vtab/clevr_count_all
|
| 26 |
+
wds/vtab/clevr_closest_object_distance
|
| 27 |
+
wds/vtab/diabetic_retinopathy
|
| 28 |
+
wds/vtab/dmlab
|
| 29 |
+
wds/vtab/dsprites_label_orientation
|
| 30 |
+
wds/vtab/dsprites_label_x_position
|
| 31 |
+
wds/vtab/dsprites_label_y_position
|
| 32 |
+
wds/vtab/dtd
|
| 33 |
+
wds/vtab/eurosat
|
| 34 |
+
wds/vtab/kitti_closest_vehicle_distance
|
| 35 |
+
wds/vtab/flowers
|
| 36 |
+
wds/vtab/pets
|
| 37 |
+
wds/vtab/pcam
|
| 38 |
+
wds/vtab/resisc45
|
| 39 |
+
wds/vtab/smallnorb_label_azimuth
|
| 40 |
+
wds/vtab/smallnorb_label_elevation
|
| 41 |
+
wds/vtab/svhn
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/__init__.py
ADDED
|
File without changes
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/ar_classnames.json
ADDED
|
@@ -0,0 +1,1004 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"imagenet1k": [
|
| 3 |
+
"\u0633\u0645\u0643 \u0627\u0644\u062a\u0646\u0634",
|
| 4 |
+
"\u0627\u0644\u0633\u0645\u0643\u0629 \u0627\u0644\u0630\u0647\u0628\u064a\u0629",
|
| 5 |
+
"\u0627\u0644\u0642\u0631\u0634 \u0627\u0644\u0623\u0628\u064a\u0636 \u0627\u0644\u0643\u0628\u064a\u0631",
|
| 6 |
+
"\u0627\u0644\u0642\u0631\u0634 \u0627\u0644\u0628\u0628\u0631\u064a",
|
| 7 |
+
"\u0627\u0644\u0642\u0631\u0634 \u0627\u0644\u0645\u0637\u0631\u0642\u0629",
|
| 8 |
+
"\u0633\u0645\u0643 \u0627\u0644\u0631\u0639\u0627\u062f",
|
| 9 |
+
"\u0633\u0645\u0643 \u0627\u0644\u0631\u0642\u064a\u0637\u0629",
|
| 10 |
+
"\u062f\u064a\u0643",
|
| 11 |
+
"\u062f\u062c\u0627\u062c\u0629",
|
| 12 |
+
"\u0646\u0639\u0627\u0645\u0629",
|
| 13 |
+
"\u0627\u0644\u0634\u0631\u0634\u0648\u0631 \u0627\u0644\u062c\u0628\u0644\u064a",
|
| 14 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u062d\u0633\u0648\u0646",
|
| 15 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u062a\u0641\u0627\u062d\u064a \u0627\u0644\u0627\u0648\u0631\u0648\u0628\u064a",
|
| 16 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u062c\u0646\u0643 \u062f\u0627\u0643\u0646 \u0627\u0644\u0639\u064a\u0648\u0646",
|
| 17 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u062f\u0631\u0633\u0629 \u0627\u0644\u0633\u0645\u0627\u0648\u064a",
|
| 18 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0628\u0648 \u0627\u0644\u062d\u0646\u0627\u0621",
|
| 19 |
+
"\u0628\u0644\u0628\u0644",
|
| 20 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0642\u064a\u0642",
|
| 21 |
+
"\u0639\u0642\u0639\u0642 \u0637\u0627\u0626\u0631 \u0627\u0644\u0630\u064a\u0644 \u0627\u0644\u0637\u0648\u064a\u0644",
|
| 22 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0642\u0631\u0642\u0641",
|
| 23 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u063a\u0637\u0627\u0633",
|
| 24 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u062d\u062f\u0623\u0629",
|
| 25 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0639\u0642\u0627\u0628 \u0627\u0644\u0631\u062e\u0645\u0629",
|
| 26 |
+
"\u0646\u0633\u0631",
|
| 27 |
+
"\u0627\u0644\u0628\u0648\u0645\u0629 \u0627\u0644\u0631\u0645\u0627\u062f\u064a\u0629",
|
| 28 |
+
"\u0627\u0644\u0633\u0645\u0646\u062f\u0631 \u0627\u0644\u0646\u0627\u0631\u064a",
|
| 29 |
+
"\u0644\u064a\u0633\u0648\u062a\u0631\u064a\u062a\u0648\u0646 \u0641\u0648\u0644\u062c\u0627\u0631\u064a\u0633",
|
| 30 |
+
"\u0627\u0644\u0633\u0645\u0646\u062f\u0631 \u0627\u0644\u0645\u0627\u0626\u064a",
|
| 31 |
+
"\u0627\u0644\u0633\u0645\u0646\u062f\u0631 \u0627\u0644\u0645\u0631\u0642\u0637",
|
| 32 |
+
"\u0627\u0644\u0633\u0645\u0646\u062f\u0631 \u0627\u0644\u0645\u0643\u0633\u064a\u0643\u064a",
|
| 33 |
+
"\u0636\u0641\u062f\u0639 \u0627\u0644\u062b\u0648\u0631 \u0627\u0644\u0627\u0645\u0631\u064a\u0643\u064a",
|
| 34 |
+
"\u0636\u0641\u062f\u0639 \u0627\u0644\u0634\u062c\u0631",
|
| 35 |
+
"\u0627\u0644\u0636\u0641\u0627\u062f\u0639 \u0630\u0627\u062a \u0627\u0644\u0630\u064a\u0644",
|
| 36 |
+
"\u0627\u0644\u0633\u0644\u062d\u0641\u0627\u0629 \u0627\u0644\u0628\u062d\u0631\u064a\u0629 \u0636\u062e\u0645\u0629 \u0627\u0644\u0631\u0623\u0633",
|
| 37 |
+
"\u0633\u0644\u062d\u0641\u0627\u0629 \u0627\u0644\u0645\u062d\u064a\u0637 \u062c\u0644\u062f\u064a\u0629 \u0627\u0644\u0638\u0647\u0631",
|
| 38 |
+
"\u0633\u0644\u062d\u0641\u0627\u0629 \u0627\u0644\u0637\u064a\u0646",
|
| 39 |
+
"\u0627\u0644\u0633\u0644\u062d\u0641\u0627\u0629 \u0630\u0627\u062a \u0638\u0647\u0631 \u0627\u0644\u0645\u0639\u064a\u0646",
|
| 40 |
+
"\u0633\u0644\u062d\u0641\u0627\u0629 \u0635\u0646\u062f\u0648\u0642\u064a\u0629",
|
| 41 |
+
"\u0627\u0644\u0648\u0632\u063a",
|
| 42 |
+
"\u0627\u0644\u0625\u063a\u0648\u0627\u0646\u0629",
|
| 43 |
+
"\u0627\u0644\u062d\u0631\u0628\u0627\u0621 \u0627\u0644\u062e\u0636\u0631\u0627\u0621",
|
| 44 |
+
"\u0627\u0644\u0633\u062d\u0627\u0644\u064a \u0627\u0644\u0635\u062d\u0631\u0627\u0648\u064a\u0629",
|
| 45 |
+
"\u0627\u0644\u0639\u064e\u0636\u0652\u0631\u064e\u0641\u064f\u0648\u0637",
|
| 46 |
+
" \u0633\u062d\u0644\u064a\u0629 \u0647\u062f\u0628 \u0627\u0644\u0639\u0646\u0642",
|
| 47 |
+
"\u0633\u062d\u0644\u064a\u0629 \u0627\u0644\u062a\u0645\u0633\u0627\u062d",
|
| 48 |
+
"\u0648\u062d\u0634 \u062c\u064a\u0644\u0627",
|
| 49 |
+
"\u0633\u062d\u0644\u064a\u0629 \u062e\u0636\u0631\u0627\u0621",
|
| 50 |
+
"\u062d\u0631\u0628\u0627\u0621 \u0627\u0641\u0631\u064a\u0642\u064a\u0629",
|
| 51 |
+
"\u062a\u0646\u064a\u0646 \u0643\u0648\u0645\u0648\u062f\u0648",
|
| 52 |
+
"\u0627\u0644\u062a\u0645\u0633\u0627\u062d \u0627\u0644\u0623\u0641\u0631\u064a\u0642\u064a",
|
| 53 |
+
"\u062a\u0645\u0633\u0627\u062d \u0627\u0644\u0642\u0627\u0637\u0648\u0631 \u0627\u0644\u0623\u0645\u0631\u064a\u0643\u064a",
|
| 54 |
+
"\u0627\u0644\u062f\u064a\u0646\u0627\u0635\u0648\u0631 \u062b\u064f\u0644\u0627\u062b\u064a\u064f\u0651 \u0627\u0644\u0642\u064f\u0631\u0648\u0646",
|
| 55 |
+
"\u0627\u0644\u062b\u0639\u0627\u0628\u064a\u0646 \u0627\u0644\u062f\u0648\u062f\u064a\u0629",
|
| 56 |
+
"\u0623\u0641\u0639\u0649 \u0627\u0644\u0637\u0648\u0642",
|
| 57 |
+
"\u0627\u0644\u0623\u0641\u0639\u0649 \u0627\u0644\u0646\u0641\u0627\u062b\u0629 ",
|
| 58 |
+
"\u0627\u0644\u0623\u0641\u0639\u0649 \u0627\u0644\u062e\u0636\u0631\u0627\u0621",
|
| 59 |
+
"\u0627\u0644\u062b\u0639\u0628\u0627\u0646 \u0627\u0644\u0645\u0644\u0643",
|
| 60 |
+
"\u0623\u0641\u0639\u0649 \u0627\u0644\u0631\u0628\u0627\u0637",
|
| 61 |
+
"\u0627\u0641\u0639\u0649 \u0627\u0644\u0645\u0627\u0621",
|
| 62 |
+
"\u062b\u0639\u0628\u0627\u0646 \u0646\u0628\u0627\u062a \u0643\u0631\u0645\u0629",
|
| 63 |
+
"\u0627\u0644\u062b\u0639\u0628\u0627\u0646 \u0627\u0644\u0644\u064a\u0644\u064a ",
|
| 64 |
+
"\u062b\u0639\u0628\u0627\u0646 \u0627\u0644\u0623\u0635\u0644\u0629 \u0627\u0644\u0639\u0627\u0635\u0631\u0629",
|
| 65 |
+
"\u0627\u0644\u062b\u0639\u0628\u0627\u0646 \u0627\u0644\u0635\u062e\u0631\u064a",
|
| 66 |
+
"\u0643\u0648\u0628\u0631\u0627 \u0647\u0646\u062f\u064a\u0629",
|
| 67 |
+
"\u0645\u0627\u0645\u0628\u0627 \u062e\u0636\u0631\u0627\u0621",
|
| 68 |
+
"\u0627\u0644\u063a\u064a\u062f\u0642\u0627\u0648\u0627\u062a",
|
| 69 |
+
"\u0627\u0644\u0623\u0641\u0639\u0649 \u0627\u0644\u0645\u0642\u0631\u0646\u0629",
|
| 70 |
+
"\u0627\u0644\u0623\u0641\u0639\u0649 \u0627\u0644\u062c\u0631\u0633\u064a\u0629 \u0630\u0627\u062a \u0627\u0644\u0635\u062f\u0631 \u0627\u0644\u0645\u0627\u0633\u064a",
|
| 71 |
+
"\u0627\u0641\u0639\u0649 \u0644\u0627\u0641\u0651\u0629 \u0627\u0644\u062c\u0646\u0628",
|
| 72 |
+
"\u0645\u0641\u0635\u0644\u064a\u0627\u062a \u062b\u0644\u0627\u062b\u064a\u0629 \u0627\u0644\u0641\u0635\u0648\u0635",
|
| 73 |
+
"\u062d\u0634\u0631\u0629 \u0627\u0644\u0639\u0646\u0643\u0628\u0648\u062a \u0630\u0627\u062a \u0627\u0644\u0642\u0648\u0627\u0626\u0645 \u0627\u0644\u0637\u0648\u064a\u0644\u0629",
|
| 74 |
+
"\u0639\u0642\u0631\u0628",
|
| 75 |
+
"\u0639\u0646\u0643\u0628\u0648\u062a \u0627\u0644\u062d\u062f\u064a\u0642\u0629 \u0630\u0627 \u0627\u0644\u0644\u0648\u0646 \u0627\u0644\u0623\u0633\u0648\u062f \u0648\u0627\u0644\u0623\u0635\u0641\u0631 ",
|
| 76 |
+
"\u0639\u0646\u0643\u0628\u0648\u062a \u0627\u0644\u062d\u0638\u064a\u0631\u0629",
|
| 77 |
+
"\u0639\u0646\u0643\u0628\u0648\u062a \u0627\u0644\u062d\u062f\u064a\u0642\u0629 \u0627\u0644\u0623\u0648\u0631\u0628\u064a",
|
| 78 |
+
"\u0639\u0646\u0643\u0628\u0648\u062a \u0627\u0644\u0623\u0631\u0645\u0644\u0629 \u0627\u0644\u0633\u0648\u062f\u0627\u0621",
|
| 79 |
+
"\u0639\u0646\u0643\u0628\u0648\u062a \u0631\u062a\u064a\u0644\u0627\u0621 \u0630\u0627\u062a \u0623\u0631\u062c\u0644 \u062d\u0645\u0631\u0627\u0621",
|
| 80 |
+
"\u0627\u0644\u0639\u0646\u0643\u0628\u0648\u062a \u0627\u0644\u0630\u0626\u0628\u064a",
|
| 81 |
+
"\u0639\u0646\u0643\u0628\u0648\u062a \u0627\u0644\u0642\u064f\u0631\u064e\u0627\u062f",
|
| 82 |
+
"\u062d\u0634\u0631\u0629 \u0623\u0645 \u0623\u0631\u0628\u0639\u0629 \u0648\u0623\u0631\u0628\u0639\u064a\u0646",
|
| 83 |
+
"\u062f\u062c\u0627\u062c\u0629 \u0627\u0644\u0637\u0647\u064a\u0648\u062c \u0627\u0644\u0623\u0633\u0648\u062f",
|
| 84 |
+
"\u062f\u062c\u0627\u062c\u0629 \u062a\u0631\u0645\u062c\u0627\u0646",
|
| 85 |
+
"\u062f\u062c\u0627\u062c\u0629 \u0637\u064a\u0647\u0648\u062c \u0645\u0637\u0648\u0642",
|
| 86 |
+
"\u062f\u062c\u0627\u062c\u0629 \u0627\u0644\u0637\u0647\u0628\u0648\u062c",
|
| 87 |
+
"\u0627\u0644\u0637\u0627\u0648\u0648\u0633",
|
| 88 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0633\u0645\u0627\u0646",
|
| 89 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u062d\u062c\u0644",
|
| 90 |
+
"\u0627\u0644\u0628\u0628\u063a\u0627\u0621 \u0627\u0644\u0631\u0645\u0627\u062f\u064a",
|
| 91 |
+
"\u0628\u0628\u063a\u0627\u0621 \u0645\u0643\u0627\u0648",
|
| 92 |
+
"\u0628\u0628\u063a\u0627\u0621 \u0643\u0648\u0643\u0627\u062a\u0648 \u0643\u0628\u0631\u064a\u062a\u064a \u0627\u0644\u0639\u0631\u0641",
|
| 93 |
+
"\u0628\u0628\u063a\u0627\u0621 \u0642\u0648\u0633 \u0642\u0632\u062d",
|
| 94 |
+
"\u0637\u064a\u0631 \u0627\u0644\u0648\u0642\u0648\u0627\u0642 \u0643\u0648\u0643\u0627\u0644",
|
| 95 |
+
"\u0637\u064a\u0631 \u0648\u0631\u0648\u0627\u0631 ",
|
| 96 |
+
"\u0637\u064a\u0631 \u0623\u0628\u0648 \u0642\u0631\u0646",
|
| 97 |
+
"\u0627\u0644\u0637\u0627\u0626\u0631 \u0627\u0644\u0637\u0646\u0627\u0646",
|
| 98 |
+
"\u0637\u064a\u0648\u0631 \u0627\u0644\u064a\u0642\u0645\u064e\u0631",
|
| 99 |
+
"\u0637\u0627\u0626\u0631 \u0645\u0637\u0648\u0642",
|
| 100 |
+
"\u0630\u0643\u0631 \u0627\u0644\u0628\u0637",
|
| 101 |
+
"\u0627\u0644\u0628\u0637\u0629 \u0627\u0644\u063a\u0648\u0627\u0635\u0629 \u062d\u0645\u0631\u0627\u0621 \u0627\u0644\u0635\u062f\u0631",
|
| 102 |
+
"\u0625\u0648\u0632\u0629",
|
| 103 |
+
"\u0627\u0644\u0625\u0648\u0632\u0629 \u0633\u0648\u062f\u0627\u0621",
|
| 104 |
+
"\u0627\u0644\u0641\u064a\u0644",
|
| 105 |
+
" \u0622\u0643\u0644 \u0627\u0644\u0646\u0645\u0644 \u0627\u0644\u0634\u0648\u0643\u064a",
|
| 106 |
+
"\u062e\u0644\u062f \u0627\u0644\u0645\u0627\u0621",
|
| 107 |
+
"\u0648\u0644\u0628",
|
| 108 |
+
"\u0643\u0648\u0627\u0644\u0627",
|
| 109 |
+
"\u0627\u0644\u0648\u0645\u0628\u062a\u064a\u0627\u062a",
|
| 110 |
+
"\u0642\u0646\u062f\u064a\u0644 \u0628\u062d\u0631",
|
| 111 |
+
"\u0634\u0642\u0627\u0626\u0642 \u0646\u0639\u0645\u0627\u0646 \u0627\u0644\u0628\u062d\u0631",
|
| 112 |
+
"\u0645\u0631\u062c\u0627\u0646 \u0627\u0644\u062f\u0645\u0627\u063a",
|
| 113 |
+
"\u062f\u064a\u062f\u0627\u0646 \u0645\u0633\u0637\u062d\u0629",
|
| 114 |
+
"\u062f\u064a\u062f\u0627\u0646 \u0623\u0633\u0637\u0648\u0627\u0646\u064a\u0629",
|
| 115 |
+
"\u0645\u062d\u0627\u0631\u0629",
|
| 116 |
+
"\u062d\u0644\u0632\u0648\u0646",
|
| 117 |
+
"\u0628\u0632\u0627\u0642",
|
| 118 |
+
"\u062d\u0644\u0632\u0648\u0646 \u0645\u0627\u0626\u064a",
|
| 119 |
+
"\u0631\u062e\u0648\u064a\u0627\u062a \u0628\u062d\u0631\u064a\u0647 \u062a\u0633\u0645\u0649 \u0627\u0644\u062e\u064a\u062a\u0648\u0646",
|
| 120 |
+
"\u0646\u0648\u062a\u064a\u0644\u0648\u0633 \u0627\u0644\u062d\u062c\u0631\u064a",
|
| 121 |
+
"\u0633\u0631\u0637\u0627\u0646 \u0627\u0644\u0628\u062d\u0631",
|
| 122 |
+
"\u0633\u0631\u0637\u0627\u0646 \u0627\u0644\u0628\u062d\u0631 \u0627\u0644\u0623\u0637\u0644\u0633\u064a",
|
| 123 |
+
"\u0627\u0644\u0633\u0631\u0637\u0627\u0646 \u0627\u0644\u0639\u0627\u0632\u0641",
|
| 124 |
+
"\u0645\u0644\u0643 \u0627\u0644\u0633\u0644\u0637\u0639\u0648\u0646",
|
| 125 |
+
"\u062c\u0631\u0627\u062f \u0627\u0644\u0628\u062d\u0631 \u0627\u0644\u0623\u0645\u0631\u064a\u0643\u064a",
|
| 126 |
+
"\u0643\u0631\u0643\u0646\u062f \u0634\u0627\u0626\u0643",
|
| 127 |
+
"\u062c\u0631\u0627\u062f \u0627\u0644\u0645\u064a\u0627\u0647 \u0627\u0644\u0639\u0630\u0628\u0629",
|
| 128 |
+
"\u0627\u0644\u0633\u0631\u0637\u0627\u0646 \u0627\u0644\u0646\u0627\u0633\u0643",
|
| 129 |
+
"\u0645\u062a\u0633\u0627\u0648\u064a\u0627\u062a \u0627\u0644\u0623\u0642\u062f\u0627\u0645",
|
| 130 |
+
"\u0644\u0642\u0644\u0642 \u0623\u0628\u064a\u0636",
|
| 131 |
+
"\u0644\u0642\u0644\u0642 \u0623\u0633\u0648\u062f",
|
| 132 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0628\u062c\u0639 \u0627\u0644\u0645\u0633\u0645\u0649 \u0623\u0628\u0648 \u0645\u0644\u0639\u0642\u0629",
|
| 133 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0641\u0644\u0627\u0645\u064a\u0646\u063a\u0648",
|
| 134 |
+
"\u0637\u0627\u0626\u0631 \u0628\u0644\u0634\u0648\u0646 \u0627\u0644\u0623\u0632\u0631\u0642 \u0627\u0644\u0635\u063a\u064a\u0631",
|
| 135 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0628\u0644\u0634\u0648\u0646 \u0627\u0644\u0623\u0628\u064a\u0636 \u0627\u0644\u0643\u0628\u064a\u0631",
|
| 136 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0639\u062c\u0627\u062c",
|
| 137 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0643\u0631\u0643\u064a\u0629",
|
| 138 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0631\u0637\u0627\u0633",
|
| 139 |
+
"\u062f\u062c\u0627\u062c\u0629 \u0627\u0644\u0645\u0627\u0621 \u0627\u0644\u0623\u0631\u062c\u0648\u0627\u0646\u064a\u0629",
|
| 140 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u063a\u0631 \u0627\u0644\u0623\u0645\u0631\u064a\u0643\u064a",
|
| 141 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u062d\u0628\u0627\u0631",
|
| 142 |
+
"\u0637\u0627\u0626\u0631 \u0642\u0646\u0628\u0631\u0629 \u0627\u0644\u0645\u0627\u0621 \u0627\u0644\u0645\u062a\u0648\u0631\u062f",
|
| 143 |
+
"\u0637\u0627\u0626\u0631 \u062f\u0631\u064a\u062c\u0629 \u0623\u0644\u0628\u064a\u0629",
|
| 144 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0637\u064a\u0637\u0648\u064a \u0623\u062d\u0645\u0631 \u0627\u0644\u0633\u0627\u0642",
|
| 145 |
+
"\u0639\u064e\u062f\u0651\u0627\u0621 \u0627\u0644\u0645\u0633\u062a\u0646\u0642\u0639\u0627\u062a \u0623\u0648 \u0627\u0644\u062f\u0651\u062a\u0634\u0631",
|
| 146 |
+
"\u0635\u0627\u0626\u062f \u0627\u0644\u0645\u062d\u0627\u0631",
|
| 147 |
+
"\u0628\u062c\u0639\u0629",
|
| 148 |
+
"\u0627\u0644\u0628\u0637\u0631\u064a\u0642 \u0627\u0644\u0645\u0644\u0643",
|
| 149 |
+
"\u0637\u0627\u0626\u0631 \u0627\u0644\u0642\u0637\u0631\u0633",
|
| 150 |
+
"\u0627\u0644\u062d\u0648\u062a \u0627\u0644\u0631\u0645\u0627\u062f\u064a \u0627\u0644\u0635\u0644\u0628",
|
| 151 |
+
"\u0627\u0644\u062d\u064f\u0648\u062a\u064f \u0627\u0644\u0642\u0627\u062a\u0650\u0644\u064f",
|
| 152 |
+
"\u0628\u0642\u0631\u0629 \u0627\u0644\u0628\u062d\u0631",
|
| 153 |
+
"\u0623\u0633\u062f \u0627\u0644\u0628\u062d\u0631",
|
| 154 |
+
"\u0643\u0644\u0628 \u0634\u064a\u0648\u0627\u0648\u0627",
|
| 155 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0630\u0642\u0646 \u0627\u0644\u064a\u0627\u0628\u0627\u0646\u064a",
|
| 156 |
+
"\u0643\u0644\u0628 \u0645\u0627\u0644\u0637\u064a",
|
| 157 |
+
"\u0643\u0644\u0628 \u0628\u0643\u064a\u0646\u064a",
|
| 158 |
+
"\u0643\u0644\u0628 \u062a\u0634\u064a\u0647 \u062a\u0632\u0648 \u0627\u0644\u0635\u064a\u0646\u064a",
|
| 159 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0645\u0644\u0643 \u062a\u0634\u0627\u0631\u0644\u0632",
|
| 160 |
+
"\u0643\u0644\u0628 \u0628\u0627\u0628\u064a\u0644\u0648\u0646",
|
| 161 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062a\u0631\u064a\u0631 \u0627\u0644\u0639\u0631\u0636",
|
| 162 |
+
"\u0643\u0644\u0627\u0628 \u0631\u064a\u062f\u062c \u0628\u0627\u0643",
|
| 163 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0635\u064a\u062f \u0627\u0644\u0623\u0641\u063a\u0627\u0646\u064a",
|
| 164 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0628\u0627\u0633\u0637",
|
| 165 |
+
"\u0643\u0644\u0628 \u0628\u064a\u063a\u0644",
|
| 166 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062f\u0645\u0648\u0645",
|
| 167 |
+
"\u0643\u0644\u0628 \u0628\u0644\u0648\u064a\u062a\u064a\u0643 \u0643\u0648\u0646\u0647\u0648\u0646\u062f",
|
| 168 |
+
"\u0643\u0644\u0628 \u0643\u0648\u0646\u0647\u0648\u0646\u062f \u0627\u0644\u0628\u0646\u064a \u0648\u0627\u0644\u0623\u0633\u0648\u062f",
|
| 169 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0648\u0648\u0643\u0631",
|
| 170 |
+
"\u0643\u0644\u0628 \u0635\u064a\u062f \u0627\u0644\u062b\u0639\u0627\u0644\u0628 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a",
|
| 171 |
+
"\u0643\u0644\u0628 \u0631\u064a\u062f\u0628\u0648\u0646 \u0643\u0648\u0646\u0647\u0648\u0646\u062f",
|
| 172 |
+
"\u0643\u0644\u0628 \u0628\u0648\u0631\u0632\u0648\u064a",
|
| 173 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0630\u0626\u0628 \u0627\u0644\u0627\u064a\u0631\u0644\u0646\u062f\u064a",
|
| 174 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0633\u0644\u0648\u0642\u064a \u0627\u0644\u0627\u064a\u0637\u0627\u0644\u064a",
|
| 175 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0648\u064a\u0628\u062a",
|
| 176 |
+
"\u0643\u0644\u0628 \u0627\u064a\u0628\u064a\u0632\u0627\u0646 \u0647\u0648\u0646\u062f",
|
| 177 |
+
"\u0627\u0644\u0643\u0644\u0628 \u0627\u0644\u0646\u0631\u0648\u064a\u062c\u064a",
|
| 178 |
+
"\u0643\u0644\u0628 \u0623\u0648\u062a\u064a\u0631 \u0647\u0627\u0648\u0646\u062f",
|
| 179 |
+
"\u0643\u0644\u0628 \u0633\u0644\u0648\u0642\u064a",
|
| 180 |
+
"\u0643\u0644\u0628 \u062f\u064a\u0631 \u0647\u0627\u0648\u0646\u062f \u0627\u0644\u0627\u0633\u0643\u062a\u0644\u0646\u062f\u064a",
|
| 181 |
+
"\u0643\u0644\u0628 \u0648\u0627\u064a\u0645\u0631\u064a",
|
| 182 |
+
"\u0643\u0644\u0628 \u0633\u062a\u0627\u0641\u0648\u0631\u062f\u0634\u0627\u064a\u0631 \u0628\u0648\u0644 \u062a\u0631\u064a\u0631",
|
| 183 |
+
"\u0643\u0644\u0628 \u0633\u062a\u0627\u0641\u0648\u0631\u062f\u0634\u0627\u064a\u0631 \u0627\u0644\u0623\u0645\u0631\u064a\u0643\u064a",
|
| 184 |
+
"\u0643\u0644\u0628 \u0628\u064a\u062f\u0644\u064a\u0646\u062c\u062a\u0648\u0646 \u062a\u0631\u064a\u0631",
|
| 185 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0628\u0648\u0631\u062f\u0631 \u062a\u064a\u0631\u064a\u0631",
|
| 186 |
+
"\u0643\u0644\u0628 \u0643\u064a\u0631\u064a \u0628\u0644\u0648 \u062a\u0631\u064a\u0631",
|
| 187 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062a\u0631\u064a\u0631 \u0627\u0644\u0625\u064a\u0631\u0644\u0646\u062f\u064a",
|
| 188 |
+
"\u0643\u0644\u0628 \u0646\u0648\u0631\u0641\u0648\u0644\u0643 \u062a\u064a\u0631\u064a\u0631",
|
| 189 |
+
"\u0643\u0644\u0628 \u0646\u0648\u0631\u064a\u062a\u0634 \u062a\u0631\u064a\u0631",
|
| 190 |
+
"\u0643\u0644\u0628 \u064a\u0648\u0631\u0643 \u0634\u0627\u064a\u0631",
|
| 191 |
+
"\u0643\u0644\u0628 \u0648\u064a\u0631 \u0641\u0648\u0643\u0633 \u062a\u0631\u064a\u0631",
|
| 192 |
+
"\u0643\u0644\u0628 \u0644\u064a\u0643\u0644\u0627\u0646\u062f \u062a\u064a\u0631\u064a\u0631",
|
| 193 |
+
"\u0643\u0644\u0628 \u0633\u064a\u0627\u0644\u064a\u0647\u0627\u0645 \u062a\u064a\u0631\u064a\u0631",
|
| 194 |
+
"\u0643\u0644\u0627\u0628 \u0627\u0644\u0623\u0631\u062f\u064a\u0644",
|
| 195 |
+
"\u0643\u0644\u0628 \u0643\u064a\u0631\u0646 \u062a\u0631\u064a\u0631",
|
| 196 |
+
"\u0643\u0644\u0628 \u062a\u0631\u064a\u0631 \u0627\u0633\u062a\u0631\u0627\u0644\u064a",
|
| 197 |
+
"\u0643\u0644\u0628 \u062f\u0627\u0646\u062f\u064a \u062f\u064a\u0646\u0645\u0648\u0646\u062a",
|
| 198 |
+
"\u0643\u0644\u0628 \u0628\u0648\u0633\u0637\u0646 \u062a\u064a\u0631\u064a\u0631",
|
| 199 |
+
"\u0643\u0644\u0628 \u0634\u0646\u0627\u0648\u062a\u0633\u0631 \u0645\u0646\u0645\u0646\u0645",
|
| 200 |
+
"\u0643\u0644\u0628 \u0634\u0646\u0627\u0648\u062a\u0633\u0631 \u0627\u0644\u0639\u0645\u0644\u0627\u0642",
|
| 201 |
+
"\u0643\u0644\u0628 \u0634\u0646\u0627\u0648\u062a\u0633\u0631 \u0627\u0644\u0639\u0627\u062f\u064a",
|
| 202 |
+
"\u0627\u0644\u0643\u0644\u0628 \u0627\u0644\u0627\u0633\u0643\u062a\u0644\u0646\u062f\u064a",
|
| 203 |
+
"\u0643\u0644\u0628 \u062a\u0631\u064a\u0631 \u0627\u0644\u062a\u0628\u062a",
|
| 204 |
+
"\u0643\u0644\u0628 \u0633\u064a\u0644\u0643\u064a \u062a\u064a\u0631\u064a\u0631",
|
| 205 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062a\u064a\u0631\u064a\u0631 \u0627\u0644\u0642\u0645\u062d\u064a \u0627\u0644\u0646\u0627\u0639\u0645",
|
| 206 |
+
"\u0643\u0644\u0628 \u0648\u064a\u0633\u062a\u064a",
|
| 207 |
+
"\u0643\u0644\u0628 \u0644\u0627\u0633\u0627 \u0623\u0628\u0633\u0648",
|
| 208 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0645\u0633\u062a\u0631\u062f \u0627\u0644\u0630\u0647\u0628\u064a",
|
| 209 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0645\u0633\u062a\u0631\u062f \u0645\u062c\u0639\u062f \u0627\u0644\u0634\u0639\u0631",
|
| 210 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0645\u0633\u062a\u0631\u062f \u0627\u0644\u0630\u0647\u0628\u064a",
|
| 211 |
+
"\u0643\u0644\u0628 \u0644\u0627\u0628\u0631\u0627\u062f\u0648\u0631 \u0631\u064a\u062a\u0631\u064a\u0641\u0631",
|
| 212 |
+
"\u0643\u0644\u0628 \u0634\u064a\u0633\u0628\u064a\u0643\u0627",
|
| 213 |
+
"\u0643\u0644\u0628 \u0628\u0648\u064a\u0646\u062a\u0631 \u0627\u0644\u0623\u0644\u0645\u0627\u0646\u064a \u0642\u0635\u064a\u0631 \u0627\u0644\u0634\u0639\u0631",
|
| 214 |
+
"\u0643\u0644\u0628 \u0641\u064a\u0632\u0644\u0627",
|
| 215 |
+
"\u0643\u0644\u0628 \u0633\u064a\u062a\u0631 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a",
|
| 216 |
+
"\u0643\u0644\u0628 \u0633\u064a\u062a\u0631 \u0627\u0644\u0625\u064a\u0631\u0644\u0646\u062f\u064a",
|
| 217 |
+
"\u0643\u0644\u0628 \u0633\u064a\u062a\u0631 \u0627\u0644\u062c\u0648\u0631\u062f\u0648\u0646\u064a",
|
| 218 |
+
"\u0643\u0644\u0628 \u0628\u0631\u064a\u062a\u0627\u0646\u064a \u0633\u0628\u0627\u0646\u064a\u0644",
|
| 219 |
+
"\u0643\u0644\u0628 \u0642\u0644\u0645\u0628\u0631",
|
| 220 |
+
"\u0643\u0644\u0628 \u0633\u0628\u0631\u064a\u0646\u063a\u0631 \u0633\u0628\u0627\u0646\u064a\u0644 \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a",
|
| 221 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0633\u0628\u0631\u064a\u0646\u063a\u0631 \u0627\u0644\u0648\u064a\u0644\u0632\u064a",
|
| 222 |
+
"\u0643\u0644\u0628 \u062f\u0644\u0644 \u0627\u0644\u0630\u0644\u064a\u0644",
|
| 223 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0633\u0627\u0643\u0633 \u0627\u0644\u0625\u0633\u0628\u0627\u0646\u064a",
|
| 224 |
+
"\u0643\u0644\u0628 \u0633\u0628\u0627\u064a\u0646\u0644 \u0627\u0644\u0645\u0627\u0621 \u0627\u0644\u0625\u064a\u0631\u0644\u0646\u062f\u064a",
|
| 225 |
+
"\u0643\u0644\u0628 \u0643\u0648\u0641\u0627\u0632",
|
| 226 |
+
"\u0643\u0644\u0628 \u0634\u064a\u0628\u0631\u0643",
|
| 227 |
+
"\u0643\u0644\u0628 \u062c\u0631\u0648\u0646\u064a\u0646\u062f\u064a\u0644",
|
| 228 |
+
"\u0643\u0644\u0628 \u0645\u0627\u0644\u064a\u0646\u0648",
|
| 229 |
+
"\u0643\u0644\u0628 \u0628\u0631\u064a\u0627\u0631",
|
| 230 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0643\u0644\u064a\u0628\u064a \u0627\u0644\u0625\u0633\u062a\u0631\u0627\u0644\u064a",
|
| 231 |
+
"\u0643\u0644\u0628 \u0643\u0648\u0645\u0648\u0646\u062f\u0648\u0631",
|
| 232 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0631\u0627\u0639\u064a \u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a \u0627\u0644\u0642\u062f\u064a\u0645",
|
| 233 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0631\u0627\u0639\u064a \u0627\u0644\u0634\u062a\u0644\u0646\u062f\u0649",
|
| 234 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0643\u0648\u0644\u064a",
|
| 235 |
+
"\u0643\u0644\u0628 \u0628\u0648\u0631\u062f\u0631 \u0643\u0648\u0644\u064a",
|
| 236 |
+
"\u0643\u0644\u0628 \u0628\u0648\u0641\u064a \u062f\u064a \u0641\u0644\u0627\u0646\u062f\u0631",
|
| 237 |
+
"\u0643\u0644\u0628 \u0631\u0648\u062a \u0648\u0627\u064a\u0644\u0631",
|
| 238 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0631\u0627\u0639\u064a \u0627\u0644\u0623\u0644\u0645\u0627\u0646\u064a",
|
| 239 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062f\u0648\u0628\u064a\u0631\u0645\u0627\u0646",
|
| 240 |
+
"\u0643\u0644\u0628 \u0628\u064a\u0646\u0634\u0631 \u0627\u0644\u0645\u0635\u063a\u0631",
|
| 241 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062c\u0628\u0644 \u0627\u0644\u0633\u0648\u064a\u0633\u0631\u064a",
|
| 242 |
+
"\u0643\u0644\u0628 \u062c\u0628\u0644 \u0627\u0644\u0628\u0631\u0646\u064a\u0632",
|
| 243 |
+
"\u0643\u0644\u0628 \u0627\u067e\u064a\u0646\u0632\u064a\u0644\u064a\u0631 \u0633\u064a\u0646\u064a\u0646\u0647\u0648\u0646\u062f",
|
| 244 |
+
"\u0643\u0644\u0628 \u0627\u0646\u062a\u0644\u0628\u062a\u0634\u0631",
|
| 245 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0628\u0648\u0643\u0633\u0631",
|
| 246 |
+
"\u0643\u0644\u0628 \u0628\u0648\u0644 \u0645\u0627\u0633\u062a\u064a\u0641",
|
| 247 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0645\u0627\u0633\u062a\u064a\u0641 \u0627\u0644\u062a\u064a\u0628\u062a\u064a",
|
| 248 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0628\u0648\u0644\u062f\u0648\u063a \u0627\u0644\u0641\u0631\u0646\u0633\u064a",
|
| 249 |
+
"\u0627\u0644\u0643\u0644\u0628 \u0627\u0644\u062f\u0627\u0646\u0645\u0627\u0631\u0643\u064a \u0627\u0644\u0636\u062e\u0645",
|
| 250 |
+
"\u0643\u0644\u0628 \u0633\u0627\u0646\u062a \u0628\u0631\u0646\u0627\u0631\u062f",
|
| 251 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0647\u0627\u0633\u0643\u064a",
|
| 252 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0645\u0644\u0645\u0648\u062a \u0627\u0644\u0623\u0644\u0627\u0633\u0643\u064a",
|
| 253 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0647\u0633\u0643\u064a \u0627\u0644\u0633\u064a\u0628\u064a\u0631\u064a",
|
| 254 |
+
"\u0643\u0644\u0628 \u062f\u0644\u0645\u0627\u0633\u064a \u0627\u0644\u0645\u0631\u0642\u0637",
|
| 255 |
+
"\u0643\u0644\u0628 \u0623\u0641\u064a\u0646\u0628\u064a\u0646\u0634\u0631",
|
| 256 |
+
"\u0643\u0644\u0628 \u0628\u0627\u0633\u0646\u062c\u064a",
|
| 257 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0628\u062c",
|
| 258 |
+
"\u0643\u0644\u0628 \u0644\u064a\u0648\u0646 \u0628\u064a\u0631\u062c\u0631",
|
| 259 |
+
"\u0643\u0644\u0628 \u0646\u064a\u0648\u0641\u0627\u0648\u0646\u062f\u0644\u0627\u0646\u062f",
|
| 260 |
+
"\u0643\u0644\u0640\u0628 \u062c\u0628\u0627\u0644 \u0627\u0644\u0628\u0631\u0627\u0646\u0633",
|
| 261 |
+
"\u0643\u0644\u0628 \u0633\u0627\u0645\u0648\u062f\u064a",
|
| 262 |
+
"\u0643\u0644\u0628 \u0628\u0648\u0645\u064a\u0631\u0627\u0646\u064a\u0627\u0646",
|
| 263 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062a\u0634\u0627\u0648 \u062a\u0634\u0627\u0648",
|
| 264 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0643\u064a\u0634\u0648\u0646\u062f",
|
| 265 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062c\u0631\u064a\u0641\u0648\u0646",
|
| 266 |
+
"\u0643\u0644\u0628\u0628 \u0628\u064a\u0645\u0628\u0631\u0648\u0643 \u0648\u064a\u0644\u0634 \u0643\u0648\u0631\u062c\u0649",
|
| 267 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0643\u0627\u0631\u062f\u064a\u062c\u0627\u0646",
|
| 268 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062a\u0648\u064a \u0627\u0644\u0628\u0648\u062f\u0644",
|
| 269 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0628\u0648\u062f\u0644 \u0627\u0644\u0635\u063a\u064a\u0631",
|
| 270 |
+
"\u0643\u0644\u0628 \u0627\u0644\u0628\u0648\u062f\u0644 \u0627\u0644\u0642\u064a\u0627\u0633\u064a",
|
| 271 |
+
"\u0627\u0644\u0643\u0644\u0628 \u0627\u0644\u0645\u0643\u0633\u064a\u0643\u064a \u0628\u0644\u0627 \u0634\u0639\u0631",
|
| 272 |
+
"\u0627\u0644\u0630\u0626\u0628 \u0627\u0644\u0631\u0645\u0627\u062f\u064a",
|
| 273 |
+
"\u0627\u0644\u0630\u0626\u0628 \u0627\u0644\u0623\u0628\u064a\u0636",
|
| 274 |
+
"\u0627\u0644\u0630\u0626\u0628 \u0627\u0644\u0623\u062d\u0645\u0631",
|
| 275 |
+
"\u0627\u0644\u0642\u064a\u0648\u0637",
|
| 276 |
+
"\u0627\u0644\u0643\u0644\u0628 \u0627\u0644\u0625\u0633\u062a\u0631\u0627\u0644\u064a",
|
| 277 |
+
"\u0643\u0644\u0628 \u0627\u0644\u062f\u0648\u0644",
|
| 278 |
+
"\u0627\u0644\u0643\u0644\u0628 \u0627\u0644\u0628\u0631\u064a \u0627\u0644\u0625\u0641\u0631\u064a\u0642\u064a",
|
| 279 |
+
"\u0627\u0644\u0636\u0628\u0639",
|
| 280 |
+
"\u0627\u0644\u062b\u0639\u0644\u0628 \u0627\u0644\u0623\u062d\u0645\u0631",
|
| 281 |
+
"\u0627\u0644\u062b\u0639\u0644\u0628 \u0627\u0644\u0642\u0632\u0645",
|
| 282 |
+
"\u0627\u0644\u062b\u0639\u0644\u0628 \u0627\u0644\u0642\u0637\u0628\u064a",
|
| 283 |
+
"\u0627\u0644\u062b\u0639\u0644\u0628 \u0627\u0644\u0631\u0645\u0627\u062f\u064a",
|
| 284 |
+
"\u0627\u0644\u0642\u0637\u0637 \u0627\u0644\u0646\u0645\u0631\u064a\u0629",
|
| 285 |
+
"\u0627\u0644\u0633\u0646\u0648\u0631 \u0627\u0644\u0645\u064f\u0631\u0642\u0637 \u0627\u0644\u0635\u063a\u064a\u0631",
|
| 286 |
+
"\u0642\u0637 \u0634\u064a\u0631\u0627\u0632\u064a",
|
| 287 |
+
"\u0627\u0644\u0642\u0637 \u0627\u0644\u0633\u064a\u0627\u0645\u064a",
|
| 288 |
+
"\u0642\u0637 \u0644\u064a\u0628\u064a",
|
| 289 |
+
"\u0623\u0633\u062f \u0627\u0644\u062c\u0628\u0627\u0644",
|
| 290 |
+
"\u0627\u0644\u0648\u064e\u0634\u064e\u0642",
|
| 291 |
+
"\u0646\u0645\u0631 ",
|
| 292 |
+
"\u0646\u0645\u0631 \u0627\u0644\u062b\u0644\u0648\u062c",
|
| 293 |
+
"\u064a\u063a\u0648\u0631",
|
| 294 |
+
"\u0623\u0633\u062f",
|
| 295 |
+
"\u0627\u0644\u0628\u0628\u0631",
|
| 296 |
+
"\u0627\u0644\u0641\u0647\u062f",
|
| 297 |
+
"\u062f\u0628 \u0628\u0646\u064a",
|
| 298 |
+
"\u062f\u0628 \u0623\u0633\u0648\u062f \u0623\u0645\u0631\u064a\u0643\u064a",
|
| 299 |
+
"\u062f\u0628 \u0642\u0637\u0628\u064a",
|
| 300 |
+
"\u0627\u0644\u062f\u0628 \u0627\u0644\u0643\u0633\u0644\u0627\u0646 ",
|
| 301 |
+
"\u0627\u0644\u0633\u0645\u0648\u0631\u064a\u0627\u062a",
|
| 302 |
+
"\u0633\u0631\u0642\u0627\u0637",
|
| 303 |
+
"\u062e\u0646\u0627\u0641\u0633 \u0646\u0645\u0631\u064a\u0629",
|
| 304 |
+
"\u062f\u0639\u0633\u0648\u0642\u0629",
|
| 305 |
+
"\u062e\u0646\u0641\u0633\u0627\u0621 \u0623\u0631\u0636\u064a\u0629",
|
| 306 |
+
"\u062e\u0646\u0627\u0641\u0633 \u0637\u0648\u064a\u0644\u0629 \u0627\u0644\u0642\u0631\u0648\u0646 ",
|
| 307 |
+
"\u062e\u0646\u0641\u0633\u0629 \u0627\u0644\u0623\u0648\u0631\u0627\u0642",
|
| 308 |
+
"\u062e\u0646\u0627\u0641\u0633 \u0627\u0644\u0631\u0648\u062b",
|
| 309 |
+
"\u062e\u0646\u0641\u0633\u0627\u0621 \u0648\u062d\u064a\u062f \u0627\u0644\u0642\u0631\u0646",
|
| 310 |
+
"\u0627\u0644\u0633\u064f\u0648\u0633\u064a\u0646\u0627\u062a",
|
| 311 |
+
"\u062d\u0634\u0631\u0629 \u0630\u0648\u0627\u062a \u0627\u0644\u062c\u0646\u0627\u062d\u064a\u0646",
|
| 312 |
+
"\u0646\u062d\u0644",
|
| 313 |
+
"\u0627\u0644\u0646\u0645\u0644",
|
| 314 |
+
"\u062c\u0646\u062f\u0628",
|
| 315 |
+
"\u062d\u0634\u0631\u0629 \u0627\u0644\u0643\u0631\u064a\u0643\u064a\u062a",
|
| 316 |
+
"\u0627\u0644\u062d\u0634\u0631\u0629 \u0627\u0644\u0639\u0635\u0648\u064a\u0629",
|
| 317 |
+
"\u0635\u0631\u0635\u0648\u0631",
|
| 318 |
+
"\u0641\u0631\u0633 \u0627\u0644\u0646\u0628\u064a",
|
| 319 |
+
"\u062d\u0634\u0631\u0629 \u0632\u064a\u0632\u064a\u0627\u062a",
|
| 320 |
+
"\u0642\u0627\u0641\u0632\u0627\u062a \u0627\u0644\u0623\u0648\u0631\u0627\u0642",
|
| 321 |
+
"\u0639\u0631\u0642\u064a\u0627\u062a \u0627\u0644\u0623\u062c\u0646\u062d\u0629",
|
| 322 |
+
"\u0627\u0644\u064a\u0639\u0633\u0648\u0628",
|
| 323 |
+
"\u0645\u0642\u062a\u0631\u0646\u0627\u062a \u0627\u0644\u0623\u062c\u0646\u062d\u0629",
|
| 324 |
+
"\u0641\u0631\u0627\u0634\u0629 \u0628\u0634\u0648\u0631\u0629 \u0627\u0644\u0635\u064a\u0641",
|
| 325 |
+
"\u0641\u0631\u0627\u0634\u0629 \u062d\u0644\u064a\u0642\u0629",
|
| 326 |
+
"\u0641\u064e\u0631\u064e\u0627\u0634\u0629 \u0627\u0644\u0645\u064e\u0644\u0643",
|
| 327 |
+
"\u0641\u0631\u0627\u0634\u0629 \u0627\u0644\u0628\u064a\u0636\u0627\u0621 \u0627\u0644\u0635\u063a\u064a\u0631\u0629",
|
| 328 |
+
"\u0641\u0631\u0627\u0634\u0629 \u0627\u0644\u0643\u0628\u0631\u064a\u062a",
|
| 329 |
+
"\u0627\u0644\u0641\u0631\u0627\u0634\u0629 \u0627\u0644\u0646\u062d\u0627\u0633\u064a\u0629",
|
| 330 |
+
"\u0646\u062c\u0645 \u0627\u0644\u0628\u062d\u0631",
|
| 331 |
+
"\u0642\u0646\u0641\u0630 \u0627\u0644\u0628\u062d\u0631",
|
| 332 |
+
"\u062e\u064a\u0627\u0631 \u0627\u0644\u0628\u062d\u0631",
|
| 333 |
+
"\u0623\u0631\u0627\u0646\u0628 \u0642\u0637\u0646\u064a\u0629 \u0627\u0644\u0630\u064a\u0644",
|
| 334 |
+
"\u0623\u0631\u0646\u0628 \u0628\u0631\u064a",
|
| 335 |
+
"\u0627\u0644\u0623\u0646\u062c\u0648\u0631\u0627",
|
| 336 |
+
"\u0623\u0642\u062f\u0627\u062f",
|
| 337 |
+
"\u0627\u0644\u0646\u064a\u0635",
|
| 338 |
+
"\u0633\u0646\u062c\u0627\u0628 \u062b\u0639\u0644\u0628\u064a",
|
| 339 |
+
"\u0627\u0644\u0645\u0631\u0645\u0648\u0637",
|
| 340 |
+
"\u0627\u0644\u0642\u0646\u062f\u0633",
|
| 341 |
+
"\u0643\u0627\u0628\u064a\u0627\u0621 \u062e\u0646\u0632\u064a\u0631\u064a\u0629",
|
| 342 |
+
"\u0627\u0644\u062d\u0635\u0627\u0646 \u0627\u0644\u062d\u0645\u064a\u0636",
|
| 343 |
+
"\u0627\u0644\u062d\u0645\u0627\u0631 \u0627\u0644\u0645\u062e\u0637\u0637",
|
| 344 |
+
"\u0627\u0644\u062e\u0646\u0632\u064a\u0631 \u0627\u0644\u0623\u0644\u064a\u0641 \u0623\u0648 \u0627\u0644\u062e\u0646\u0632\u064a\u0631 \u0627\u0644\u0645\u0633\u062a\u0623\u0646\u0633",
|
| 345 |
+
"\u0627\u0644\u062e\u0646\u0632\u064a\u0631 \u0627\u0644\u0628\u0631\u064a ",
|
| 346 |
+
"\u062e\u0646\u0627\u0632\u064a\u0631 \u062a\u0624\u0644\u0648\u0644\u064a\u0629",
|
| 347 |
+
"\u0641\u0631\u0633 \u0627\u0644\u0646\u0647\u0631",
|
| 348 |
+
"\u0627\u0644\u062b\u0648\u0631",
|
| 349 |
+
"\u062c\u0627\u0645\u0648\u0633 \u0627\u0644\u0645\u0627\u0621",
|
| 350 |
+
"\u0627\u0644\u0628\u064a\u0633\u0648\u0646",
|
| 351 |
+
"\u0630\u0643\u0631 \u0627\u0644\u062e\u0631\u0648\u0641",
|
| 352 |
+
"\u0643\u0628\u0634 \u0627\u0644\u062c\u0628\u0627\u0644 \u0627\u0644\u0635\u062e\u0631\u064a\u0629",
|
| 353 |
+
"\u0627\u0644\u0648\u0639\u0644",
|
| 354 |
+
"\u062b\u064a\u062a\u0644 \u0627\u0644\u0647\u0631\u062a\u0628\u064a\u0633",
|
| 355 |
+
"\u0625\u0645\u0628\u0627\u0644\u0629",
|
| 356 |
+
"\u063a\u0632\u0627\u0644",
|
| 357 |
+
"\u0627\u0644\u062c\u0645\u0644 \u0627\u0644\u0639\u0631\u0628\u064a",
|
| 358 |
+
"\u0627\u0644\u0644\u0627\u0651\u0645\u0629",
|
| 359 |
+
"\u0627\u0628\u0646 \u0639\u0631\u0633",
|
| 360 |
+
"\u0627\u0644\u0645\u0646\u0643",
|
| 361 |
+
"\u0627\u0644\u0633\u0641\u0634\u0629",
|
| 362 |
+
"\u0627\u0628\u0646 \u0645\u0642\u0631\u0636 \u0623\u0633\u0648\u062f \u0627\u0644\u0623\u0642\u062f\u0627\u0645",
|
| 363 |
+
"\u0642\u0636\u0627\u0639\u0629",
|
| 364 |
+
"\u0638\u0631\u0628\u0627\u0646",
|
| 365 |
+
"\u0627\u0644\u063a\u0631\u064a\u0631",
|
| 366 |
+
"\u0627\u0644\u0645\u064f\u062f\u064e\u0631\u064e\u0651\u0639 \u0623\u0648 \u0627\u0644\u0623\u0631\u0645\u0627\u062f\u064a\u0644\u0644\u0648",
|
| 367 |
+
"\u0643\u0633\u0644\u0627\u0646 \u062b\u0644\u0627\u062b\u064a \u0627\u0644\u0623\u0635\u0627\u0628\u0639",
|
| 368 |
+
"\u0642\u0631\u062f \u0627\u0644\u0627\u0648\u0631\u0627\u0646\u063a\u0648\u062a\u0627\u0646",
|
| 369 |
+
"\u0627\u0644\u063a\u0648\u0631\u064a\u0644\u0627 \u0623\u0648 \u0627\u0644\u0642\u064f\u0631\u062f\u0648\u062d",
|
| 370 |
+
"\u0627\u0644\u0634\u0645\u0628\u0627\u0646\u0632\u064a \u0627\u0644\u0634\u0627\u0626\u0639 \u0623\u0648 \u0627\u0644\u0628\u064e\u0639\u0627\u0645",
|
| 371 |
+
"\u0642\u0631\u062f \u0627\u0644\u062c\u0628\u0648\u0646",
|
| 372 |
+
"\u0642\u0631\u062f \u0627\u0644\u0633\u064a\u0627\u0645\u0646\u062c",
|
| 373 |
+
"\u0633\u0639\u062f\u0627\u0646 \u0627\u0644\u063a\u064a\u0646\u0648\u0646",
|
| 374 |
+
"\u0633\u0639\u062f\u0627\u0646 \u0627\u0644\u0628\u0627\u062a\u0627\u0633",
|
| 375 |
+
"\u0627\u0644\u0631\u064f\u0628\u064e\u0651\u0627\u062d",
|
| 376 |
+
"\u0642\u0631\u062f \u0627\u0644\u0645\u0643\u0627\u0643",
|
| 377 |
+
"\u0642\u0631\u062f \u0627\u0644\u0643\u0648\u0644\u0628\u0633\u0627\u0648\u0627\u062a",
|
| 378 |
+
"\u0642\u0631\u062f \u0627\u0644\u0643\u0648\u0644\u0628\u0633",
|
| 379 |
+
"\u0642\u0631\u062f \u0627\u0644\u0645\u0644\u0645\u0644\u0629",
|
| 380 |
+
"\u0642\u0631\u0648\u062f \u0627\u0644\u0642\u0634\u0629",
|
| 381 |
+
"\u0642\u0631\u062f \u0627\u0644\u0643\u0628\u0648\u0634\u0629 \u0623\u0628\u064a\u0636 \u0627\u0644\u0648\u062c\u0647",
|
| 382 |
+
"\u0633\u0639\u062f\u0627\u0646 \u0627\u0644\u0639\u0648\u0627\u0621",
|
| 383 |
+
"\u0642\u0631\u062f \u0633\u0639\u062f\u0627\u0646 \u0627\u0644\u062a\u064a\u062a\u064a",
|
| 384 |
+
"\u0627\u0644\u0633\u064e\u0651\u0639\u062f\u0627\u0646 \u0627\u0644\u0639\u0646\u0643\u0628\u0648\u062a\u064a",
|
| 385 |
+
"\u0627\u0644\u0633\u0639\u062f\u0627\u0646 \u0627\u0644\u0633\u0646\u062c\u0627\u0628\u064a",
|
| 386 |
+
"\u0644\u064a\u0645\u0648\u0631 \u062d\u0644\u0642\u064a \u0627\u0644\u0630\u064a\u0644",
|
| 387 |
+
"\u062d\u064a\u0648\u0627\u0646 \u0627\u0644\u0627\u0646\u062f\u0631\u064a",
|
| 388 |
+
"\u0641\u064a\u0644 \u0647\u0646\u062f\u064a",
|
| 389 |
+
"\u0641\u064a\u0644 \u0623\u0641\u0631\u064a\u0642\u064a",
|
| 390 |
+
"\u0627\u0644\u0628\u0627\u0646\u062f\u0627 \u0627\u0644\u0623\u062d\u0645\u0631",
|
| 391 |
+
"\u0627\u0644\u0628\u0627\u0646\u062f\u0627 \u0627\u0644\u0639\u0645\u0644\u0627\u0642\u0629",
|
| 392 |
+
"\u062b\u064a\u0631\u0633\u064a\u062a\u064a\u0627\u062a",
|
| 393 |
+
"\u0633\u0645\u0643 \u0627\u0644\u0627\u0646\u0642\u0644\u064a\u0633",
|
| 394 |
+
"\u0633\u0645\u0643 \u0627\u0644\u0643\u0648\u0647\u0648 \u0627\u0644\u0633\u064a\u0644\u0645\u0648\u0646",
|
| 395 |
+
"\u0633\u0645\u0643 \u0627\u0644\u062c\u0645\u0627\u0644 \u0627\u0644\u0635\u062e\u0631\u064a",
|
| 396 |
+
"\u0633\u0645\u0643\u0629 \u0627\u0644\u0645\u0647\u0631\u062c",
|
| 397 |
+
"\u0633\u0645\u0643\u0629 \u0627\u0644\u062d\u0641\u0634\u064a\u0629",
|
| 398 |
+
"\u0633\u0645\u0643 \u0627\u0644\u0631\u0645\u062d",
|
| 399 |
+
"\u0633\u0645\u0643\u0629 \u0627\u0644\u062a\u0646\u064a\u0646",
|
| 400 |
+
"\u0633\u0645\u0643\u0629 \u0627\u0644\u064a\u0646\u0641\u0648\u062e\u064a\u0629",
|
| 401 |
+
"\u0627\u0644\u0645\u0650\u0639\u0652\u062f\u064e\u0627\u062f",
|
| 402 |
+
"\u0627\u0644\u0639\u0628\u0627\u0621\u0629",
|
| 403 |
+
"\u0644\u0628\u0627\u0633 \u062a\u062e\u0631\u062c",
|
| 404 |
+
"\u0623\u0643\u0648\u0631\u062f\u064a\u0648\u0646",
|
| 405 |
+
"\u0627\u0644\u0642\u064a\u062b\u0627\u0631\u0629 \u0627\u0644\u0635\u0648\u062a\u064a\u0629",
|
| 406 |
+
"\u062d\u0627\u0645\u0644\u0629 \u0637\u0627\u0626\u0631\u0627\u062a",
|
| 407 |
+
"\u0637\u0627\u0626\u0631\u0629 \u0631\u062d\u0644\u0627\u062a",
|
| 408 |
+
"\u0633\u0641\u064a\u0646\u0629 \u0647\u0648\u0627\u0626\u064a\u0629",
|
| 409 |
+
"\u0645\u0630\u0628\u062d",
|
| 410 |
+
"\u0633\u064a\u0627\u0631\u0629 \u0625\u0633\u0639\u0627\u0641",
|
| 411 |
+
"\u0627\u0644\u0645\u0631\u0643\u0628\u0629 \u0627\u0644\u0628\u0631\u0645\u0627\u0626\u064a\u0629",
|
| 412 |
+
"\u0627\u0644\u0633\u0627\u0639\u0629 \u0627\u0644\u0645\u062a\u0646\u0627\u0638\u0631\u0629",
|
| 413 |
+
"\u0627\u0644\u0645\u0646\u062d\u0644 \u0623\u0648 \u0627\u0644\u0645\u064e\u0646\u062d\u064e\u0644\u064e\u0629",
|
| 414 |
+
"\u0645\u0626\u0632\u0631",
|
| 415 |
+
"\u062d\u0627\u0648\u064a\u0629 \u0627\u0644\u0646\u0641\u0627\u064a\u0627\u062a",
|
| 416 |
+
"\u0628\u0646\u062f\u0642\u064a\u0629 \u0627\u0642\u062a\u062d\u0627\u0645",
|
| 417 |
+
"\u062d\u0642\u064a\u0628\u0629 \u0638\u0647\u0631",
|
| 418 |
+
"\u0627\u0644\u0645\u062e\u0628\u0632",
|
| 419 |
+
"\u0639\u0627\u0631\u0636\u0629 \u0627\u0644\u062a\u0648\u0627\u0632\u0646",
|
| 420 |
+
"\u0627\u0644\u0628\u0627\u0644\u0648\u0646",
|
| 421 |
+
"\u0642\u0644\u0645 \u062d\u0628\u0631 \u062c\u0627\u0641",
|
| 422 |
+
"\u0636\u0645\u0627\u062f\u0629 \u0637\u0628\u064a\u0629 \u0644\u0627\u0635\u0642\u0629",
|
| 423 |
+
"\u0627\u0644\u0628\u0627\u0646\u062c\u0648",
|
| 424 |
+
"\u062f\u0631\u0627\u0628\u0632\u064a\u0646",
|
| 425 |
+
"\u062d\u062f\u064a\u062f\u0629 (\u0631\u0641\u0639 \u0623\u062b\u0642\u0627\u0644)",
|
| 426 |
+
"\u0643\u0631\u0633\u064a \u0627\u0644\u062d\u0644\u0627\u0642\u0629",
|
| 427 |
+
"\u0645\u062d\u0644 \u0635\u0627\u0644\u0648\u0646 \u0627\u0644\u062d\u0644\u0627\u0642\u0629",
|
| 428 |
+
"\u062d\u0638\u064a\u0631\u0629",
|
| 429 |
+
"\u0627\u0644\u0628\u0627\u0631\u0648\u0645\u062a\u0631",
|
| 430 |
+
"\u0627\u0644\u0628\u0631\u0645\u064a\u0644",
|
| 431 |
+
"\u0639\u062c\u0644\u0629 \u0627\u0644\u064a\u062f",
|
| 432 |
+
"\u0643\u0631\u0629 \u0627\u0644\u0642\u0627\u0639\u062f\u0629 \u0623\u0648 \u0627\u0644\u0628\u064a\u0633\u0628\u0648\u0644",
|
| 433 |
+
"\u0643\u0631\u0629 \u0633\u0644\u0629",
|
| 434 |
+
"\u0633\u0631\u064a\u0631 \u0627\u0644\u0623\u0637\u0641\u0627\u0644",
|
| 435 |
+
"\u0645\u0632\u0645\u0627\u0631",
|
| 436 |
+
"\u0642\u0628\u0639\u0629 \u0633\u0628\u0627\u062d\u0629",
|
| 437 |
+
"\u0645\u0646\u0634\u0641\u0629",
|
| 438 |
+
"\u062d\u0648\u0636 \u0627\u0644\u0627\u0633\u062a\u062d\u0645\u0627\u0645",
|
| 439 |
+
"\u0633\u064a\u0627\u0629 \u0648\u0627\u063a\u0646",
|
| 440 |
+
"\u0627\u0644\u0645\u0646\u0627\u0631\u0629 \u0623\u0648 \u0627\u0644\u0641\u0646\u0627\u0631",
|
| 441 |
+
"\u0643\u0648\u0628 \u0632\u062c\u0627\u062c\u064a",
|
| 442 |
+
"\u0642\u0628\u0639\u0629 \u0627\u0644\u062f\u0628",
|
| 443 |
+
"\u0632\u062c\u0627\u062c\u0629 \u0627\u0644\u0628\u064a\u0631\u0629",
|
| 444 |
+
"\u0643\u0623\u0633 \u062c\u0639\u0629",
|
| 445 |
+
"\u0628\u0631\u062c \u0627\u0644\u0646\u0627\u0642\u0648\u0633",
|
| 446 |
+
"\u0645\u0631\u0648\u0644\u0629",
|
| 447 |
+
"\u0627\u0644\u062f\u0631\u0627\u062c\u0629 \u0627\u0644\u062a\u0631\u0627\u062f\u0641\u064a\u0629",
|
| 448 |
+
"\u0628\u0643\u064a\u0646\u064a",
|
| 449 |
+
"\u0627\u0644\u0645\u062c\u0644\u062f\u0627\u062a \u0627\u0644\u062d\u0644\u0642\u064a\u0629",
|
| 450 |
+
"\u0627\u0644\u0645\u0650\u0646\u0652\u0638\u0627\u0631",
|
| 451 |
+
"\u0635\u0646\u062f\u0648\u0642 \u0627\u0644\u0639\u0634",
|
| 452 |
+
"\u0627\u0644\u0645\u0631\u0641\u0623",
|
| 453 |
+
"\u0627\u0644\u0632\u0644\u0627\u062c\u0629 \u0627\u0644\u062c\u0645\u0627\u0639\u064a\u0629",
|
| 454 |
+
"\u0631\u0628\u0637\u0629 \u0639\u0646\u0642 \u0628\u0648\u0644\u0648",
|
| 455 |
+
"\u0627\u0644\u0643\u0632\u0629",
|
| 456 |
+
"\u0631\u0641 \u0627\u0644\u0643\u062a\u0628",
|
| 457 |
+
"\u0645\u0643\u062a\u0628\u0629",
|
| 458 |
+
"\u063a\u0637\u0627\u0621 \u0642\u0627\u0631\u0648\u0631\u0629",
|
| 459 |
+
"\u0627\u0644\u0642\u0648\u0633",
|
| 460 |
+
"\u0623\u0631\u0628\u0629 \u0641\u0631\u0627\u0634\u064a\u0629",
|
| 461 |
+
"\u0644\u0627\u0641\u062a\u0629 \u062a\u0627\u0631\u064a\u062e\u064a\u0629 \u0645\u0646 \u0627\u0644\u0646\u062d\u0627\u0633",
|
| 462 |
+
"\u062d\u0645\u0627\u0644\u0629 \u0627\u0644\u0635\u062f\u0631",
|
| 463 |
+
"\u062d\u0627\u062c\u0632 \u0627\u0644\u0623\u0645\u0648\u0627\u062c",
|
| 464 |
+
"\u062f\u0631\u0639 \u0627\u0644\u0635\u062f\u0631",
|
| 465 |
+
"\u0627\u0644\u0645\u0643\u0646\u0633\u0629",
|
| 466 |
+
"\u0627\u0644\u062f\u0644\u0648",
|
| 467 |
+
"\u0645\u0631\u0628\u0637 \u0627\u0644\u062d\u0632\u0627\u0645",
|
| 468 |
+
"\u0627\u0644\u0633\u062a\u0631\u0629 \u0627\u0644\u0648\u0627\u0642\u064a\u0629 \u0645\u0646 \u0627\u0644\u0631\u0635\u0627\u0635",
|
| 469 |
+
"\u0642\u0637\u0627\u0631 \u0627\u0644\u0637\u0644\u0642\u0629",
|
| 470 |
+
"\u0627\u0644\u0645\u062c\u0632\u0631\u0629",
|
| 471 |
+
"\u0633\u064a\u0627\u0631\u0629 \u0623\u062c\u0631\u0629",
|
| 472 |
+
"\u062d\u0644\u0629 (\u0622\u0646\u064a\u0629)",
|
| 473 |
+
"\u0634\u0645\u0639\u0629",
|
| 474 |
+
"\u0645\u062f\u0641\u0639",
|
| 475 |
+
"\u0642\u0627\u0631\u0628 \u0627\u0644\u0643\u0627\u0646\u0648",
|
| 476 |
+
"\u0641\u0627\u062a\u062d\u0629 \u0639\u0644\u0628",
|
| 477 |
+
"\u0633\u062a\u0631\u0629 \u0645\u062d\u0628\u0648\u0643\u0629",
|
| 478 |
+
"\u0627\u0644\u0645\u0631\u0622\u0629 \u0627\u0644\u062c\u0627\u0646\u0628\u064a\u0629",
|
| 479 |
+
"\u062f\u0648\u0627\u0645\u0629 \u0627\u0644\u062e\u064a\u0644",
|
| 480 |
+
" \u0623\u062f\u0648\u0627\u062a \u0627\u0644\u0635\u064a\u0627\u0646\u0629",
|
| 481 |
+
"\u0635\u0646\u062f\u0648\u0642 \u0643\u0631\u062a\u0648\u0646",
|
| 482 |
+
"\u0627\u0644\u0625\u0637\u0627\u0631 \u0627\u0644\u0645\u0637\u0627\u0637",
|
| 483 |
+
"\u0627\u0644\u0635\u0631\u0627\u0641 \u0627\u0644\u0622\u0644\u064a",
|
| 484 |
+
"\u0627\u0644\u0634\u0631\u064a\u0637 \u0627\u0644\u0645\u062f\u0645\u062c",
|
| 485 |
+
"\u0627\u0644\u0645\u0633\u062c\u0644",
|
| 486 |
+
"\u0627\u0644\u0642\u064e\u0644\u0652\u0639\u064e\u0629",
|
| 487 |
+
"\u0627\u0644\u0642\u0637\u0645\u0631\u0627\u0646",
|
| 488 |
+
"\u062c\u0647\u0627\u0632 \u0627\u0644\u0642\u0631\u0635 \u0627\u0644\u0645\u0636\u063a\u0648\u0637",
|
| 489 |
+
"\u062a\u0634\u064a\u0644\u0648",
|
| 490 |
+
"\u0647\u0627\u062a\u0641 \u0645\u062d\u0645\u0648\u0644",
|
| 491 |
+
"\u0633\u0644\u0633\u0644\u0629",
|
| 492 |
+
"\u0633\u064a\u0627\u062c \u0645\u0634\u0628\u0643",
|
| 493 |
+
"\u0627\u0644\u0632\u0631\u062f",
|
| 494 |
+
"\u0645\u0646\u0634\u0627\u0631 \u062c\u0646\u0632\u064a\u0631\u064a",
|
| 495 |
+
" \u0635\u0646\u062f\u0648\u0642 \u0627\u0644\u062a\u062e\u0632\u064a\u0646",
|
| 496 |
+
"\u062e\u0632\u0627\u0646\u0629 \u0627\u0644\u0623\u062b\u0627\u062b",
|
| 497 |
+
"\u0627\u0644\u0622\u0644\u0629 \u0627\u0644\u0625\u064a\u0642\u0627\u0639\u064a\u0629 ",
|
| 498 |
+
"\u0627\u0644\u062e\u0632\u0627\u0646\u0629 \u0627\u0644\u0635\u064a\u0646\u064a\u0629",
|
| 499 |
+
"\u062c\u0648\u0631\u0628 \u0639\u064a\u062f \u0627\u0644\u0645\u064a\u0644\u0627\u062f",
|
| 500 |
+
"\u0643\u0646\u064a\u0633\u0629",
|
| 501 |
+
"\u0645\u0633\u0631\u062d \u0623\u0641\u0644\u0627\u0645",
|
| 502 |
+
"\u0627\u0644\u0633\u0627\u0637\u0648\u0631",
|
| 503 |
+
"\u0645\u0633\u0627\u0643\u0646 \u0627\u0644\u062c\u0631\u0641",
|
| 504 |
+
"\u0627\u0644\u0645\u0639\u0637\u0641 \u0627\u0644\u0641\u0636\u0641\u0627\u0636",
|
| 505 |
+
"\u0627\u0644\u0642\u0628\u0642\u0627\u0628",
|
| 506 |
+
"\u062e\u0627\u0644\u0637 \u0627\u0644\u0645\u0634\u0631\u0648\u0628\u0627\u062a \u0627\u0644\u0643\u062d\u0648\u0644\u064a\u0629",
|
| 507 |
+
"\u0643\u0648\u0632 (\u0622\u0646\u064a\u0629)",
|
| 508 |
+
"\u0622\u0644\u0629 \u062a\u062d\u0636\u064a\u0631 \u0627\u0644\u0642\u0647\u0648\u0629",
|
| 509 |
+
"\u0627\u0644\u0634\u0643\u0644 \u0627\u0644\u062d\u0644\u0632\u0648\u0646\u064a",
|
| 510 |
+
"\u0627\u0644\u0642\u0641\u0644 \u0627\u0644\u0631\u0645\u0632\u064a",
|
| 511 |
+
"\u0644\u0648\u062d\u0629 \u0627\u0644\u0645\u0641\u0627\u062a\u064a\u062d",
|
| 512 |
+
"\u0645\u062a\u062c\u0631 \u0627\u0644\u062d\u0644\u0648\u064a\u0627\u062a",
|
| 513 |
+
"\u0633\u0641\u064a\u0646\u0629 \u062d\u0627\u0648\u064a\u0627\u062a",
|
| 514 |
+
"\u0633\u064a\u0627\u0631\u0629 \u0645\u0643\u0634\u0648\u0641\u0629",
|
| 515 |
+
"\u0628\u0631\u0627\u0645\u0629",
|
| 516 |
+
"\u0627\u0644\u0634\u064a\u0627\u0639",
|
| 517 |
+
"\u062c\u0632\u0645\u0629 \u0631\u0627\u0639\u064a \u0627\u0644\u0628\u0642\u0631",
|
| 518 |
+
"\u0642\u0628\u0639\u0629 \u0631\u0627\u0639\u064a \u0627\u0644\u0628\u0642\u0631",
|
| 519 |
+
"\u0627\u0644\u0645\u0647\u062f",
|
| 520 |
+
"\u0631\u0627\u0641\u0639\u0629",
|
| 521 |
+
"\u0627\u0644\u062e\u0648\u0630\u0629",
|
| 522 |
+
"\u062d\u0627\u0648\u064a\u0629 \u0634\u062d\u0646 \u0643\u0628\u064a\u0631\u0629",
|
| 523 |
+
"\u0633\u0631\u064a\u0631 \u0627\u0644\u0631\u0636\u064a\u0639",
|
| 524 |
+
"\u0642\u062f\u0631 \u0627\u0644\u0637\u0628\u062e \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a",
|
| 525 |
+
"\u0643\u0631\u0648\u0643\u064a\u062a",
|
| 526 |
+
"\u0627\u0644\u0639\u0643\u0627\u0632",
|
| 527 |
+
"\u0643\u0648\u064a\u0631\u0633",
|
| 528 |
+
"\u0627\u0644\u0633\u062f",
|
| 529 |
+
"\u0627\u0644\u0645\u0643\u062a\u0628",
|
| 530 |
+
"\u062d\u0627\u0633\u0648\u0628 \u0645\u0643\u062a\u0628\u064a",
|
| 531 |
+
"\u0627\u0644\u0647\u0627\u062a\u0641 \u0627\u0644\u062f\u0648\u0627\u0631",
|
| 532 |
+
"\u0627\u0644\u062d\u0641\u0627\u0638\u0629",
|
| 533 |
+
"\u0627\u0644\u0633\u0627\u0639\u0629 \u0627\u0644\u0631\u0642\u0645\u064a\u0629",
|
| 534 |
+
"\u0633\u0627\u0639\u0627\u062a \u0627\u0644\u064a\u062f \u0627\u0644\u0631\u0642\u0645\u064a\u0629",
|
| 535 |
+
"\u0627\u0644\u0645\u0646\u0636\u062f\u0629",
|
| 536 |
+
"\u0642\u0645\u0627\u0634 \u0627\u0644\u0623\u0637\u0628\u0627\u0642",
|
| 537 |
+
"\u063a\u0633\u0627\u0644\u0629 \u0635\u062d\u0648\u0646",
|
| 538 |
+
"\u0645\u0643\u0628\u062d \u0642\u0631\u0635\u064a",
|
| 539 |
+
"\u0645\u064a\u0646\u0627\u0621",
|
| 540 |
+
"\u0627\u0644\u0632\u0644\u0627\u062c\u0629 \u0627\u0644\u062a\u064a \u062a\u062c\u0631\u0647\u0627 \u0627\u0644\u0643\u0644\u0627\u0628",
|
| 541 |
+
"\u0642\u0628\u0629",
|
| 542 |
+
"\u0627\u0644\u062d\u0635\u064a\u0631\u0629",
|
| 543 |
+
"\u0645\u0646\u0635\u0629 \u062d\u0641\u0631",
|
| 544 |
+
"\u0627\u0644\u0637\u0628\u0644",
|
| 545 |
+
"\u0639\u0635\u0627 \u0627\u0644\u0637\u0628\u0644",
|
| 546 |
+
"\u062b\u0642\u0627\u0644\u0627\u062a \u062d\u062f\u064a\u062f",
|
| 547 |
+
"\u0641\u0631\u0646 \u0647\u0648\u0644\u0646\u062f\u064a",
|
| 548 |
+
"\u0645\u0631\u0648\u062d\u0629",
|
| 549 |
+
"\u0627\u0644\u062c\u064a\u062a\u0627\u0631 \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a",
|
| 550 |
+
"\u0627\u0644\u0642\u0627\u0637\u0631\u0629 \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a\u0629",
|
| 551 |
+
"\u0645\u0631\u0643\u0632 \u0627\u0644\u062a\u0631\u0641\u064a\u0647",
|
| 552 |
+
"\u0638\u0631\u0641 \u0628\u0631\u064a\u062f\u064a",
|
| 553 |
+
"\u0622\u0644\u0629 \u0627\u0644\u0625\u0633\u0628\u0631\u064a\u0633\u0648",
|
| 554 |
+
"\u0628\u0648\u062f\u0631\u0629 \u0627\u0644\u0648\u062c\u0647",
|
| 555 |
+
"\u0623\u0635\u0644\u0629 \u0631\u064a\u0634\u064a\u0629",
|
| 556 |
+
"\u062e\u0632\u0627\u0646\u0629 \u0627\u0644\u0645\u0644\u0641\u0627\u062a",
|
| 557 |
+
"\u0632\u0648\u0631\u0642 \u0627\u0644\u0625\u0637\u0641\u0627\u0621",
|
| 558 |
+
"\u0633\u064a\u0627\u0631\u0629 \u0627\u0644\u0625\u0637\u0641\u0627\u0621",
|
| 559 |
+
"\u0648\u0627\u0642\u064a \u0627\u0644\u0646\u0627\u0631",
|
| 560 |
+
"\u0633\u0627\u0631\u064a\u0629 \u0627\u0644\u0639\u0644\u0645",
|
| 561 |
+
"\u0627\u0644\u0641\u0644\u0648\u062a",
|
| 562 |
+
"\u0643\u0631\u0633\u064a \u0642\u0627\u0628\u0644 \u0644\u0644\u0637\u064a",
|
| 563 |
+
"\u062e\u0648\u0630\u0629 \u0643\u0631\u0629 \u0627\u0644\u0642\u062f\u0645",
|
| 564 |
+
"\u0631\u0627\u0641\u0639\u0629 \u0627\u0644\u062d\u0645\u0648\u0644\u0629",
|
| 565 |
+
"\u0627\u0644\u0646\u0627\u0641\u0648\u0631\u0629",
|
| 566 |
+
"\u0642\u0644\u0645 \u062d\u0628\u0631 \u0633\u0627\u0626\u0644",
|
| 567 |
+
"\u0627\u0644\u0633\u0631\u064a\u0631 \u0628\u0623\u0631\u0628\u0639\u0629 \u0623\u0639\u0645\u062f\u0629",
|
| 568 |
+
"\u0633\u064a\u0627\u0631\u0629 \u0634\u062d\u0646",
|
| 569 |
+
"\u0627\u0644\u0628\u0648\u0642 \u0627\u0644\u0641\u0631\u0646\u0633\u064a",
|
| 570 |
+
"\u0645\u0642\u0644\u0627\u0629",
|
| 571 |
+
"\u0627\u0644\u0645\u0644\u0627\u0628\u0633 \u0627\u0644\u0645\u0635\u0646\u0648\u0639\u0629 \u0645\u0646 \u0627\u0644\u0641\u0631\u0648\u0629",
|
| 572 |
+
"\u0634\u0627\u062d\u0646\u0629 \u0642\u0645\u0627\u0645\u0629",
|
| 573 |
+
"\u0642\u0646\u0627\u0639 \u0627\u0644\u063a\u0627\u0632",
|
| 574 |
+
"\u0645\u0636\u062e\u0629 \u0627\u0644\u0648\u0642\u0648\u062f",
|
| 575 |
+
"\u0643\u0623\u0633 \u0627\u0644\u0646\u0628\u064a\u0630",
|
| 576 |
+
"\u0633\u064a\u0627\u0631\u0629 \u062c\u0648 \u0643\u0627\u0631\u062a",
|
| 577 |
+
"\u0643\u0631\u0629 \u0627\u0644\u062c\u0648\u0644\u0641",
|
| 578 |
+
"\u0639\u0631\u0628\u0629 \u0627\u0644\u062c\u0648\u0644\u0641",
|
| 579 |
+
"\u0627\u0644\u0642\u0627\u0631\u0628 \u0627\u0644\u0637\u0648\u064a\u0644 \u0623\u0648 \u0627\u0644\u063a\u0646\u062f\u0648\u0644",
|
| 580 |
+
"\u0627\u0644\u0635\u0646\u062c\u0629",
|
| 581 |
+
"\u0627\u0644\u062b\u0648\u0628 \u0627\u0644\u0646\u0633\u0627\u0626\u064a \u0623\u0648 \u0627\u0644\u0641\u0633\u062a\u0627\u0646",
|
| 582 |
+
"\u0627\u0644\u0628\u064a\u0627\u0646\u0648 \u0627\u0644\u0643\u0628\u064a\u0631",
|
| 583 |
+
"\u0627\u0644\u062f\u0641\u064a\u0626\u0629 \u0627\u0644\u0632\u0631\u0627\u0639\u064a\u0629",
|
| 584 |
+
"\u0634\u0628\u0643 \u0627\u0644\u0633\u064a\u0627\u0631\u0629",
|
| 585 |
+
"\u0627\u0644\u0628\u0642\u0627\u0644\u0629",
|
| 586 |
+
"\u0627\u0644\u0645\u0642\u0635\u0644\u0629",
|
| 587 |
+
"\u0645\u0634\u0628\u0643 \u0644\u0644\u0634\u0639\u0631",
|
| 588 |
+
"\u0628\u062e\u0627\u062e \u0645\u062b\u0628\u062a \u0627\u0644\u0634\u0639\u0631",
|
| 589 |
+
"\u0627\u0644\u0639\u0631\u0628\u0629 \u0646\u0635\u0641 \u0627\u0644\u0645\u062c\u0646\u0632\u0631\u0629",
|
| 590 |
+
"\u0645\u0637\u0631\u0642\u0629",
|
| 591 |
+
"\u0627\u0644\u0633\u0644\u0629",
|
| 592 |
+
"\u0645\u062c\u0641\u0641 \u0627\u0644\u0634\u0639\u0631",
|
| 593 |
+
"\u062c\u0647\u0627\u0632 \u0645\u062d\u0645\u0648\u0644 \u0628\u0627\u0644\u064a\u062f",
|
| 594 |
+
"\u0627\u0644\u0645\u0646\u062f\u064a\u0644 \u0623\u0648 \u0627\u0644\u0645\u062d\u0631\u0645\u0629",
|
| 595 |
+
"\u0642\u0631\u0635 \u0635\u0644\u0628",
|
| 596 |
+
"\u0627\u0644\u0634\u064e\u0651\u0641\u064e\u0648\u0650\u064a\u064e\u0651\u0629",
|
| 597 |
+
"\u0627\u0644\u0642\u064a\u062b\u0627\u0631\u0629",
|
| 598 |
+
"\u0627\u0644\u062d\u0635\u0651\u0627\u062f\u0629",
|
| 599 |
+
"\u062e\u0635\u064a\u0646",
|
| 600 |
+
"\u062d\u0627\u0641\u0638\u0629 \u0627\u0644\u0645\u0633\u062f\u0633",
|
| 601 |
+
"\u0627\u0644\u0645\u0633\u0631\u062d \u0627\u0644\u0645\u0646\u0632\u0644\u064a",
|
| 602 |
+
"\u0642\u0631\u0635 \u0639\u0633\u0644",
|
| 603 |
+
"\u0627\u0644\u062e\u0637\u0627\u0641",
|
| 604 |
+
"\u0627\u0644\u062a\u0646\u0648\u0631\u0629 \u0627\u0644\u0645\u064f\u0637\u064e\u0648\u064e\u0651\u0642\u0629",
|
| 605 |
+
"\u0639\u0642\u0644\u0629 (\u062c\u0645\u0628\u0627\u0632)",
|
| 606 |
+
"\u0639\u0631\u0628\u0629 \u0627\u0644\u062e\u064a\u0648\u0644",
|
| 607 |
+
"\u0633\u0627\u0639\u0629 \u0631\u0645\u0644\u064a\u0629",
|
| 608 |
+
"\u0622\u064a \u0628\u0648\u062f",
|
| 609 |
+
"\u0627\u0644\u0645\u0643\u0648\u0627\u0629",
|
| 610 |
+
"\u0627\u0644\u0642\u0631\u0639\u0629 \u0627\u0644\u0645\u0636\u064a\u0626\u0629",
|
| 611 |
+
"\u0627\u0644\u062c\u064a\u0646\u0632",
|
| 612 |
+
"\u062c\u064a\u0628 (\u0633\u064a\u0627\u0631\u0629)",
|
| 613 |
+
"\u0642\u0645\u064a\u0635 \u0642\u0635\u064a\u0631 \u0627\u0644\u0643\u0645\u064a\u0646",
|
| 614 |
+
"\u0623\u062d\u062c\u064a\u0629 \u0627\u0644\u0635\u0648\u0631 \u0627\u0644\u0645\u0642\u0637\u0648\u0639\u0629",
|
| 615 |
+
"\u0631\u064a\u0643\u0634\u0627",
|
| 616 |
+
"\u0630\u0631\u0627\u0639 \u0627\u0644\u062a\u0648\u062c\u064a\u0647",
|
| 617 |
+
"\u0627\u0644\u0643\u064a\u0645\u0648\u0646\u0648",
|
| 618 |
+
"\u0648\u0633\u0627\u062f\u0627\u062a \u0627\u0644\u0631\u0643\u0628\u0629",
|
| 619 |
+
"\u0627\u0644\u0639\u0642\u062f\u0629",
|
| 620 |
+
"\u0645\u0639\u0637\u0641 \u0627\u0644\u0645\u062e\u062a\u0628\u0631",
|
| 621 |
+
"\u0627\u0644\u0645\u063a\u0631\u0641\u0629",
|
| 622 |
+
"\u0639\u0627\u0643\u0633 \u0627\u0644\u0636\u0648\u0621",
|
| 623 |
+
"\u062d\u0627\u0633\u0648\u0628 \u0645\u062d\u0645\u0648\u0644",
|
| 624 |
+
"\u062c\u0632\u0627\u0632\u0629 \u0627\u0644\u0639\u0634\u0628",
|
| 625 |
+
"\u063a\u0637\u0627\u0621 \u0627\u0644\u0639\u062f\u0633\u0629",
|
| 626 |
+
"\u0641\u062a\u0627\u062d\u0629 \u0627\u0644\u0631\u0633\u0627\u0626\u0644",
|
| 627 |
+
"\u0645\u0643\u062a\u0628\u0629",
|
| 628 |
+
"\u0642\u0627\u0631\u0628 \u0627\u0644\u0646\u062c\u0627\u0629",
|
| 629 |
+
"\u0627\u0644\u0642\u064e\u062f\u064e\u0651\u0627\u062d\u064e\u0629",
|
| 630 |
+
"\u0627\u0644\u0644\u064a\u0645\u0648\u0632\u064a\u0646",
|
| 631 |
+
"\u0639\u0627\u0628\u0631\u0629 \u0645\u062d\u064a\u0637 \u0645\u0646\u062a\u0638\u0645\u0629",
|
| 632 |
+
"\u0623\u062d\u0645\u0631 \u0634\u0641\u0627\u0647",
|
| 633 |
+
"\u0627\u0644\u062d\u0630\u0627\u0621 \u0633\u0647\u0644 \u0627\u0644\u0627\u0631\u062a\u062f\u0627\u0621",
|
| 634 |
+
"\u063a\u0633\u0648\u0644",
|
| 635 |
+
"\u0645\u0643\u0628\u0631 \u0627\u0644\u0635\u0648\u062a",
|
| 636 |
+
"\u0639\u062f\u0633\u0629",
|
| 637 |
+
"\u0627\u0644\u0645\u0646\u0634\u0631\u0629",
|
| 638 |
+
"\u0627\u0644\u0628\u0648\u0635\u0644\u0629",
|
| 639 |
+
"\u062d\u0642\u064a\u0628\u0629 \u0633\u0627\u0639\u064a \u0627\u0644\u0628\u0631\u064a\u062f",
|
| 640 |
+
"\u0635\u0646\u062f\u0648\u0642 \u0628\u0631\u064a\u062f",
|
| 641 |
+
"\u0627\u0644\u062c\u0648\u0627\u0631\u0628 \u0627\u0644\u0637\u0648\u064a\u0644\u0629",
|
| 642 |
+
"\u0627\u0644\u0645\u0627\u064a\u0648\u0647",
|
| 643 |
+
"\u063a\u0637\u0627\u0621 \u0627\u0644\u0645\u0637\u0628\u0642",
|
| 644 |
+
"\u0622\u0644\u0629 \u0645\u0627\u0631\u0627\u0643\u0633",
|
| 645 |
+
"\u0627\u0644\u0645\u0627\u0631\u064a\u0645\u0628\u0627",
|
| 646 |
+
"\u0642\u0646\u0627\u0639",
|
| 647 |
+
"\u0623\u0639\u0648\u0627\u062f \u0627\u0644\u062b\u0642\u0627\u0628",
|
| 648 |
+
"\u0633\u0627\u0631\u064a\u0629 \u0645\u0627\u064a\u0648",
|
| 649 |
+
"\u0627\u0644\u0645\u062a\u0627\u0647\u0629",
|
| 650 |
+
"\u0643\u0648\u0628 \u0627\u0644\u0642\u064a\u0627\u0633",
|
| 651 |
+
"\u062e\u0632\u0627\u0646\u0629 \u0627\u0644\u0623\u062f\u0648\u064a\u0629",
|
| 652 |
+
"\u0627\u0644\u0622\u062b\u0627\u0631 \u0627\u0644\u0635\u062e\u0631\u064a\u0629",
|
| 653 |
+
"\u0627\u0644\u0644\u0627\u0642\u0637 \u0627\u0644\u0635\u0648\u062a\u064a",
|
| 654 |
+
"\u0641\u0631\u0646 \u0627\u0644\u0645\u064a\u0643\u0631\u0648\u064a\u0641",
|
| 655 |
+
"\u0627\u0644\u0632\u064a \u0627\u0644\u0639\u0633\u0643\u0631\u064a",
|
| 656 |
+
"\u0645\u062f\u0644\u062c\u0629",
|
| 657 |
+
"\u0627\u0644\u062d\u0627\u0641\u0644\u0629 \u0627\u0644\u0635\u063a\u064a\u0631\u0629",
|
| 658 |
+
"\u0627\u0644\u062a\u0646\u0648\u0631\u0629 \u0627\u0644\u0642\u0635\u064a\u0631\u0629",
|
| 659 |
+
"\u0633\u064a\u0627\u0631\u0629 \u0627\u0644\u0645\u064a\u0646\u064a \u0641\u0627\u0646 \u0627\u0644\u0639\u0627\u0626\u0644\u064a\u0629",
|
| 660 |
+
"\u0627\u0644\u0642\u0630\u064a\u0641\u0629 \u0627\u0644\u0645\u0648\u062c\u0647\u0629",
|
| 661 |
+
"\u0627\u0644\u0642\u0641\u0627\u0632 \u0645\u0644\u062a\u0635\u0642 \u0627\u0644\u0623\u0635\u0627\u0628\u0639",
|
| 662 |
+
"\u0637\u0628\u0642 \u062e\u0644\u0637",
|
| 663 |
+
"\u0627\u0644\u0645\u0646\u0632\u0644 \u0627\u0644\u0645\u062a\u0646\u0642\u0644",
|
| 664 |
+
"\u0641\u0648\u0631\u062f \u0645\u0648\u062f\u064a\u0644 \u062a\u064a",
|
| 665 |
+
"\u0627\u0644\u0645\u0648\u062f\u0645",
|
| 666 |
+
"\u0627\u0644\u062f\u064a\u0631",
|
| 667 |
+
"\u0634\u0627\u0634\u0629 \u062d\u0627\u0633\u0648\u0628",
|
| 668 |
+
"\u0627\u0644\u062f\u0631\u0627\u062c\u0629 \u0627\u0644\u0646\u0627\u0631\u064a\u0629 \u0627\u0644\u0635\u063a\u064a\u0631\u0629",
|
| 669 |
+
"\u0627\u0644\u0647\u0627\u0648\u0646 \u0648\u0627\u0644\u0645\u062f\u0642\u0629",
|
| 670 |
+
"\u0627\u0644\u0642\u0628\u0639\u0629 \u0627\u0644\u062c\u0627\u0645\u0639\u064a\u0629 \u0627\u0644\u0645\u0631\u0628\u0639\u0629",
|
| 671 |
+
"\u0645\u0633\u062c\u062f",
|
| 672 |
+
"\u0627\u0644\u0646\u0627\u0645\u0648\u0633\u064a\u0651\u0629",
|
| 673 |
+
"\u0627\u0644\u062f\u0639\u0631\u0648\u0645\u0629",
|
| 674 |
+
"\u0627\u0644\u062f\u0631\u0627\u062c\u0629 \u0627\u0644\u0647\u0648\u0627\u0626\u064a\u0629 \u0627\u0644\u062c\u0628\u0644\u064a\u0629",
|
| 675 |
+
"\u062e\u064a\u0645\u0629",
|
| 676 |
+
"\u0627\u0644\u0641\u0623\u0631\u0629",
|
| 677 |
+
"\u0645\u0635\u064a\u062f\u0629 \u0627\u0644\u0641\u0626\u0631\u0627\u0646",
|
| 678 |
+
"\u0633\u064a\u0627\u0631\u0627\u062a \u0634\u0631\u0643\u0629 \u0627\u0644\u0646\u0642\u0644",
|
| 679 |
+
"\u0643\u0645\u0627\u0645 \u0627\u0644\u0641\u0645",
|
| 680 |
+
"\u0645\u0633\u0645\u0627\u0631",
|
| 681 |
+
"\u0637\u0648\u0642 \u0627\u0644\u0639\u0646\u0642",
|
| 682 |
+
"\u0627\u0644\u0642\u0644\u0627\u062f\u0629",
|
| 683 |
+
"\u0627\u0644\u0631\u0636\u0627\u0639\u0629",
|
| 684 |
+
"\u062d\u0627\u0633\u0628 \u0627\u0644\u0645\u0641\u0643\u0631\u0629",
|
| 685 |
+
"\u0627\u0644\u0645\u0633\u0644\u0629",
|
| 686 |
+
"\u0622\u0644\u0629 \u0627\u0644\u0623\u0648\u0628\u0648\u0627",
|
| 687 |
+
"\u0623\u0643\u0631\u064a\u0646\u0629",
|
| 688 |
+
"\u0639\u062f\u0627\u062f \u0627\u0644\u0645\u0633\u0627\u0641\u0627\u062a",
|
| 689 |
+
"\u0641\u0644\u062a\u0631 \u0627\u0644\u0632\u064a\u062a",
|
| 690 |
+
"\u0627\u0644\u0623\u0631\u063a\u0646 \u0630\u0648 \u0627\u0644\u0623\u0646\u0627\u0628\u064a\u0628",
|
| 691 |
+
"\u062c\u0647\u0627\u0632 \u0631\u0627\u0633\u0645 \u0627\u0644\u0625\u0634\u0627\u0631\u0629",
|
| 692 |
+
"\u0627\u0644\u062a\u0646\u0648\u0631\u0629 \u0627\u0644\u062e\u0627\u0631\u062c\u064a\u0629",
|
| 693 |
+
"\u0639\u0631\u0628\u0629 \u064a\u062c\u0631\u0647\u0627 \u0627\u0644\u062b\u0648\u0631",
|
| 694 |
+
"\u0642\u0646\u0627\u0639 \u0623\u0643\u0633\u062c\u064a\u0646",
|
| 695 |
+
"\u0627\u0644\u062a\u063a\u0644\u064a\u0641",
|
| 696 |
+
"\u0627\u0644\u0645\u0650\u063a\u0652\u062f\u0627\u0641",
|
| 697 |
+
"\u0639\u064e\u062c\u064e\u0644\u0629 \u0627\u0644\u062a\u064e\u063a\u062f\u064a\u0641",
|
| 698 |
+
"\u0642\u0641\u0644 \u062d\u0644\u0642\u064a",
|
| 699 |
+
"\u0641\u0631\u0634\u0627\u0629 \u0627\u0644\u0631\u0633\u0645",
|
| 700 |
+
"\u0627\u0644\u0645\u0650\u0646\u064e\u0627\u0645\u064e\u0629\u064f",
|
| 701 |
+
"\u0642\u0635\u0631",
|
| 702 |
+
"\u0627\u0644\u0645\u0650\u0635\u0641\u0627\u0631",
|
| 703 |
+
"\u0645\u0646\u0634\u0641\u0629 \u0648\u0631\u0642\u064a\u0629",
|
| 704 |
+
"\u0645\u0650\u0638\u064e\u0644\u064e\u0651\u0629 \u0627\u0644\u0647\u0628\u064f\u0648\u0637",
|
| 705 |
+
"\u062c\u0647\u0627\u0632 \u0627\u0644\u0639\u0642\u0644\u0629",
|
| 706 |
+
"\u0645\u0642\u0639\u062f \u0639\u0627\u0645",
|
| 707 |
+
"\u0639\u062f\u0627\u062f \u0627\u0646\u062a\u0638\u0627\u0631 \u0627\u0644\u0633\u064a\u0627\u0631\u0627\u062a",
|
| 708 |
+
"\u0639\u0631\u0628\u0629 \u0627\u0644\u0642\u0637\u0627\u0631",
|
| 709 |
+
"\u0627\u0644\u0641\u0646\u0627\u0621",
|
| 710 |
+
"\u0627\u0644\u0647\u0627\u062a\u0641 \u0627\u0644\u0639\u0645\u0648\u0645\u064a",
|
| 711 |
+
"\u0627\u0644\u0631\u0643\u064a\u0632\u0629",
|
| 712 |
+
"\u0627\u0644\u0645\u064e\u0642\u0652\u0644\u064e\u0645\u064e\u0629",
|
| 713 |
+
"\u0627\u0644\u0645\u0628\u0631\u0627\u0629",
|
| 714 |
+
"\u0627\u0644\u0639\u0637\u0631",
|
| 715 |
+
"\u0637\u0628\u0642 \u0628\u062a\u0631\u064a",
|
| 716 |
+
"\u0627\u0644\u0622\u0644\u0629 \u0627\u0644\u0646\u0627\u0633\u062e\u0629",
|
| 717 |
+
"\u0627\u0644\u0631\u064a\u0634\u0629 \u0627\u0644\u0645\u0648\u0633\u064a\u0642\u064a\u0629",
|
| 718 |
+
"\u062e\u0648\u0630\u0629 \u0628\u064a\u0643\u0644\u0647\u0627\u0648\u0628\u0647",
|
| 719 |
+
"\u0627\u0644\u0633\u064a\u0627\u062c \u0627\u0644\u0648\u062a\u062f\u064a",
|
| 720 |
+
"\u0627\u0644\u0633\u064a\u0627\u0631\u0629 \u0627\u0644\u0646\u0635\u0641-\u0646\u0642\u0644",
|
| 721 |
+
"\u0627\u0644\u0631\u0635\u064a\u0641 \u0627\u0644\u0628\u062d\u0631\u064a",
|
| 722 |
+
"\u062d\u0635\u0627\u0644\u0629",
|
| 723 |
+
"\u0627\u0644\u062a\u063a\u0644\u064a\u0641 \u0627\u0644\u0635\u064a\u062f\u0644\u0627\u0646\u064a",
|
| 724 |
+
"\u0648\u0633\u0627\u062f\u0629",
|
| 725 |
+
"\u0643\u0631\u0629 \u0627\u0644\u0637\u0627\u0648\u0644\u0629",
|
| 726 |
+
"\u0644\u0639\u0628\u0629 \u0637\u0627\u062d\u0648\u0646\u0629 \u0647\u0648\u0627\u0621",
|
| 727 |
+
"\u0633\u0641\u064a\u0646\u0629 \u0627\u0644\u0642\u0631\u0627\u0635\u0646\u0629",
|
| 728 |
+
"\u0627\u0644\u0625\u0628\u0631\u064a\u0642",
|
| 729 |
+
"\u0627\u0644\u0645\u0650\u0633\u0652\u062d\u064e\u062c",
|
| 730 |
+
"\u0627\u0644\u0642\u0628\u0629 \u0627\u0644\u0641\u0644\u0643\u064a\u0629",
|
| 731 |
+
"\u0643\u064a\u0633 \u0646\u0627\u064a\u0644\u0648\u0646",
|
| 732 |
+
"\u0631\u0641 \u062a\u0646\u0634\u064a\u0641 \u0627\u0644\u0623\u0637\u0628\u0627\u0642",
|
| 733 |
+
"\u0627\u0644\u0645\u062d\u0627\u0631\u064a\u062b \u0627\u0644\u062d\u0641\u0627\u0631\u0629",
|
| 734 |
+
"\u0627\u0644\u0645\u0643\u0628\u0633 \u0627\u0644\u063a\u0637\u064e\u0651\u0627\u0633",
|
| 735 |
+
"\u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0627\u0644\u0641\u0648\u0631\u064a\u0629",
|
| 736 |
+
"\u0627\u0644\u0639\u0645\u0648\u062f",
|
| 737 |
+
"\u0639\u0631\u0628\u0629 \u0627\u0644\u0634\u0631\u0637\u0629",
|
| 738 |
+
"\u0644\u0628\u0627\u0633 \u0627\u0644\u0628\u0646\u0634",
|
| 739 |
+
"\u0637\u0627\u0648\u0644\u0629 \u0627\u0644\u0628\u0644\u064a\u0627\u0631\u062f\u0648",
|
| 740 |
+
"\u0639\u0628\u0648\u0629 \u0627\u0644\u0645\u0634\u0631\u0648\u0628\u0627\u062a",
|
| 741 |
+
"\u0627\u0644\u0623\u0635\u064a\u0635",
|
| 742 |
+
"\u0639\u062c\u0644\u0629 \u0641\u062e\u0627\u0631",
|
| 743 |
+
"\u0627\u0644\u0645\u0650\u062b\u0652\u0642\u064e\u0628",
|
| 744 |
+
"\u0633\u062c\u0627\u062f\u0629 \u0627\u0644\u0635\u0644\u0627\u0629",
|
| 745 |
+
"\u0627\u0644\u0637\u0627\u0628\u0639\u0629 \u0627\u0644\u062d\u0627\u0633\u0648\u0628\u064a\u0629",
|
| 746 |
+
"\u0627\u0644\u0633\u062c\u0646",
|
| 747 |
+
"\u0627\u0644\u0642\u0630\u064a\u0641\u0629",
|
| 748 |
+
"\u0627\u0644\u0628\u0631\u0648\u062c\u0643\u062a\u0631",
|
| 749 |
+
"\u0642\u0631\u0635 \u0627\u0644\u0647\u0648\u0643\u064a",
|
| 750 |
+
"\u0627\u0644\u0645\u0644\u0643\u0645\u0629",
|
| 751 |
+
"\u062d\u0642\u064a\u0628\u0629 \u064a\u062f",
|
| 752 |
+
"\u0627\u0644\u0631\u064a\u0634\u0629 ",
|
| 753 |
+
"\u0627\u0644\u0644\u0650\u062d\u064e\u0627\u0641",
|
| 754 |
+
"\u0633\u064a\u0627\u0631\u0629 \u0627\u0644\u0633\u0628\u0627\u0642",
|
| 755 |
+
"\u0645\u0636\u0631\u0628 \u0627\u0644\u062a\u0646\u0633",
|
| 756 |
+
"\u0645\u0634\u0639\u0627\u0639",
|
| 757 |
+
"\u0627\u0644\u0645\u0630\u064a\u0627\u0639",
|
| 758 |
+
"\u0627\u0644\u0645\u0642\u0631\u0627\u0628 \u0627\u0644\u0627\u0630\u0627\u0639\u064a",
|
| 759 |
+
"\u062e\u0632\u0627\u0646 \u0645\u064a\u0627\u0647 \u0627\u0644\u0623\u0645\u0637\u0627\u0631",
|
| 760 |
+
"\u0627\u0644\u0645\u0631\u0643\u0628\u0627\u062a \u0627\u0644\u062a\u0631\u0641\u064a\u0647\u064a\u0629",
|
| 761 |
+
"\u0628\u0643\u0631\u0629 \u0635\u064a\u062f",
|
| 762 |
+
"\u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627 \u0627\u0644\u0627\u0646\u0639\u0643\u0627\u0633\u064a\u0629",
|
| 763 |
+
"\u0627\u0644\u062b\u0644\u0627\u064e\u0651\u062c\u0629",
|
| 764 |
+
"\u062c\u0647\u0627\u0632 \u062a\u062d\u0643\u0645 \u0639\u0646 \u0628\u0639\u062f",
|
| 765 |
+
"\u0645\u0637\u0639\u0645",
|
| 766 |
+
"\u0627\u0644\u0645\u0633\u062f\u0633 \u0627\u0644\u062f\u0648\u0627\u0631",
|
| 767 |
+
"\u0628\u0646\u062f\u0642\u064a\u0629",
|
| 768 |
+
"\u0627\u0644\u0643\u0631\u0633\u064a \u0627\u0644\u0647\u0632\u0627\u0632",
|
| 769 |
+
"\u0627\u0644\u0645\u0634\u0648\u0627\u0629",
|
| 770 |
+
"\u0627\u0644\u0645\u0645\u062d\u0627\u0629",
|
| 771 |
+
"\u0643\u0631\u0629 \u0627\u0644\u0631\u063a\u0628\u064a",
|
| 772 |
+
"\u0627\u0644\u0645\u0633\u0637\u0631\u0629",
|
| 773 |
+
"\u0627\u0644\u062d\u0630\u0627\u0621 \u0627\u0644\u0631\u064a\u0627\u0636\u064a",
|
| 774 |
+
"\u0627\u0644\u062e\u0632\u0627\u0646\u0629",
|
| 775 |
+
"\u062f\u0628\u0648\u0633 \u0645\u0634\u0628\u0643",
|
| 776 |
+
"\u0639\u0644\u0628 \u0627\u0644\u0645\u0644\u062d \u0648\u0627\u0644\u0641\u0644\u0641\u0644",
|
| 777 |
+
"\u0627\u0644\u0635\u0646\u062f\u0644",
|
| 778 |
+
"\u0627\u0644\u0633\u0627\u0631\u0648\u0646\u062c",
|
| 779 |
+
"\u0633\u0627\u0643\u0633\u0641\u0648\u0646 \u0627\u0644\u0629 \u0646\u0641\u062e \u0645\u0648\u0633\u064a\u0642\u064a\u0629",
|
| 780 |
+
"\u0627\u0644\u063a\u0650\u0645\u0652\u062f \u0623\u0648 \u063a\u0650\u0645\u0652\u062f \u0627\u0644\u0633\u064a\u0641 \u0623\u0648 \u063a\u0650\u0645\u0652\u062f \u0627\u0644\u062e\u0646\u062c\u0631",
|
| 781 |
+
"\u0627\u0644\u0645\u064a\u0632\u0627\u0646",
|
| 782 |
+
"\u062d\u0627\u0641\u0644\u0629 \u0645\u062f\u0631\u0633\u064a\u0629",
|
| 783 |
+
"\u0627\u0644\u0645\u0631\u0643\u0628 \u0627\u0644\u0634\u0631\u0627\u0639\u064a ",
|
| 784 |
+
"\u0644\u0648\u062d\u0629 \u0627\u0644\u0646\u062a\u0627\u0626\u062c",
|
| 785 |
+
"\u0634\u0627\u0634\u0629 \u0627\u0644\u0633\u064a \u0623\u0631 \u062a\u064a",
|
| 786 |
+
"\u0628\u0631\u063a\u064a",
|
| 787 |
+
"\u0645\u0641\u0643 \u0627\u0644\u0628\u0631\u0627\u063a\u064a",
|
| 788 |
+
"\u062d\u0632\u0627\u0645 \u0627\u0644\u0623\u0645\u0627\u0646",
|
| 789 |
+
"\u0622\u0644\u0629 \u0627\u0644\u062e\u064a\u0627\u0637\u0629",
|
| 790 |
+
"\u0627\u0644\u062f\u0631\u0639",
|
| 791 |
+
"\u0645\u062a\u062c\u0631 \u0627\u0644\u0623\u062d\u0630\u064a\u0629",
|
| 792 |
+
"\u0645\u0642\u0633\u0645 \u0627\u0644\u063a\u0631\u0641\u0629",
|
| 793 |
+
"\u0633\u0644\u0629 \u0627\u0644\u062a\u0633\u0648\u0642",
|
| 794 |
+
"\u0639\u0631\u0628\u0629 \u0627\u0644\u062a\u0633\u0648\u0642",
|
| 795 |
+
"\u0627\u0644\u0645\u0650\u062c\u0652\u0631\u064e\u0641\u064e\u0629",
|
| 796 |
+
"\u0642\u0628\u0639\u0629 \u0627\u0644\u0627\u0633\u062a\u062d\u0645\u0627\u0645",
|
| 797 |
+
"\u0633\u062a\u0627\u0626\u0631 \u0627\u0644\u0627\u0633\u062a\u062d\u0645\u0627\u0645",
|
| 798 |
+
"\u062a\u0632\u062d\u0644\u0642 \u0639\u0644\u0649 \u0627\u0644\u062b\u0644\u062c",
|
| 799 |
+
"\u0642\u0646\u0627\u0639 \u0627\u0644\u062a\u0632\u0644\u062c",
|
| 800 |
+
"\u0643\u064a\u0633 \u0627\u0644\u0646\u0648\u0645",
|
| 801 |
+
"\u0627\u0644\u0645\u0633\u0637\u0631\u0629 \u0627\u0644\u062d\u0627\u0633\u0628\u0629",
|
| 802 |
+
"\u0627\u0644\u0628\u0627\u0628 \u0627\u0644\u0645\u0646\u0632\u0644\u0642",
|
| 803 |
+
"\u0645\u0627\u0643\u064a\u0646\u0629 \u0627\u0644\u062d\u0638",
|
| 804 |
+
"\u0627\u0644\u063a\u0637\u0633 \u062a\u062d\u062a \u0627\u0644\u0645\u0627\u0621",
|
| 805 |
+
"\u0639\u0631\u0628\u0629 \u0627\u0644\u062c\u0644\u064a\u062f \u0627\u0644\u0622\u0644\u064a\u0629",
|
| 806 |
+
"\u0643\u0627\u0633\u062d\u0629 \u062b\u0644\u0648\u062c",
|
| 807 |
+
"\u0645\u0648\u0632\u0639 \u0627\u0644\u0635\u0627\u0628\u0648\u0646",
|
| 808 |
+
"\u0643\u0631\u0629 (\u0643\u0631\u0629 \u0627\u0644\u0642\u062f\u0645)",
|
| 809 |
+
"\u062c\u0648\u0631\u0628",
|
| 810 |
+
"\u0645\u062c\u0645\u0639 \u0627\u0644\u0637\u0627\u0642\u0629 \u0627\u0644\u0634\u0645\u0633\u064a\u0629 \u0627\u0644\u062d\u0631\u0627\u0631\u064a\u0629",
|
| 811 |
+
"\u0627\u0644\u0635\u064e\u0645\u0652\u0628\u0631\u0650\u064a\u0631\u0629",
|
| 812 |
+
"\u0648\u0639\u0627\u0621 \u0627\u0644\u0634\u0648\u0631\u0628\u0629",
|
| 813 |
+
"\u0645\u0641\u062a\u0627\u062d \u0627\u0644\u0645\u0633\u0627\u0641\u0629",
|
| 814 |
+
"\u0627\u0644\u0645\u062f\u0641\u0623\u0629",
|
| 815 |
+
"\u0645\u0643\u0648\u0643 \u0627\u0644\u0641\u0636\u0627\u0621",
|
| 816 |
+
"\u0627\u0644\u0645\u0650\u0644\u0648\u064e\u0642",
|
| 817 |
+
"\u0627\u0644\u0642\u0627\u0631\u0628 \u0627\u0644\u0633\u0631\u064a\u0639",
|
| 818 |
+
"\u0634\u0628\u0643\u0629 \u0627\u0644\u0639\u0646\u0643\u0628\u0648\u062a",
|
| 819 |
+
"\u062e\u0634\u0628\u0629 \u0627\u0644\u0645\u063a\u0632\u0644",
|
| 820 |
+
"\u0627\u0644\u0633\u064a\u0627\u0631\u0629 \u0627\u0644\u0631\u064a\u0627\u0636\u064a\u0629",
|
| 821 |
+
"\u0628\u0642\u0639\u0629 \u0636\u0648\u0621",
|
| 822 |
+
"\u0633\u0637\u062d \u0627\u0644\u0645\u0633\u0631\u062d",
|
| 823 |
+
"\u0627\u0644\u0642\u0627\u0637\u0631\u0629 \u0627\u0644\u0628\u062e\u0627\u0631\u064a\u0629",
|
| 824 |
+
"\u062c\u0633\u0631 \u0645\u0642\u0648\u0633 \u0646\u0641\u0642\u064a",
|
| 825 |
+
"\u0627\u0644\u0637\u0628\u0644 \u0627\u0644\u0646\u062d\u0627\u0633\u064a",
|
| 826 |
+
"\u0627\u0644\u0633\u0645\u0627\u0639\u0629 \u0627\u0644\u0637\u0628\u064a\u0629",
|
| 827 |
+
"\u0627\u0644\u0644\u0650\u0641\u0627\u0639",
|
| 828 |
+
"\u0627\u0644\u062c\u062f\u0627\u0631 \u0627\u0644\u062c\u0627\u0641",
|
| 829 |
+
"\u0645\u0624\u0642\u062a",
|
| 830 |
+
"\u0627\u0644\u0645\u0648\u0642\u062f",
|
| 831 |
+
"\u0627\u0644\u063a\u0631\u0628\u0627\u0644",
|
| 832 |
+
"\u0627\u0644\u062a\u0631\u0627\u0645",
|
| 833 |
+
"\u0627\u0644\u0646\u0642\u0627\u0644\u0629",
|
| 834 |
+
"\u0627\u0644\u0623\u0631\u064a\u0643\u0629",
|
| 835 |
+
"\u0645\u0628\u0646\u0649 \u0633\u062a\u0648\u064a\u0627",
|
| 836 |
+
"\u0627\u0644\u063a\u0648\u0627\u0635\u0629",
|
| 837 |
+
"\u0627\u0644\u0628\u0630\u0644\u0629",
|
| 838 |
+
"\u0627\u0644\u0645\u0632\u0648\u0644\u0629",
|
| 839 |
+
"\u0627\u0644\u0646\u0638\u0627\u0631\u0629 \u0627\u0644\u0634\u0645\u0633\u064a\u0629",
|
| 840 |
+
"\u0627\u0644\u0646\u0638\u0627\u0631\u0629 \u0627\u0644\u0634\u0645\u0633\u064a\u0629",
|
| 841 |
+
"\u0627\u0644\u0648\u0627\u0642\u064a \u0627\u0644\u0634\u0645\u0633\u064a",
|
| 842 |
+
"\u0627\u0644\u062c\u0633\u0631 \u0627\u0644\u0645\u0639\u0644\u0642",
|
| 843 |
+
"\u0627\u0644\u0645\u0645\u0633\u062d\u0629",
|
| 844 |
+
"\u0627\u0644\u0642\u0645\u064a\u0635 \u0627\u0644\u062b\u0642\u064a\u0644",
|
| 845 |
+
"\u0627\u0644\u062a\u064f\u0628\u0651\u0627\u0646 \u0623\u0648 \u0627\u0644\u0628\u0646\u0637\u0627\u0644 \u0627\u0644\u0642\u0635\u064a\u0631\\",
|
| 846 |
+
"\u0627\u0644\u0623\u0631\u062c\u0648\u062d\u0629",
|
| 847 |
+
"\u0627\u0644\u0645\u0641\u062a\u0627\u062d \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a",
|
| 848 |
+
"\u0645\u062d\u0642\u0646\u0629 \u0623\u0648 \u0627\u0644\u0625\u0628\u0631\u0629",
|
| 849 |
+
"\u0627\u0644\u0623\u0628\u0627\u062c\u0648\u0631\u0629",
|
| 850 |
+
"\u0627\u0644\u062f\u0628\u0627\u0628\u0629",
|
| 851 |
+
"\u0645\u0633\u062c\u0644 \u0627\u0644\u0634\u0631\u064a\u0637 \u0627\u0644\u0635\u0648\u062a\u064a",
|
| 852 |
+
"\u0625\u0628\u0631\u064a\u0642 \u0627\u0644\u0634\u0627\u064a",
|
| 853 |
+
"\u0627\u0644\u062f\u0628\u062f\u0648\u0628",
|
| 854 |
+
"\u0627\u0644\u0631\u0627\u0626\u064a",
|
| 855 |
+
"\u0643\u0631\u0629 \u062a\u0646\u0633",
|
| 856 |
+
"\u0627\u0644\u062a\u0633\u0642\u064a\u0641 \u0628\u0627\u0644\u0642\u0634",
|
| 857 |
+
"\u0627\u0644\u0633\u062a\u0627\u0631\u0629 \u0627\u0644\u0645\u0633\u0631\u062d\u064a\u0629",
|
| 858 |
+
"\u0627\u0644\u0643\u064f\u0634\u0652\u062a\u0650\u0628\u064e\u0627\u0646",
|
| 859 |
+
"\u0627\u0644\u062f\u0631\u064e\u0651\u0627\u0633\u0629",
|
| 860 |
+
"\u0639\u0631\u0634",
|
| 861 |
+
"\u0628\u0644\u0627\u0637 \u0627\u0644\u0633\u0642\u0641",
|
| 862 |
+
"\u0622\u0644\u0629 \u062a\u062d\u0645\u064a\u0635 \u0627\u0644\u062e\u0628\u0632",
|
| 863 |
+
"\u0645\u062d\u0644\u0627\u062a \u0628\u064a\u0639 \u0644\u0648\u0627\u0632\u0645 \u0627\u0644\u062a\u062f\u062e\u064a\u0646",
|
| 864 |
+
"\u0645\u0642\u0639\u062f \u0627\u0644\u0645\u0631\u062d\u0627\u0636",
|
| 865 |
+
"\u0645\u0634\u0639\u0644\u0629",
|
| 866 |
+
"\u0627\u0644\u0623\u064e\u0639\u0652\u0645\u0650\u062f\u064e\u0629\u064f \u0627\u0644\u0637\u064e\u0651\u0648\u0652\u0637\u064e\u0645\u0650\u064a\u064e\u0651\u0629\u0650",
|
| 867 |
+
"\u0634\u0627\u062d\u0646\u0629 \u0627\u0644\u0642\u0637\u0631",
|
| 868 |
+
"\u0645\u062a\u062c\u0631 \u0627\u0644\u0623\u0644\u0639\u0627\u0628",
|
| 869 |
+
"\u0633\u064a\u0627\u0631\u0629 \u0627\u0644\u062c\u0631\u0627\u0631",
|
| 870 |
+
"\u0634\u0627\u062d\u0646\u0629 \u0646\u0635\u0641 \u0645\u0642\u0637\u0648\u0631\u0629",
|
| 871 |
+
"\u0627\u0644\u0635\u064a\u0646\u064a\u0629",
|
| 872 |
+
"\u0645\u0639\u0637\u0641 \u0627\u0644\u062e\u0646\u062f\u0642",
|
| 873 |
+
"\u0627\u0644\u062f\u0631\u0627\u062c\u0629 \u062b\u0644\u0627\u062b\u064a\u0629 \u0627\u0644\u0639\u062c\u0644\u0627\u062a",
|
| 874 |
+
"\u0642\u0627\u0631\u0628 \u0627\u0644\u062f\u0639\u0627\u0645\u0629 \u0627\u0644\u0645\u0632\u062f\u0648\u062c\u0629",
|
| 875 |
+
"\u062d\u0627\u0645\u0644 \u062b\u0644\u0627\u062b\u064a",
|
| 876 |
+
"\u0642\u0648\u0633 \u0627\u0644\u0646\u0635\u0631",
|
| 877 |
+
"\u0627\u0644\u062d\u0627\u0641\u0644\u0629 \u0633\u0637\u062d\u064a\u0629 \u0627\u0644\u062a\u0645\u062f\u064a\u062f \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a",
|
| 878 |
+
"\u0627\u0644\u062a\u0631\u0648\u0645\u0628\u0648\u0646",
|
| 879 |
+
"\u062d\u0648\u0636 \u0627\u0644\u0627\u0633\u062a\u062d\u0645\u0627\u0645",
|
| 880 |
+
"\u0627\u0644\u0628\u0648\u0627\u0628\u0629 \u0627\u0644\u062f\u0648\u0627\u0631\u0629",
|
| 881 |
+
"\u0627\u0644\u0622\u0644\u0629 \u0627\u0644\u0643\u0627\u062a\u0628\u0629",
|
| 882 |
+
"\u0627\u0644\u0645\u0638\u0644\u0629",
|
| 883 |
+
"\u0627\u0644\u062f\u0631\u0627\u062c\u0629 \u0627\u0644\u0623\u062d\u0627\u062f\u064a\u0629",
|
| 884 |
+
"\u0627\u0644\u0628\u064a\u0627\u0646\u0648 \u0627\u0644\u0642\u0627\u0626\u0645",
|
| 885 |
+
"\u0627\u0644\u0645\u0643\u0646\u0633\u0629 \u0627\u0644\u0643\u0647\u0631\u0628\u0627\u0626\u064a\u0629",
|
| 886 |
+
"\u0627\u0644\u0645\u0632\u0647\u0631\u064a\u0629",
|
| 887 |
+
"\u0627\u0644\u0642\u0646\u0637\u0631\u0629",
|
| 888 |
+
"\u0627\u0644\u0642\u0645\u0627\u0634 \u0627\u0644\u0645\u062e\u0645\u0644\u064a",
|
| 889 |
+
"\u0622\u0644\u0629 \u0627\u0644\u0628\u064a\u0639 \u0627\u0644\u0630\u0627\u062a\u064a",
|
| 890 |
+
"\u0627\u0644\u0635\u062f\u0627\u0631\u064a",
|
| 891 |
+
"\u0642\u0646\u0637\u0631\u0629 \u0645\u062a\u0639\u062f\u062f\u0629 \u0627\u0644\u0631\u0643\u0627\u0626\u0632",
|
| 892 |
+
"\u0627\u0644\u0643\u0645\u0627\u0646",
|
| 893 |
+
"\u0627\u0644\u0643\u0631\u0629 \u0627\u0644\u0637\u0627\u0626\u0631\u0629",
|
| 894 |
+
"\u0635\u0627\u0646\u0639\u0629 \u0627\u0644\u0648\u0627\u0641\u0644",
|
| 895 |
+
"\u0633\u0627\u0639\u0629 \u0627\u0644\u062d\u0627\u0626\u0637",
|
| 896 |
+
"\u0645\u062d\u0641\u0638\u0629",
|
| 897 |
+
"\u062e\u0632\u0627\u0646\u0629 \u0627\u0644\u0635\u0648\u0627\u0646",
|
| 898 |
+
"\u0637\u0627\u0626\u0631\u0629 \u0639\u0633\u0643\u0631\u064a\u0629",
|
| 899 |
+
"\u0627\u0644\u0645\u062c\u0644\u0649",
|
| 900 |
+
"\u0627\u0644\u063a\u0633\u0627\u0644\u0629",
|
| 901 |
+
"\u0642\u0627\u0631\u0648\u0631\u0629 \u0645\u0627\u0621",
|
| 902 |
+
"\u0625\u0628\u0631\u064a\u0642 \u0627\u0644\u0645\u0627\u0621",
|
| 903 |
+
"\u0628\u0631\u062c \u0627\u0644\u0645\u064a\u0627\u0647",
|
| 904 |
+
"\u0625\u0628\u0631\u064a\u0642 \u0627\u0644\u0643\u062d\u0648\u0644\u064a\u0627\u062a",
|
| 905 |
+
"\u0627\u0644\u0635\u0627\u0641\u0631\u0629",
|
| 906 |
+
"\u0634\u0639\u0631 \u0645\u0633\u062a\u0639\u0627\u0631",
|
| 907 |
+
"\u0627\u0644\u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u0648\u0627\u0642\u064a\u0629",
|
| 908 |
+
"\u0627\u0644\u0633\u062a\u0627\u0631 \u0627\u0644\u0644\u0641\u064e\u0651\u0627\u0641",
|
| 909 |
+
"\u0631\u0628\u0637\u0629 \u0639\u0646\u0642 \u0648\u0646\u062f\u0633\u0648\u0631 ",
|
| 910 |
+
"\u0632\u062c\u0627\u062c\u0629 \u0627\u0644\u0646\u0628\u064a\u0630",
|
| 911 |
+
"\u062c\u0646\u0627\u062d \u0627\u0644\u0637\u0627\u0626\u0631\u0629",
|
| 912 |
+
"\u0645\u0642\u0644\u0627\u0629 \u0635\u064a\u0646\u064a\u0629",
|
| 913 |
+
"\u0627\u0644\u0645\u0644\u0639\u0642\u0629 \u0627\u0644\u062e\u0634\u0628\u064a\u0629",
|
| 914 |
+
"\u0627\u0644\u0635\u0648\u0641",
|
| 915 |
+
"\u0627\u0644\u0633\u064a\u0627\u062c \u0627\u0644\u0645\u0646\u0642\u0633\u0645",
|
| 916 |
+
"\u062d\u0637\u0627\u0645 \u0627\u0644\u0633\u0641\u064a\u0646\u0629",
|
| 917 |
+
"\u0627\u0644\u0632\u0648\u0631\u0642 \u0627\u0644\u0634\u0631\u0627\u0639\u064a",
|
| 918 |
+
"\u0645\u0646\u0632\u0644 \u0627\u0644\u064a\u0648\u0631\u062a",
|
| 919 |
+
"\u0645\u0648\u0627\u0642\u0639 \u0627\u0644\u0648\u064a\u0628",
|
| 920 |
+
"\u0643\u062a\u0627\u0628 \u0631\u0633\u0648\u0645 \u0647\u0632\u0644\u064a\u0629",
|
| 921 |
+
"\u0627\u0644\u0643\u0644\u0645\u0627\u062a \u0627\u0644\u0645\u062a\u0642\u0627\u0637\u0639\u0629",
|
| 922 |
+
"\u0644\u0627\u0641\u062a\u0629 \u0645\u0631\u0648\u0631\u064a\u0629",
|
| 923 |
+
"\u0625\u0634\u0627\u0631\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u0636\u0648\u0626\u064a\u0629",
|
| 924 |
+
"\u063a\u0644\u0627\u0641 \u0627\u0644\u062d\u0645\u0627\u064a\u0629 \u0644\u0644\u0643\u062a\u0627\u0628",
|
| 925 |
+
"\u0642\u0627\u0626\u0645\u0629 \u0637\u0639\u0627\u0645",
|
| 926 |
+
"\u0635\u062d\u0646",
|
| 927 |
+
"\u0642\u0646\u0628\u064a\u0637 \u0623\u062e\u0636\u0631",
|
| 928 |
+
"\u062d\u0633\u0627\u0621 \u0627\u0644\u0643\u0648\u0646\u0633\u0648\u0645\u064a\u0629",
|
| 929 |
+
"\u0627\u0644\u0648\u0639\u0627\u0621 \u0627\u0644\u0633\u0627\u062e\u0646",
|
| 930 |
+
"\u062a\u0631\u0627\u064a\u0641\u0644",
|
| 931 |
+
"\u0627\u0644\u0645\u062b\u0644\u062c\u0627\u062a",
|
| 932 |
+
"\u0627\u0644\u0645\u0635\u0627\u0635\u0629",
|
| 933 |
+
"\u0627\u0644\u062e\u0628\u0632 \u0627\u0644\u0641\u0631\u0646\u0633\u064a",
|
| 934 |
+
"\u062e\u0628\u0632 \u0627\u0644\u0628\u064a\u063a\u0644",
|
| 935 |
+
"\u0627\u0644\u0645\u062e\u0628\u0648\u0632\u0627\u062a \u0627\u0644\u0639\u064f\u0642\u0652\u062f\u0650\u064a\u064e\u0651\u0629",
|
| 936 |
+
"\u062a\u0634\u064a\u0632 \u0628\u0631\u062c\u0631",
|
| 937 |
+
"\u0627\u0644\u0646\u0642\u0627\u0646\u0642",
|
| 938 |
+
"\u0627\u0644\u0628\u0637\u0627\u0637\u0627 \u0627\u0644\u0645\u0647\u0631\u0648\u0633\u0629",
|
| 939 |
+
"\u0645\u0644\u0641\u0648\u0641",
|
| 940 |
+
"\u0627\u0644\u0642\u0631\u0646\u0628\u064a\u0637 \u0627\u0644\u0623\u062e\u0636\u0631",
|
| 941 |
+
"\u0627\u0644\u0642\u0631\u0646\u0628\u064a\u0637",
|
| 942 |
+
"\u0627\u0644\u0643\u0648\u0633\u0627",
|
| 943 |
+
"\u0645\u0639\u0643\u0631\u0648\u0646\u0629 \u0627\u0644\u0627\u0633\u0643\u0648\u0627\u0634",
|
| 944 |
+
"\u0642\u0631\u0639 \u0627\u0644\u0628\u0644\u0648\u0637",
|
| 945 |
+
"\u0642\u0631\u0639 \u0627\u0644\u062c\u0648\u0632",
|
| 946 |
+
"\u062e\u064a\u0627\u0631",
|
| 947 |
+
"\u0627\u0644\u062e\u0631\u0634\u0648\u0641 \u0627\u0644\u0634\u0648\u0643\u064a",
|
| 948 |
+
"\u0641\u0644\u0641\u0644 \u062d\u0644\u0648",
|
| 949 |
+
"\u0627\u0644\u062e\u0631\u0634\u0648\u0641 \u0627\u0644\u0633\u0643\u0648\u0644\u064a\u0645\u064a",
|
| 950 |
+
"\u0639\u064a\u0634 \u0627\u0644\u063a\u0631\u0627\u0628",
|
| 951 |
+
"\u062a\u0641\u0627\u062d \u0623\u062e\u0636\u0631",
|
| 952 |
+
"\u0627\u0644\u0641\u0631\u0627\u0648\u0644\u0629",
|
| 953 |
+
"\u0627\u0644\u0628\u0631\u062a\u0642\u0627\u0644",
|
| 954 |
+
"\u0627\u0644\u0644\u064a\u0645\u0648\u0646",
|
| 955 |
+
"\u0627\u0644\u062a\u064a\u0646",
|
| 956 |
+
"\u0627\u0644\u0623\u0646\u0627\u0646\u0627\u0633",
|
| 957 |
+
"\u0627\u0644\u0645\u0648\u0632",
|
| 958 |
+
"\u062c\u0627\u0643 \u0641\u0631\u0648\u062a",
|
| 959 |
+
"\u0642\u0634\u0637\u0629 \u0634\u0631\u064a\u0645\u0648\u0644\u064a\u0627",
|
| 960 |
+
"\u0627\u0644\u0631\u0645\u0627\u0646",
|
| 961 |
+
"\u0627\u0644\u062f\u0631\u064a\u0633",
|
| 962 |
+
"\u0643\u0631\u0628\u0646\u0627\u0631\u0629",
|
| 963 |
+
"\u0635\u0644\u0635\u0629 \u0627\u0644\u0634\u0648\u0643\u0648\u0644\u0627",
|
| 964 |
+
"\u0639\u062c\u064a\u0646\u0629 \u0627\u0644\u062e\u0628\u0632",
|
| 965 |
+
"\u0631\u063a\u064a\u0641 \u0627\u0644\u0644\u062d\u0645",
|
| 966 |
+
"\u0628\u064a\u062a\u0632\u0627",
|
| 967 |
+
"\u0641\u0637\u064a\u0631\u0629 \u0627\u0644\u0642\u062f\u0631",
|
| 968 |
+
"\u0628\u0648\u0631\u064a\u062a\u0648",
|
| 969 |
+
"\u0627\u0644\u0646\u0628\u064a\u0630 \u0627\u0644\u0623\u062d\u0645\u0631",
|
| 970 |
+
"\u0642\u0647\u0648\u0629 \u0625\u0633\u0628\u0631\u064a\u0633\u0648",
|
| 971 |
+
"\u0641\u0646\u062c\u0627\u0646 \u0627\u0644\u0634\u0627\u064a",
|
| 972 |
+
"\u062d\u0644\u064a\u0628 \u0627\u0644\u0628\u064a\u0636",
|
| 973 |
+
"\u0627\u0644\u062c\u0628\u0644",
|
| 974 |
+
"\u0641\u0642\u0627\u0639\u0629",
|
| 975 |
+
"\u0627\u0644\u062c\u0631\u0641",
|
| 976 |
+
"\u0627\u0644\u0634\u0639\u0627\u0628 \u0627\u0644\u0645\u0631\u062c\u0627\u0646\u064a\u0629",
|
| 977 |
+
"\u0627\u0644\u0641\u0648\u0627\u0631\u0629 \u0627\u0644\u062d\u0627\u0631\u0629",
|
| 978 |
+
"\u0627\u0644\u0636\u0641\u0629",
|
| 979 |
+
"\u0627\u0644\u0634\u0646\u062e\u0629",
|
| 980 |
+
"\u0627\u0644\u0645\u064a\u0627\u0647 \u0627\u0644\u0636\u062d\u0644\u0629",
|
| 981 |
+
"\u0627\u0644\u0634\u0627\u0637\u0626",
|
| 982 |
+
"\u0627\u0644\u0648\u0627\u062f\u064a",
|
| 983 |
+
"\u0628\u0631\u0643\u0627\u0646",
|
| 984 |
+
"\u0644\u0627\u0639\u0628 \u0643\u0631\u0629 \u0627\u0644\u0642\u0627\u0639\u062f\u0629",
|
| 985 |
+
"\u0627\u0644\u0639\u0631\u064a\u0633",
|
| 986 |
+
"\u0627\u0644\u063a\u0648\u0635 \u0628\u062c\u0647\u0627\u0632 \u0627\u0644\u062a\u0646\u0641\u0633 ",
|
| 987 |
+
"\u0627\u0644\u0633\u0644\u062c\u0645",
|
| 988 |
+
"\u0632\u0647\u0631\u0629 \u0627\u0644\u0644\u0624\u0644\u0624 ",
|
| 989 |
+
"\u062e\u0641 \u0627\u0644\u0633\u064a\u062f\u0629 \u0627\u0644\u0623\u0635\u0641\u0631",
|
| 990 |
+
"\u0627\u0644\u0630\u0631\u0629",
|
| 991 |
+
"\u0634\u062c\u0631\u0629 \u062b\u0645\u0631\u0629 \u0627\u0644\u0628\u0644\u0648\u0637",
|
| 992 |
+
"\u062b\u0645\u0631 \u0627\u0644\u0648\u0631\u062f \u0627\u0644\u0628\u0631\u064a",
|
| 993 |
+
"\u0628\u0630\u0648\u0631 \u0643\u0633\u062a\u0646\u0627\u0621 \u0627\u0644\u062d\u0635\u0627\u0646",
|
| 994 |
+
"\u0627\u0644\u0641\u0637\u0631\u064a\u0627\u062a \u0627\u0644\u0645\u0631\u062c\u0627\u0646\u064a\u0629",
|
| 995 |
+
"\u0641\u0637\u0631 \u063a\u0627\u0631\u064a\u0642\u0648\u0646",
|
| 996 |
+
"\u0641\u0637\u0631 \u062c\u0627\u0631\u0648\u0645\u064a\u062a\u0631\u0627 \u0627\u064a\u0633\u0643\u0644\u0646\u062a\u0627",
|
| 997 |
+
"\u0627\u0644\u0642\u0631\u0646 \u0627\u0644\u0646\u062a\u0646",
|
| 998 |
+
"\u0641\u0637\u0631 \u0646\u062c\u0645 \u0627\u0644\u0623\u0631\u0636",
|
| 999 |
+
"\u0641\u0637\u0631 \u0631\u0641 \u0627\u0644\u0643\u0628\u0631\u064a\u062a",
|
| 1000 |
+
"\u0641\u0637\u0631 \u0627\u0644\u0628\u0648\u0644\u064a\u0637",
|
| 1001 |
+
"\u0627\u0644\u0639\u0631\u0646\u0627\u0633",
|
| 1002 |
+
"\u0648\u0631\u0642 \u0627\u0644\u0645\u0631\u062d\u0627\u0636"
|
| 1003 |
+
]
|
| 1004 |
+
}
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/ar_zeroshot_classification_templates.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"imagenet1k": [
|
| 3 |
+
"{c}",
|
| 4 |
+
"\u0635\u0648\u0631\u0629 \u0633\u064a\u0626\u0629 \u0644\u0640 {c}",
|
| 5 |
+
"\u0635\u0648\u0631\u0629 \u0633\u064a\u0626\u0629 \u062a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 {c}",
|
| 6 |
+
"\u0646\u062d\u062a \u0644\u0634\u0643\u0644 {c}",
|
| 7 |
+
"\u0646\u062d\u062a \u0644\u0640 {c}",
|
| 8 |
+
"\u0635\u0648\u0631\u0629 \u0630\u0627\u062a \u062c\u0648\u0648\u062f\u0629 \u0645\u0646\u062e\u0641\u0636\u0629 \u0644\u0640 {c}",
|
| 9 |
+
"\u0635\u0648\u0631\u0629 \u0630\u0627\u062a \u062c\u0648\u0648\u062f\u0629 \u0645\u0646\u062e\u0641\u0636\u0629 \u062a\u062d\u062a\u0648\u064a {c}",
|
| 10 |
+
"\u0631\u0633\u0648\u0645\u0627\u062a \u062c\u062f\u0627\u0631\u064a\u0629 \u062a\u062d\u062a\u0648\u064a {c}",
|
| 11 |
+
"\u0631\u0633\u0648\u0645\u0627\u062a \u062c\u062f\u0627\u0631\u064a\u0629 \u0644\u0640 {c}",
|
| 12 |
+
"\u0635\u0648\u0631\u0629 \u0645\u0642\u062a\u0637\u0639\u0629 \u062a\u062d\u062a\u0648\u064a \u0639\u0644\u0649 {c}",
|
| 13 |
+
"\u0635\u0648\u0631\u0629 \u0645\u0642\u062a\u0637\u0639\u0629 \u0644\u0640 {c}",
|
| 14 |
+
"\u062a\u0637\u0631\u064a\u0632 {c} ",
|
| 15 |
+
" \u0635\u0648\u0631\u0629 \u064a\u0635\u0639\u0628 \u0641\u064a\u0647\u0627 \u0631\u0624\u064a\u0629 {c} ",
|
| 16 |
+
"\u0635\u0648\u0631\u0629 \u0633\u0627\u0637\u0639\u0629 \u0644\u0640 {c}",
|
| 17 |
+
"\u0635\u0648\u0631\u0629 \u0648\u0627\u0636\u062d\u0629 \u0644\u0640 {c}",
|
| 18 |
+
"\u0635\u0648\u0631\u0629 \u0645\u062a\u0633\u062e\u0629 \u0644\u0640 {c}",
|
| 19 |
+
"\u0635\u0648\u0631\u0629 \u0645\u0638\u0644\u0645\u0629 \u0644\u0640 {c}",
|
| 20 |
+
"\u0635\u0648\u0631\u0629 \u0623\u0628\u064a\u0636 \u0648\u0623\u0633\u0648\u062f {c}",
|
| 21 |
+
"{c} \u0641\u064a \u0644\u0642\u0637\u0629 \u0642\u0631\u064a\u0628\u0629",
|
| 22 |
+
"\u0635\u0648\u0631\u0629 \u0631\u0627\u0626\u0639\u0629 \u0644\u0640 {c}",
|
| 23 |
+
"\u0644\u0642\u0637\u0629 \u0642\u0631\u064a\u0628\u0629 \u0644\u0640 {c}",
|
| 24 |
+
"\u0631\u0633\u0645 \u062d\u0627\u0633\u0648\u0628\u064a \u064a\u062d\u062a\u0648\u064a {c}",
|
| 25 |
+
"\u0635\u0648\u0631\u0629 \u0645\u0631\u0633\u0648\u0645\u0629 \u062a\u062d\u062a\u0648\u064a {c}",
|
| 26 |
+
"\u0631\u0633\u0645\u0629 \u0644\u0640 {c}",
|
| 27 |
+
"\u0631\u0633\u0645\u0629 {c}",
|
| 28 |
+
"\u0631\u0633\u0645 \u064a\u062d\u062a\u0648\u064a {c} ",
|
| 29 |
+
"\u0635\u0648\u0631\u0629 \u0628\u0646\u0645\u0637 \u0627\u0644\u0628\u0643\u0633\u0644 \u0644\u0640 {c}",
|
| 30 |
+
" \u0635\u0648\u0631\u0629 \u0633\u0627\u0637\u0639\u0629 {c}",
|
| 31 |
+
"\u0648\u0634\u0645 {c}",
|
| 32 |
+
"{c} \u0641\u064a \u0627\u0644\u0635\u0648\u0631\u0629",
|
| 33 |
+
"\u0635\u0648\u0631\u0629 \u0645\u062a\u0633\u062e\u0629 \u062a\u062d\u062a\u0648\u064a {c}",
|
| 34 |
+
"\u0635\u0648\u0631\u0629 \u062a\u0627\u0644\u0641\u0629 {c}",
|
| 35 |
+
"\u0635\u0648\u0631\u0629 \u0636\u0628\u0627\u0628\u064a\u0629 \u0644\u0640 {c}",
|
| 36 |
+
"\u0635\u0648\u0631\u0629 {c}",
|
| 37 |
+
"\u0635\u0648\u0631\u0629 \u062c\u064a\u062f\u0629 \u0644\u0640 {c}",
|
| 38 |
+
"\u0635\u0648\u0631\u0629 \u0644\u0640 {c}",
|
| 39 |
+
"\u062a\u0635\u064a\u064a\u0631 \u0644\u0640 {c}",
|
| 40 |
+
"{c} \u0639\u0644\u0649 \u0634\u0643\u0644 \u0631\u0633\u0645 \u062d\u0627\u0633\u0648\u0628\u064a \u062b\u0646\u0627\u0626\u064a \u0623\u0648 \u062b\u0644\u0627\u062b\u064a \u0627\u0644\u0623\u0628\u0639\u0627\u062f",
|
| 41 |
+
"\u064a\u0648\u062c\u062f {c} \u0648\u0627\u062d\u062f \u0641\u064a \u0627\u0644\u0635\u0648\u0631\u0629",
|
| 42 |
+
"\u0631\u0633\u0645 \u062d\u0627\u0633\u0648\u0628\u064a \u0644\u0640 {c}",
|
| 43 |
+
"\u0627\u0648\u0631\u064a\u063a\u0627\u0645\u064a \u0644\u0640 {c}",
|
| 44 |
+
"{c} \u0645\u0635\u0646\u0648\u0639 \u0639\u0646 \u0637\u0631\u064a\u0642 \u0641\u0646 \u0637\u064a \u0627\u0644\u0648\u0631\u0642",
|
| 45 |
+
"{c} \u0641\u064a \u0644\u0639\u0628\u0629 \u0641\u064a\u062f\u064a\u0648",
|
| 46 |
+
"{c} \u0645\u0648\u062c\u0648\u062f \u0641\u064a \u0644\u0639\u0628\u0629 \u0627\u0644\u0641\u064a\u062f\u064a\u0648",
|
| 47 |
+
"\u0631\u0633\u0645 \u062a\u0642\u0631\u064a\u0628\u064a \u0644\u0640 {c}",
|
| 48 |
+
"{c} \u0645\u0631\u0633\u0648\u0645 \u0628\u0627\u0644\u062e\u0631\u0627\u0628\u064a\u0634",
|
| 49 |
+
"\u0635\u0648\u0631\u0629 \u0628\u0641\u0646 \u0627\u0644\u062e\u0631\u0627\u0628\u064a\u0634 \u0644\u0640 {c}",
|
| 50 |
+
"\u0644\u0639\u0628\u0629 {c}",
|
| 51 |
+
"\u0635\u0648\u0631\u0629 \u064a\u0648\u062c\u062f \u0641\u064a\u0647\u0627 {c}",
|
| 52 |
+
"\u0631\u0633\u0648\u0645 \u0645\u062a\u062d\u0631\u0643\u0629 \u0644\u0640 {c} ",
|
| 53 |
+
"\u0635\u0648\u0631\u0629 \u0644\u0639\u062f\u062f \u0645\u0646 {c}",
|
| 54 |
+
"\u0635\u0648\u0631\u0629 \u064a\u0638\u0647\u0631 \u0641\u064a\u0647\u0627 {c}",
|
| 55 |
+
"\u0635\u0648\u0631\u0629 {c} \u0635\u063a\u064a\u0631 ",
|
| 56 |
+
"\u0635\u0648\u0631\u0629 {c} \u0643\u0628\u064a\u0631",
|
| 57 |
+
"{c} \u064a\u0638\u0647\u0631 \u0641\u064a \u0627\u0644\u0635\u0648\u0631\u0629"
|
| 58 |
+
]
|
| 59 |
+
}
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/birdsnap.py
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import concurrent.futures
|
| 2 |
+
import csv
|
| 3 |
+
import hashlib
|
| 4 |
+
import os
|
| 5 |
+
from pathlib import Path
|
| 6 |
+
|
| 7 |
+
import torch
|
| 8 |
+
from PIL import Image as Image
|
| 9 |
+
from torchvision.datasets.utils import download_and_extract_archive
|
| 10 |
+
|
| 11 |
+
Image.LOAD_TRUNCATED_IMAGES = True
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class Birdsnap(torch.utils.data.Dataset):
|
| 15 |
+
"""This is the BirdSnap dataset presented in
|
| 16 |
+
- Berg et al., "Birdsnap: Large-scale Fine-grained Visual Categorization of Birds"
|
| 17 |
+
It contains a lot of classes of birds and can be used as a replacement for ImageNet validation images
|
| 18 |
+
with similar image fidelity but less of the baggage, given that all subjects are in fact birds.
|
| 19 |
+
|
| 20 |
+
This is too small to train on though and hence not even partitioned into train/test.
|
| 21 |
+
Several images are missing from flickr (in 2021), these will be discarded automatically.
|
| 22 |
+
"""
|
| 23 |
+
|
| 24 |
+
METADATA_URL = 'http://thomasberg.org/datasets/birdsnap/1.1/birdsnap.tgz'
|
| 25 |
+
METADATA_ARCHIVE = 'birdsnap.tgz'
|
| 26 |
+
META_MD5 = '1788158175f6ae794aebf27bcd7a3f5d'
|
| 27 |
+
BASE_FOLDER = 'birdsnap'
|
| 28 |
+
|
| 29 |
+
def __init__(self, root, split='train', transform=None, target_transform=None, download=True, crop_to_bbx=False):
|
| 30 |
+
"""Init with split, transform, target_transform."""
|
| 31 |
+
self.root = os.path.expanduser(root)
|
| 32 |
+
self.transform = transform
|
| 33 |
+
self.target_transform = target_transform
|
| 34 |
+
|
| 35 |
+
self.crop_to_bbx = crop_to_bbx # Crop to dataset default bounding boxes
|
| 36 |
+
|
| 37 |
+
if download:
|
| 38 |
+
self.download()
|
| 39 |
+
if not self.check_integrity():
|
| 40 |
+
raise ValueError('Dataset Birdsnap not downloaded completely or possibly corrupted.')
|
| 41 |
+
|
| 42 |
+
# self._purge_missing_data()
|
| 43 |
+
|
| 44 |
+
def _check_integrity_of_metadata(self, chunk_size=8192):
|
| 45 |
+
"""This only checks if all files are there."""
|
| 46 |
+
try:
|
| 47 |
+
with open(os.path.join(self.root, self.METADATA_ARCHIVE), 'rb') as f:
|
| 48 |
+
archive_hash = hashlib.md5()
|
| 49 |
+
while chunk := f.read(chunk_size):
|
| 50 |
+
archive_hash.update(chunk)
|
| 51 |
+
return self.META_MD5 == archive_hash.hexdigest()
|
| 52 |
+
except FileNotFoundError:
|
| 53 |
+
return False
|
| 54 |
+
|
| 55 |
+
def check_integrity(self):
|
| 56 |
+
"""Full integrity check."""
|
| 57 |
+
if not self._check_integrity_of_metadata():
|
| 58 |
+
return False
|
| 59 |
+
else:
|
| 60 |
+
self._parse_metadata()
|
| 61 |
+
missing_images = 0
|
| 62 |
+
for idx, file in enumerate(self.meta):
|
| 63 |
+
if not self._verify_image(idx):
|
| 64 |
+
missing_images += 1
|
| 65 |
+
if missing_images > 0:
|
| 66 |
+
print(f'{missing_images} images could not be downloaded.')
|
| 67 |
+
return True
|
| 68 |
+
|
| 69 |
+
def download(self):
|
| 70 |
+
# Metadata:
|
| 71 |
+
if self._check_integrity_of_metadata():
|
| 72 |
+
print('Metadata already downloaded and verified')
|
| 73 |
+
else:
|
| 74 |
+
download_and_extract_archive(self.METADATA_URL, self.root, filename=self.METADATA_ARCHIVE)
|
| 75 |
+
# Actual files:
|
| 76 |
+
self._parse_metadata()
|
| 77 |
+
|
| 78 |
+
missing_ids = []
|
| 79 |
+
for idx, file in enumerate(self.meta):
|
| 80 |
+
if not self._verify_image(idx):
|
| 81 |
+
missing_ids.append(idx)
|
| 82 |
+
if len(missing_ids) > 0:
|
| 83 |
+
print(f'Downloading {len(missing_ids)} missing files now...')
|
| 84 |
+
self.scrape_images(missing_ids)
|
| 85 |
+
|
| 86 |
+
def __len__(self):
|
| 87 |
+
"""Return length via metainfo."""
|
| 88 |
+
return len(self.meta)
|
| 89 |
+
|
| 90 |
+
def __getitem__(self, index):
|
| 91 |
+
"""Return image, label."""
|
| 92 |
+
img = Image.open(self.paths[index])
|
| 93 |
+
if self.crop_to_bbx:
|
| 94 |
+
img = img.crop(
|
| 95 |
+
(
|
| 96 |
+
self.meta[index]['bb_x1'],
|
| 97 |
+
self.meta[index]['bb_y1'],
|
| 98 |
+
self.meta[index]['bb_x2'],
|
| 99 |
+
self.meta[index]['bb_y2'],
|
| 100 |
+
)
|
| 101 |
+
)
|
| 102 |
+
img = img.convert('RGB')
|
| 103 |
+
label = self.labels[index]
|
| 104 |
+
|
| 105 |
+
img = self.transform(img) if self.transform else img
|
| 106 |
+
label = self.target_transform(label) if self.target_transform else label
|
| 107 |
+
return img, label
|
| 108 |
+
|
| 109 |
+
def _parse_metadata(self):
|
| 110 |
+
"""Metadata keys are
|
| 111 |
+
dict_keys(['url', 'md5', 'path', 'species_id', 'bb_x1', 'bb_y1', 'bb_x2', 'bb_y2', 'back_x', 'back_y', 'beak_x',
|
| 112 |
+
'beak_y', 'belly_x', 'belly_y', 'breast_x', 'breast_y', 'crown_x', 'crown_y', 'forehead_x', 'forehead_y',
|
| 113 |
+
'left_cheek_x', 'left_cheek_y', 'left_eye_x', 'left_eye_y', 'left_leg_x', 'left_leg_y', 'left_wing_x',
|
| 114 |
+
'left_wing_y', 'nape_x', 'nape_y', 'right_cheek_x', 'right_cheek_y', 'right_eye_x', 'right_eye_y',
|
| 115 |
+
'right_leg_x', 'right_leg_y', 'right_wing_x', 'right_wing_y', 'tail_x', 'tail_y', 'throat_x', 'throat_y']
|
| 116 |
+
"""
|
| 117 |
+
with open(os.path.join(self.root, self.BASE_FOLDER, 'images.txt'), 'r') as f:
|
| 118 |
+
reader = csv.DictReader(f, delimiter='\t')
|
| 119 |
+
self.meta = list(reader) # List of dictionaries.
|
| 120 |
+
self.labels = [int(entry['species_id']) for entry in self.meta]
|
| 121 |
+
self.paths = [os.path.join(self.root, self.BASE_FOLDER, entry['path']) for entry in self.meta]
|
| 122 |
+
with open(os.path.join(self.root, self.BASE_FOLDER, 'species.txt'), 'r') as f:
|
| 123 |
+
reader = csv.DictReader(f, delimiter='\t')
|
| 124 |
+
self.classes_metadata = list(reader)
|
| 125 |
+
self.classes = [str(entry['common']) for entry in self.classes_metadata]
|
| 126 |
+
|
| 127 |
+
def _verify_image(self, idx):
|
| 128 |
+
try:
|
| 129 |
+
# Do this if you want to check in detail:
|
| 130 |
+
with open(os.path.join(self.root, self.BASE_FOLDER, self.meta[idx]['path']), 'rb') as fin:
|
| 131 |
+
return (hashlib.md5(fin.read()).hexdigest() == self.meta[idx]['md5'])
|
| 132 |
+
# In the mean time, just check if everything is there:
|
| 133 |
+
# return os.path.exists(os.path.join(self.root, self.BASE_FOLDER, self.meta[idx]["path"]))
|
| 134 |
+
except FileNotFoundError:
|
| 135 |
+
return False
|
| 136 |
+
|
| 137 |
+
def scrape_images(self, missing_ids, chunk_size=8196):
|
| 138 |
+
"""Scrape images using the python default ThreadPool example."""
|
| 139 |
+
import requests
|
| 140 |
+
|
| 141 |
+
def _load_url_and_save_image(idx, timeout):
|
| 142 |
+
full_path = os.path.join(self.root, self.BASE_FOLDER, self.meta[idx]['path'])
|
| 143 |
+
os.makedirs(os.path.split(full_path)[0], exist_ok=True)
|
| 144 |
+
r = requests.get(self.meta[idx]['url'], stream=True)
|
| 145 |
+
with open(full_path, 'wb') as write_file:
|
| 146 |
+
for chunk in r.iter_content(chunk_size=chunk_size):
|
| 147 |
+
write_file.write(chunk)
|
| 148 |
+
return True
|
| 149 |
+
|
| 150 |
+
# We can use a with statement to ensure threads are cleaned up promptly
|
| 151 |
+
with concurrent.futures.ThreadPoolExecutor(max_workers=None) as executor: # Choose max_workers dynamically
|
| 152 |
+
# Start the load operations and mark each future with its URL
|
| 153 |
+
future_to_url = {
|
| 154 |
+
executor.submit(_load_url_and_save_image, idx, 600): self.meta[idx]['url'] for idx in missing_ids
|
| 155 |
+
}
|
| 156 |
+
for future in concurrent.futures.as_completed(future_to_url):
|
| 157 |
+
url = future_to_url[future]
|
| 158 |
+
try:
|
| 159 |
+
data = future.result()
|
| 160 |
+
except Exception as exc:
|
| 161 |
+
print(f'{url} generated exception: {exc}')
|
| 162 |
+
else:
|
| 163 |
+
print(f'{url} downloaded successfully.')
|
| 164 |
+
|
| 165 |
+
def _purge_missing_data(self):
|
| 166 |
+
"""Iterate over all data and throw out missing images."""
|
| 167 |
+
JPG = b'\xff\xd8\xff'
|
| 168 |
+
|
| 169 |
+
clean_meta = []
|
| 170 |
+
invalid_files = 0
|
| 171 |
+
for entry in self.meta:
|
| 172 |
+
full_path = os.path.join(self.root, self.BASE_FOLDER, entry['path'])
|
| 173 |
+
with open(full_path, 'rb') as file_handle:
|
| 174 |
+
if file_handle.read(3) == JPG:
|
| 175 |
+
clean_meta.append(entry)
|
| 176 |
+
else:
|
| 177 |
+
invalid_files += 1
|
| 178 |
+
print(f'Discarded {invalid_files} invalid files.')
|
| 179 |
+
self.meta = clean_meta
|
| 180 |
+
|
| 181 |
+
self.labels = [int(entry['species_id']) for entry in self.meta]
|
| 182 |
+
self.paths = [os.path.join(self.root, self.BASE_FOLDER, entry['path']) for entry in self.meta]
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
class BirdsnapV2(torch.utils.data.Dataset):
|
| 186 |
+
def __init__(self, root, split='test', transform=None, target_transform=None):
|
| 187 |
+
assert split == 'test', print('Only test split is supported for now.')
|
| 188 |
+
self.root_dir = Path(root)
|
| 189 |
+
self.image_dir = self.root_dir
|
| 190 |
+
self.test_elements = self.root_dir / 'test_images_valid.txt'
|
| 191 |
+
self.classes_file = self.root_dir / 'species.txt'
|
| 192 |
+
self.target_transform = target_transform
|
| 193 |
+
self.transform = transform
|
| 194 |
+
with open(self.test_elements, 'r') as f:
|
| 195 |
+
self.imgs = [line.rstrip('\n') for line in f][1:]
|
| 196 |
+
|
| 197 |
+
with open(self.classes_file, 'r') as f:
|
| 198 |
+
self.classes = [line.rstrip('\n').split('\t')[1] for line in f][1:]
|
| 199 |
+
with open(self.classes_file, 'r') as f:
|
| 200 |
+
self.dirs = [line.rstrip('\n').split('\t')[-1] for line in f][1:]
|
| 201 |
+
dir2id = {dir: idx for idx, dir in enumerate(self.dirs)}
|
| 202 |
+
self.labels = []
|
| 203 |
+
for image in self.imgs:
|
| 204 |
+
dir = image.split('/')[0].lower()
|
| 205 |
+
label = dir2id[dir]
|
| 206 |
+
self.labels.append(label)
|
| 207 |
+
self.imgs = [os.path.join(self.root_dir, item) for item in self.imgs]
|
| 208 |
+
|
| 209 |
+
def __len__(self):
|
| 210 |
+
"""Return length via metainfo."""
|
| 211 |
+
return len(self.imgs)
|
| 212 |
+
|
| 213 |
+
def __getitem__(self, index):
|
| 214 |
+
"""Return image, label."""
|
| 215 |
+
img = Image.open(self.imgs[index])
|
| 216 |
+
img = img.convert('RGB')
|
| 217 |
+
label = self.labels[index]
|
| 218 |
+
|
| 219 |
+
img = self.transform(img) if self.transform else img
|
| 220 |
+
label = self.target_transform(label) if self.target_transform else label
|
| 221 |
+
return img, label
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
if __name__ == '__main__':
|
| 225 |
+
from tqdm import tqdm
|
| 226 |
+
|
| 227 |
+
dataset = BirdsnapV2(root='/mnt/petrelfs/wangwenhai/workspace/InternVL2/benchmark/imagenet/birdsnap', split='test')
|
| 228 |
+
print(len(dataset.imgs))
|
| 229 |
+
for i in tqdm(range(len(dataset))):
|
| 230 |
+
try:
|
| 231 |
+
dataset.__getit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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import os
|
| 3 |
+
import sys
|
| 4 |
+
import warnings
|
| 5 |
+
from subprocess import call
|
| 6 |
+
|
| 7 |
+
import torch
|
| 8 |
+
from torch.utils.data import default_collate
|
| 9 |
+
from torchvision.datasets import (CIFAR10, CIFAR100, DTD, GTSRB, MNIST, PCAM,
|
| 10 |
+
STL10, SUN397, CocoCaptions, Country211,
|
| 11 |
+
EuroSAT, FGVCAircraft, Flowers102, Food101,
|
| 12 |
+
ImageFolder, ImageNet, OxfordIIITPet,
|
| 13 |
+
RenderedSST2, StanfordCars)
|
| 14 |
+
|
| 15 |
+
from . import caltech101, flickr, imagenetv2, objectnet, voc2007
|
| 16 |
+
from .birdsnap import BirdsnapV2
|
| 17 |
+
from .tools import pre_caption
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def _load_classnames_and_classification_templates(dataset_name, current_folder, language):
|
| 21 |
+
with open(os.path.join(current_folder, language + '_classnames.json'), 'r') as f:
|
| 22 |
+
classnames = json.load(f)
|
| 23 |
+
|
| 24 |
+
# Zero-shot classification templates, collected from a bunch of sources
|
| 25 |
+
# - CLIP paper (https://github.com/openai/CLIP/blob/main/data/prompts.md)
|
| 26 |
+
# - Lit Paper (https://arxiv.org/pdf/2111.07991.pdf)
|
| 27 |
+
# - SLIP paper (https://github.com/facebookresearch/SLIP/blob/main/templates.json)
|
| 28 |
+
# Some are fixed mnaually
|
| 29 |
+
|
| 30 |
+
with open(os.path.join(current_folder, language + '_zeroshot_classification_templates.json'), 'r') as f:
|
| 31 |
+
zeroshot_classification_templates = json.load(f)
|
| 32 |
+
# default template to use when the dataset name does not belong to `zeroshot_classification_templates`
|
| 33 |
+
DEFAULT_ZEROSHOT_CLASSIFICATION_TEMPLATES = zeroshot_classification_templates['imagenet1k']
|
| 34 |
+
|
| 35 |
+
if dataset_name.startswith('tfds/') or dataset_name.startswith('vtab/') or dataset_name.startswith('wds/'):
|
| 36 |
+
name = dataset_name.split('/')[-1]
|
| 37 |
+
else:
|
| 38 |
+
name = dataset_name
|
| 39 |
+
templates = zeroshot_classification_templates.get(name, DEFAULT_ZEROSHOT_CLASSIFICATION_TEMPLATES)
|
| 40 |
+
return classnames, templates
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def build_dataset(dataset_name, root='root', transform=None, split='test', download=True, annotation_file=None,
|
| 44 |
+
language='en', task='zeroshot_classification', cupl=False, wds_cache_dir=None, **kwargs):
|
| 45 |
+
"""
|
| 46 |
+
Main function to use in order to build a dataset instance,
|
| 47 |
+
|
| 48 |
+
dataset_name: str
|
| 49 |
+
name of the dataset
|
| 50 |
+
|
| 51 |
+
root: str
|
| 52 |
+
root folder where the dataset is downloaded and stored. can be shared among datasets.
|
| 53 |
+
|
| 54 |
+
transform: torchvision transform applied to images
|
| 55 |
+
|
| 56 |
+
split: str
|
| 57 |
+
split to use, depending on the dataset can have different options.
|
| 58 |
+
In general, `train` and `test` are available.
|
| 59 |
+
For specific splits, please look at the corresponding dataset.
|
| 60 |
+
|
| 61 |
+
annotation_file: str or None
|
| 62 |
+
only for datasets with captions (used for retrieval) such as COCO
|
| 63 |
+
and Flickr.
|
| 64 |
+
"""
|
| 65 |
+
current_folder = os.path.dirname(__file__)
|
| 66 |
+
if task in ('zeroshot_classification', 'linear_probe'): # Only load templates and classnames if we have to
|
| 67 |
+
classnames, templates = _load_classnames_and_classification_templates(dataset_name, current_folder, language)
|
| 68 |
+
else:
|
| 69 |
+
classnames, templates = None, None
|
| 70 |
+
|
| 71 |
+
with open(os.path.join(current_folder, 'cupl_prompts.json'), 'r') as f:
|
| 72 |
+
cupl_prompts = json.load(f)
|
| 73 |
+
templates_cupl = None
|
| 74 |
+
|
| 75 |
+
train = (split == 'train')
|
| 76 |
+
if dataset_name == 'cifar10':
|
| 77 |
+
ds = CIFAR10(root=root, train=train, transform=transform, download=download, **kwargs)
|
| 78 |
+
elif dataset_name == 'cifar100':
|
| 79 |
+
ds = CIFAR100(root=root, train=train, transform=transform, download=download, **kwargs)
|
| 80 |
+
elif dataset_name == 'imagenet1k':
|
| 81 |
+
if not os.path.exists(root):
|
| 82 |
+
os.makedirs(root, exist_ok=True)
|
| 83 |
+
call(
|
| 84 |
+
f'wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_devkit_t12.tar.gz --output-document={root}/ILSVRC2012_devkit_t12.tar.gz',
|
| 85 |
+
shell=True)
|
| 86 |
+
call(
|
| 87 |
+
f'wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_val.tar --output-document={root}/ILSVRC2012_img_val.tar',
|
| 88 |
+
shell=True)
|
| 89 |
+
|
| 90 |
+
ds = ImageNet(root=root, split='train' if train else 'val', transform=transform, **kwargs)
|
| 91 |
+
# use classnames from OpenAI
|
| 92 |
+
ds.classes = classnames['imagenet1k']
|
| 93 |
+
templates_cupl = cupl_prompts['imagenet1k']
|
| 94 |
+
elif dataset_name == 'imagenet1k-unverified':
|
| 95 |
+
split = 'train' if train else 'val'
|
| 96 |
+
ds = ImageFolder(root=os.path.join(root, split), transform=transform, **kwargs)
|
| 97 |
+
# use classnames from OpenAI
|
| 98 |
+
ds.classes = classnames['imagenet1k']
|
| 99 |
+
templates_cupl = cupl_prompts['imagenet1k']
|
| 100 |
+
elif dataset_name == 'imagenetv2':
|
| 101 |
+
assert split == 'test', f'Only test split available for {dataset_name}'
|
| 102 |
+
os.makedirs(root, exist_ok=True)
|
| 103 |
+
ds = imagenetv2.ImageNetV2Dataset(variant='matched-frequency', transform=transform, location=root)
|
| 104 |
+
ds.classes = classnames['imagenet1k']
|
| 105 |
+
templates_cupl = cupl_prompts['imagenet1k']
|
| 106 |
+
elif dataset_name == 'imagenet_sketch':
|
| 107 |
+
assert split == 'test', f'Only test split available for {dataset_name}'
|
| 108 |
+
# Downloadable from https://drive.google.com/open?id=1Mj0i5HBthqH1p_yeXzsg22gZduvgoNeA
|
| 109 |
+
if not os.path.exists(root):
|
| 110 |
+
# Automatic download
|
| 111 |
+
print('Downloading imagenet_sketch...')
|
| 112 |
+
if not has_gdown():
|
| 113 |
+
print('GDown is needed to download the dataset. Please install it via `pip install gdown`')
|
| 114 |
+
sys.exit(1)
|
| 115 |
+
# Download ImageNet-Sketch.zip
|
| 116 |
+
call('gdown --id 1Mj0i5HBthqH1p_yeXzsg22gZduvgoNeA', shell=True)
|
| 117 |
+
assert os.path.exists('ImageNet-Sketch.zip')
|
| 118 |
+
# Unzip and move to `root`
|
| 119 |
+
call('unzip ImageNet-Sketch.zip', shell=True)
|
| 120 |
+
call(f'mv sketch {root}', shell=True)
|
| 121 |
+
ds = ImageFolder(root=root, transform=transform, **kwargs)
|
| 122 |
+
ds.classes = classnames['imagenet1k']
|
| 123 |
+
templates_cupl = cupl_prompts['imagenet1k']
|
| 124 |
+
elif dataset_name == 'imagenet-a':
|
| 125 |
+
assert split == 'test', f'Only test split available for {dataset_name}'
|
| 126 |
+
# Downloadable from https://people.eecs.berkeley.edu/~hendrycks/imagenet-a.tar
|
| 127 |
+
if not os.path.exists(root):
|
| 128 |
+
print('Downloading imagenet-a...')
|
| 129 |
+
call('wget https://people.eecs.berkeley.edu/~hendrycks/imagenet-a.tar', shell=True)
|
| 130 |
+
# Untar and move to `root`
|
| 131 |
+
call('tar xvf imagenet-a.tar', shell=True)
|
| 132 |
+
call(f'mv imagenet-a {root}', shell=True)
|
| 133 |
+
ds = ImageFolder(root=root, transform=transform, **kwargs)
|
| 134 |
+
ds.classes = classnames['imagenet1k']
|
| 135 |
+
imagenet_a_wnids = ['n01498041', 'n01531178', 'n01534433', 'n01558993', 'n01580077', 'n01614925', 'n01616318',
|
| 136 |
+
'n01631663', 'n01641577', 'n01669191', 'n01677366', 'n01687978', 'n01694178', 'n01698640',
|
| 137 |
+
'n01735189', 'n01770081', 'n01770393', 'n01774750', 'n01784675', 'n01819313', 'n01820546',
|
| 138 |
+
'n01833805', 'n01843383', 'n01847000', 'n01855672', 'n01882714', 'n01910747', 'n01914609',
|
| 139 |
+
'n01924916', 'n01944390', 'n01985128', 'n01986214', 'n02007558', 'n02009912', 'n02037110',
|
| 140 |
+
'n02051845', 'n02077923', 'n02085620', 'n02099601', 'n02106550', 'n02106662', 'n02110958',
|
| 141 |
+
'n02119022', 'n02123394', 'n02127052', 'n02129165', 'n02133161', 'n02137549', 'n02165456',
|
| 142 |
+
'n02174001', 'n02177972', 'n02190166', 'n02206856', 'n02219486', 'n02226429', 'n02231487',
|
| 143 |
+
'n02233338', 'n02236044', 'n02259212', 'n02268443', 'n02279972', 'n02280649', 'n02281787',
|
| 144 |
+
'n02317335', 'n02325366', 'n02346627', 'n02356798', 'n02361337', 'n02410509', 'n02445715',
|
| 145 |
+
'n02454379', 'n02486410', 'n02492035', 'n02504458', 'n02655020', 'n02669723', 'n02672831',
|
| 146 |
+
'n02676566', 'n02690373', 'n02701002', 'n02730930', 'n02777292', 'n02782093', 'n02787622',
|
| 147 |
+
'n02793495', 'n02797295', 'n02802426', 'n02814860', 'n02815834', 'n02837789', 'n02879718',
|
| 148 |
+
'n02883205', 'n02895154', 'n02906734', 'n02948072', 'n02951358', 'n02980441', 'n02992211',
|
| 149 |
+
'n02999410', 'n03014705', 'n03026506', 'n03124043', 'n03125729', 'n03187595', 'n03196217',
|
| 150 |
+
'n03223299', 'n03250847', 'n03255030', 'n03291819', 'n03325584', 'n03355925', 'n03384352',
|
| 151 |
+
'n03388043', 'n03417042', 'n03443371', 'n03444034', 'n03445924', 'n03452741', 'n03483316',
|
| 152 |
+
'n03584829', 'n03590841', 'n03594945', 'n03617480', 'n03666591', 'n03670208', 'n03717622',
|
| 153 |
+
'n03720891', 'n03721384', 'n03724870', 'n03775071', 'n03788195', 'n03804744', 'n03837869',
|
| 154 |
+
'n03840681', 'n03854065', 'n03888257', 'n03891332', 'n03935335', 'n03982430', 'n04019541',
|
| 155 |
+
'n04033901', 'n04039381', 'n04067472', 'n04086273', 'n04099969', 'n04118538', 'n04131690',
|
| 156 |
+
'n04133789', 'n04141076', 'n04146614', 'n04147183', 'n04179913', 'n04208210', 'n04235860',
|
| 157 |
+
'n04252077', 'n04252225', 'n04254120', 'n04270147', 'n04275548', 'n04310018', 'n04317175',
|
| 158 |
+
'n04344873', 'n04347754', 'n04355338', 'n04366367', 'n04376876', 'n04389033', 'n04399382',
|
| 159 |
+
'n04442312', 'n04456115', 'n04482393', 'n04507155', 'n04509417', 'n04532670', 'n04540053',
|
| 160 |
+
'n04554684', 'n04562935', 'n04591713', 'n04606251', 'n07583066', 'n07695742', 'n07697313',
|
| 161 |
+
'n07697537', 'n07714990', 'n07718472', 'n07720875', 'n07734744', 'n07749582', 'n07753592',
|
| 162 |
+
'n07760859', 'n07768694', 'n07831146', 'n09229709', 'n09246464', 'n09472597', 'n09835506',
|
| 163 |
+
'n11879895', 'n12057211', 'n12144580', 'n12267677']
|
| 164 |
+
imagenet_a_mask = [wnid in set(imagenet_a_wnids) for wnid in all_imagenet_wordnet_ids]
|
| 165 |
+
ds.classes = [cl for cl, mask in zip(ds.classes, imagenet_a_mask) if mask]
|
| 166 |
+
elif dataset_name == 'imagenet-r':
|
| 167 |
+
assert split == 'test', f'Only test split available for {dataset_name}'
|
| 168 |
+
# downloadable from https://people.eecs.berkeley.edu/~hendrycks/imagenet-r.tar
|
| 169 |
+
if not os.path.exists(root):
|
| 170 |
+
print('Downloading imagenet-r...')
|
| 171 |
+
call('wget https://people.eecs.berkeley.edu/~hendrycks/imagenet-r.tar', shell=True)
|
| 172 |
+
# Untar and move to `root`
|
| 173 |
+
call('tar xvf imagenet-r.tar', shell=True)
|
| 174 |
+
call(f'mv imagenet-r {root}', shell=True)
|
| 175 |
+
imagenet_r_wnids = {'n01443537', 'n01484850', 'n01494475', 'n01498041', 'n01514859', 'n01518878', 'n01531178',
|
| 176 |
+
'n01534433', 'n01614925', 'n01616318', 'n01630670', 'n01632777', 'n01644373', 'n01677366',
|
| 177 |
+
'n01694178', 'n01748264', 'n01770393', 'n01774750', 'n01784675', 'n01806143', 'n01820546',
|
| 178 |
+
'n01833805', 'n01843383', 'n01847000', 'n01855672', 'n01860187', 'n01882714', 'n01910747',
|
| 179 |
+
'n01944390', 'n01983481', 'n01986214', 'n02007558', 'n02009912', 'n02051845', 'n02056570',
|
| 180 |
+
'n02066245', 'n02071294', 'n02077923', 'n02085620', 'n02086240', 'n02088094', 'n02088238',
|
| 181 |
+
'n02088364', 'n02088466', 'n02091032', 'n02091134', 'n02092339', 'n02094433', 'n02096585',
|
| 182 |
+
'n02097298', 'n02098286', 'n02099601', 'n02099712', 'n02102318', 'n02106030', 'n02106166',
|
| 183 |
+
'n02106550', 'n02106662', 'n02108089', 'n02108915', 'n02109525', 'n02110185', 'n02110341',
|
| 184 |
+
'n02110958', 'n02112018', 'n02112137', 'n02113023', 'n02113624', 'n02113799', 'n02114367',
|
| 185 |
+
'n02117135', 'n02119022', 'n02123045', 'n02128385', 'n02128757', 'n02129165', 'n02129604',
|
| 186 |
+
'n02130308', 'n02134084', 'n02138441', 'n02165456', 'n02190166', 'n02206856', 'n02219486',
|
| 187 |
+
'n02226429', 'n02233338', 'n02236044', 'n02268443', 'n02279972', 'n02317335', 'n02325366',
|
| 188 |
+
'n02346627', 'n02356798', 'n02363005', 'n02364673', 'n02391049', 'n02395406', 'n02398521',
|
| 189 |
+
'n02410509', 'n02423022', 'n02437616', 'n02445715', 'n02447366', 'n02480495', 'n02480855',
|
| 190 |
+
'n02481823', 'n02483362', 'n02486410', 'n02510455', 'n02526121', 'n02607072', 'n02655020',
|
| 191 |
+
'n02672831', 'n02701002', 'n02749479', 'n02769748', 'n02793495', 'n02797295', 'n02802426',
|
| 192 |
+
'n02808440', 'n02814860', 'n02823750', 'n02841315', 'n02843684', 'n02883205', 'n02906734',
|
| 193 |
+
'n02909870', 'n02939185', 'n02948072', 'n02950826', 'n02951358', 'n02966193', 'n02980441',
|
| 194 |
+
'n02992529', 'n03124170', 'n03272010', 'n03345487', 'n03372029', 'n03424325', 'n03452741',
|
| 195 |
+
'n03467068', 'n03481172', 'n03494278', 'n03495258', 'n03498962', 'n03594945', 'n03602883',
|
| 196 |
+
'n03630383', 'n03649909', 'n03676483', 'n03710193', 'n03773504', 'n03775071', 'n03888257',
|
| 197 |
+
'n03930630', 'n03947888', 'n04086273', 'n04118538', 'n04133789', 'n04141076', 'n04146614',
|
| 198 |
+
'n04147183', 'n04192698', 'n04254680', 'n04266014', 'n04275548', 'n04310018', 'n04325704',
|
| 199 |
+
'n04347754', 'n04389033', 'n04409515', 'n04465501', 'n04487394', 'n04522168', 'n04536866',
|
| 200 |
+
'n04552348', 'n04591713', 'n07614500', 'n07693725', 'n07695742', 'n07697313', 'n07697537',
|
| 201 |
+
'n07714571', 'n07714990', 'n07718472', 'n07720875', 'n07734744', 'n07742313', 'n07745940',
|
| 202 |
+
'n07749582', 'n07753275', 'n07753592', 'n07768694', 'n07873807', 'n07880968', 'n07920052',
|
| 203 |
+
'n09472597', 'n09835506', 'n10565667', 'n12267677'}
|
| 204 |
+
imagenet_r_mask = [wnid in imagenet_r_wnids for wnid in all_imagenet_wordnet_ids]
|
| 205 |
+
ds = ImageFolder(root=root, transform=transform, **kwargs)
|
| 206 |
+
ds.classes = classnames['imagenet1k']
|
| 207 |
+
ds.classes = [cl for cl, mask in zip(ds.classes, imagenet_r_mask) if mask]
|
| 208 |
+
elif dataset_name == 'imagenet-o':
|
| 209 |
+
assert split == 'test', f'Only test split available for {dataset_name}'
|
| 210 |
+
# downloadable from https://people.eecs.berkeley.edu/~hendrycks/imagenet-o.tar
|
| 211 |
+
if not os.path.exists(root):
|
| 212 |
+
print('Downloading imagenet-o...')
|
| 213 |
+
call('wget https://people.eecs.berkeley.edu/~hendrycks/imagenet-o.tar', shell=True)
|
| 214 |
+
# Untar and move to `root`
|
| 215 |
+
call('tar xvf imagenet-o.tar', shell=True)
|
| 216 |
+
call(f'mv imagenet-o {root}', shell=True)
|
| 217 |
+
ds = ImageFolder(root=root, transform=transform, **kwargs)
|
| 218 |
+
ds.classes = classnames['imagenet1k']
|
| 219 |
+
imagenet_o_wnids = ['n01443537', 'n01704323', 'n01770081', 'n01784675', 'n01819313', 'n01820546', 'n01910747',
|
| 220 |
+
'n01917289', 'n01968897', 'n02074367', 'n02317335', 'n02319095', 'n02395406', 'n02454379',
|
| 221 |
+
'n02606052', 'n02655020', 'n02666196', 'n02672831', 'n02730930', 'n02777292', 'n02783161',
|
| 222 |
+
'n02786058', 'n02787622', 'n02791270', 'n02808304', 'n02817516', 'n02841315', 'n02865351',
|
| 223 |
+
'n02877765', 'n02892767', 'n02906734', 'n02910353', 'n02916936', 'n02948072', 'n02965783',
|
| 224 |
+
'n03000134', 'n03000684', 'n03017168', 'n03026506', 'n03032252', 'n03075370', 'n03109150',
|
| 225 |
+
'n03126707', 'n03134739', 'n03160309', 'n03196217', 'n03207743', 'n03218198', 'n03223299',
|
| 226 |
+
'n03240683', 'n03271574', 'n03291819', 'n03297495', 'n03314780', 'n03325584', 'n03344393',
|
| 227 |
+
'n03347037', 'n03372029', 'n03376595', 'n03388043', 'n03388183', 'n03400231', 'n03445777',
|
| 228 |
+
'n03457902', 'n03467068', 'n03482405', 'n03483316', 'n03494278', 'n03530642', 'n03544143',
|
| 229 |
+
'n03584829', 'n03590841', 'n03598930', 'n03602883', 'n03649909', 'n03661043', 'n03666591',
|
| 230 |
+
'n03676483', 'n03692522', 'n03706229', 'n03717622', 'n03720891', 'n03721384', 'n03724870',
|
| 231 |
+
'n03729826', 'n03733131', 'n03733281', 'n03742115', 'n03786901', 'n03788365', 'n03794056',
|
| 232 |
+
'n03804744', 'n03814639', 'n03814906', 'n03825788', 'n03840681', 'n03843555', 'n03854065',
|
| 233 |
+
'n03857828', 'n03868863', 'n03874293', 'n03884397', 'n03891251', 'n03908714', 'n03920288',
|
| 234 |
+
'n03929660', 'n03930313', 'n03937543', 'n03942813', 'n03944341', 'n03961711', 'n03970156',
|
| 235 |
+
'n03982430', 'n03991062', 'n03995372', 'n03998194', 'n04005630', 'n04023962', 'n04033901',
|
| 236 |
+
'n04040759', 'n04067472', 'n04074963', 'n04116512', 'n04118776', 'n04125021', 'n04127249',
|
| 237 |
+
'n04131690', 'n04141975', 'n04153751', 'n04154565', 'n04201297', 'n04204347', 'n04209133',
|
| 238 |
+
'n04209239', 'n04228054', 'n04235860', 'n04243546', 'n04252077', 'n04254120', 'n04258138',
|
| 239 |
+
'n04265275', 'n04270147', 'n04275548', 'n04330267', 'n04332243', 'n04336792', 'n04347754',
|
| 240 |
+
'n04371430', 'n04371774', 'n04372370', 'n04376876', 'n04409515', 'n04417672', 'n04418357',
|
| 241 |
+
'n04423845', 'n04429376', 'n04435653', 'n04442312', 'n04482393', 'n04501370', 'n04507155',
|
| 242 |
+
'n04525305', 'n04542943', 'n04554684', 'n04557648', 'n04562935', 'n04579432', 'n04591157',
|
| 243 |
+
'n04597913', 'n04599235', 'n06785654', 'n06874185', 'n07615774', 'n07693725', 'n07695742',
|
| 244 |
+
'n07697537', 'n07711569', 'n07714990', 'n07715103', 'n07716358', 'n07717410', 'n07718472',
|
| 245 |
+
'n07720875', 'n07742313', 'n07745940', 'n07747607', 'n07749582', 'n07753275', 'n07753592',
|
| 246 |
+
'n07754684', 'n07768694', 'n07836838', 'n07871810', 'n07873807', 'n07880968', 'n09229709',
|
| 247 |
+
'n09472597', 'n12144580', 'n12267677', 'n13052670']
|
| 248 |
+
imagenet_o_mask = [wnid in set(imagenet_o_wnids) for wnid in all_imagenet_wordnet_ids]
|
| 249 |
+
ds.classes = [cl for cl, mask in zip(ds.classes, imagenet_o_mask) if mask]
|
| 250 |
+
elif dataset_name == 'objectnet':
|
| 251 |
+
assert split == 'test', f'Only test split available for {dataset_name}'
|
| 252 |
+
# downloadable from https://objectnet.dev/downloads/objectnet-1.0.zip or https://www.dropbox.com/s/raw/cxeztdtm16nzvuw/objectnet-1.0.zip
|
| 253 |
+
if not os.path.exists(root):
|
| 254 |
+
print('Downloading objectnet...')
|
| 255 |
+
call('wget https://objectnet.dev/downloads/objectnet-1.0.zip', shell=True)
|
| 256 |
+
# Untar and move to `root`
|
| 257 |
+
call('UNZIP_DISABLE_ZIPBOMB_DETECTION=TRUE unzip -P objectnetisatestset objectnet-1.0.zip', shell=True)
|
| 258 |
+
os.makedirs(root)
|
| 259 |
+
call(f'mv objectnet-1.0 {root}', shell=True)
|
| 260 |
+
call(f'cp {root}/objectnet-1.0/mappings/* {root}', shell=True)
|
| 261 |
+
ds = objectnet.ObjectNetDataset(root=root, transform=transform)
|
| 262 |
+
elif dataset_name == 'voc2007':
|
| 263 |
+
ds = voc2007.PASCALVoc2007Cropped(root=root, set='train' if train else 'test', transform=transform,
|
| 264 |
+
download=download, **kwargs)
|
| 265 |
+
elif dataset_name == 'voc2007_multilabel':
|
| 266 |
+
ds = voc2007.PASCALVoc2007(root=root, set='train' if train else 'test', transform=transform, download=download,
|
| 267 |
+
**kwargs)
|
| 268 |
+
elif dataset_name == 'mscoco_captions':
|
| 269 |
+
# https://github.com/mehdidc/retrieval_annotations/releases/tag/1.0.0(annotations)
|
| 270 |
+
if split == 'train':
|
| 271 |
+
archive_name = 'train2014.zip'
|
| 272 |
+
elif split in ('val', 'test'):
|
| 273 |
+
archive_name = 'val2014.zip'
|
| 274 |
+
else:
|
| 275 |
+
raise ValueError(f'split should be train or val or test for `{dataset_name}`')
|
| 276 |
+
root_split = os.path.join(root, archive_name.replace('.zip', ''))
|
| 277 |
+
if not os.path.exists(root_split):
|
| 278 |
+
print(f'Downloading mscoco_captions {archive_name}...')
|
| 279 |
+
if not os.path.exists(os.path.join(root, archive_name)):
|
| 280 |
+
call(f'wget http://images.cocodataset.org/zips/{archive_name} --output-document={root}/{archive_name}',
|
| 281 |
+
shell=True)
|
| 282 |
+
call(f'unzip {root}/{archive_name} -d {root}', shell=True)
|
| 283 |
+
if not annotation_file:
|
| 284 |
+
annotation_file = f'{root}/coco_{split}_karpathy.json'
|
| 285 |
+
if language == 'cn':
|
| 286 |
+
annotation_file = f'{root}/coco-cn_{split}.json'
|
| 287 |
+
root_split = root
|
| 288 |
+
print(annotation_file)
|
| 289 |
+
if not os.path.exists(annotation_file):
|
| 290 |
+
call(
|
| 291 |
+
f'wget https://github.com/mehdidc/retrieval_annotations/releases/download/1.0.0/coco_{split}_karpathy.json --output-document={annotation_file}',
|
| 292 |
+
shell=True)
|
| 293 |
+
ds = CocoCaptions(root=root_split, annFile=annotation_file, transform=transform,
|
| 294 |
+
target_transform=pre_caption, **kwargs)
|
| 295 |
+
elif dataset_name == 'multilingual_mscoco_captions':
|
| 296 |
+
from clip_benchmark.datasets import multilingual_mscoco
|
| 297 |
+
if (language not in multilingual_mscoco.SUPPORTED_LANGUAGES):
|
| 298 |
+
raise ValueError('Unsupported language for multilingual_ms_coco:', language)
|
| 299 |
+
|
| 300 |
+
def get_archive_name(target_split):
|
| 301 |
+
if target_split == 'train':
|
| 302 |
+
return 'train2014.zip'
|
| 303 |
+
elif target_split in ('val', 'test'):
|
| 304 |
+
return 'val2014.zip'
|
| 305 |
+
else:
|
| 306 |
+
raise ValueError(f'split should be train or val or test for `{dataset_name}`')
|
| 307 |
+
|
| 308 |
+
def download_mscoco_split(target_split):
|
| 309 |
+
archive_name = get_archive_name(target_split)
|
| 310 |
+
root_split = os.path.join(root, archive_name.replace('.zip', ''))
|
| 311 |
+
if not os.path.exists(root_split):
|
| 312 |
+
print(f'Downloading mscoco_captions {archive_name}...')
|
| 313 |
+
if not os.path.exists(os.path.join(root, archive_name)):
|
| 314 |
+
call(
|
| 315 |
+
f'wget http://images.cocodataset.org/zips/{archive_name} --output-document={root}/{archive_name}',
|
| 316 |
+
shell=True)
|
| 317 |
+
call(f'unzip {root}/{archive_name} -d {root}', shell=True)
|
| 318 |
+
|
| 319 |
+
# The multilingual MS-COCO uses images from various splits
|
| 320 |
+
|
| 321 |
+
for target_split in ['train', 'val', 'test']:
|
| 322 |
+
download_mscoco_split(target_split)
|
| 323 |
+
|
| 324 |
+
annotation_file = os.path.join(root, multilingual_mscoco.CAPTIONS_FILE_NAME.format(language))
|
| 325 |
+
# if (os.path.exists(annotation_file) == False):
|
| 326 |
+
multilingual_mscoco.create_annotation_file(root, language)
|
| 327 |
+
|
| 328 |
+
ds = multilingual_mscoco.Multilingual_MSCOCO(root=root, ann_file=annotation_file, transform=transform, **kwargs)
|
| 329 |
+
elif dataset_name == 'flickr30k':
|
| 330 |
+
# downloadable from https://www.kaggle.com/datasets/adityajn105/flickr30k
|
| 331 |
+
# https://github.com/mehdidc/retrieval_annotations/releases/tag/1.0.0(annotations)
|
| 332 |
+
# `kaggle datasets download -d adityajn105/flickr30k`
|
| 333 |
+
if not os.path.exists(root):
|
| 334 |
+
# Automatic download
|
| 335 |
+
print('Downloading flickr30k...')
|
| 336 |
+
if not has_kaggle():
|
| 337 |
+
print('Kaggle is needed to download the dataset. Please install it via `pip install kaggle`')
|
| 338 |
+
sys.exit(1)
|
| 339 |
+
call('kaggle datasets download -d adityajn105/flickr30k', shell=True)
|
| 340 |
+
call(f'unzip flickr30k.zip', shell=True)
|
| 341 |
+
call(f'mv Images {root}', shell=True)
|
| 342 |
+
call(f'mv captions.txt {root}', shell=True)
|
| 343 |
+
if not annotation_file:
|
| 344 |
+
annotation_file = f'{root}/flickr30k_{split}_karpathy.txt'
|
| 345 |
+
if not os.path.exists(annotation_file):
|
| 346 |
+
# Download Flickr30K Karpathy test set
|
| 347 |
+
annotation_file = f'{root}/flickr30k_{split}_karpathy.txt'
|
| 348 |
+
call(
|
| 349 |
+
f'wget https://github.com/mehdidc/retrieval_annotations/releases/download/1.0.0/flickr30k_{split}_karpathy.txt --output-document={annotation_file}',
|
| 350 |
+
shell=True)
|
| 351 |
+
if language == 'cn':
|
| 352 |
+
annotation_file = f'{root}/flickr30k_cn_{split}.txt'
|
| 353 |
+
print(annotation_file)
|
| 354 |
+
ds = flickr.Flickr(root=f'{root}/Images', ann_file=annotation_file, transform=transform,
|
| 355 |
+
target_transform=pre_caption, **kwargs)
|
| 356 |
+
elif dataset_name == 'flickr8k':
|
| 357 |
+
# downloadable from https://www.kaggle.com/datasets/adityajn105/flickr8k
|
| 358 |
+
# `kaggle datasets download -d adityajn105/flickr8k`
|
| 359 |
+
# https://github.com/mehdidc/retrieval_annotations/releases/tag/1.0.0(annotations)
|
| 360 |
+
if not os.path.exists(root):
|
| 361 |
+
# Automatic download
|
| 362 |
+
print('Downloading flickr8k...')
|
| 363 |
+
if not has_kaggle():
|
| 364 |
+
print('Kaggle is needed to download the dataset. Please install it via `pip install kaggle`')
|
| 365 |
+
sys.exit(1)
|
| 366 |
+
call('kaggle datasets download -d adityajn105/flickr8k', shell=True)
|
| 367 |
+
call(f'unzip flickr8k.zip', shell=True)
|
| 368 |
+
call(f'mv Images {root}', shell=True)
|
| 369 |
+
call(f'mv captions.txt {root}', shell=True)
|
| 370 |
+
if not annotation_file:
|
| 371 |
+
annotation_file = f'{root}/flickr8k_{split}_karpathy.txt'
|
| 372 |
+
if not os.path.exists(annotation_file):
|
| 373 |
+
# Download Flickr8K Karpathy test set
|
| 374 |
+
annotation_file = f'{root}/flickr8k_{split}_karpathy.txt'
|
| 375 |
+
call(
|
| 376 |
+
f'wget https://github.com/mehdidc/retrieval_annotations/releases/download/1.0.0/flickr8k_{split}_karpathy.txt --output-document={annotation_file}',
|
| 377 |
+
shell=True)
|
| 378 |
+
ds = flickr.Flickr(root=root, ann_file=annotation_file, transform=transform, **kwargs)
|
| 379 |
+
elif dataset_name == 'food101':
|
| 380 |
+
ds = Food101(root=root, split='train' if train else 'test', transform=transform, download=download, **kwargs)
|
| 381 |
+
# we use the default class names, we just replace "_" by spaces
|
| 382 |
+
# to delimit words
|
| 383 |
+
ds.classes = [cl.replace('_', ' ') for cl in ds.classes]
|
| 384 |
+
elif dataset_name == 'sun397':
|
| 385 |
+
warnings.warn(
|
| 386 |
+
f'split argument ignored for `{dataset_name}`, there are no pre-defined train/test splits for this dataset')
|
| 387 |
+
# we use the default class names, we just replace "_" and "/" by spaces
|
| 388 |
+
# to delimit words
|
| 389 |
+
ds = SUN397(root=root, transform=transform, download=download, **kwargs)
|
| 390 |
+
ds.classes = [cl.replace('_', ' ').replace('/', ' ') for cl in ds.classes]
|
| 391 |
+
elif dataset_name == 'cars':
|
| 392 |
+
ds = StanfordCars(root=root, split='train' if train else 'test', transform=transform, download=download,
|
| 393 |
+
**kwargs)
|
| 394 |
+
elif dataset_name == 'fgvc_aircraft':
|
| 395 |
+
ds = FGVCAircraft(root=root, annotation_level='variant', split='train' if train else 'test',
|
| 396 |
+
transform=transform, download=download, **kwargs)
|
| 397 |
+
elif dataset_name == 'dtd':
|
| 398 |
+
ds = DTD(root=root, split='train' if train else 'test', transform=transform, download=download, **kwargs)
|
| 399 |
+
elif dataset_name == 'pets':
|
| 400 |
+
ds = OxfordIIITPet(root=root, split='train' if train else 'test', target_types='category', transform=transform,
|
| 401 |
+
download=download, **kwargs)
|
| 402 |
+
elif dataset_name == 'caltech101':
|
| 403 |
+
warnings.warn(
|
| 404 |
+
f'split argument ignored for `{dataset_name}`, there are no pre-defined train/test splits for this dataset')
|
| 405 |
+
# broken download link (can't download google drive), fixed by this PR https://github.com/pytorch/vision/pull/5645
|
| 406 |
+
# also available in "vtab/caltech101" using VTAB splits, we advice to use VTAB version rather than this one
|
| 407 |
+
# since in this one (torchvision) there are no pre-defined test splits
|
| 408 |
+
ds = caltech101.Caltech101(root=root, target_type='category', transform=transform, download=download, **kwargs)
|
| 409 |
+
ds.classes = classnames['caltech101']
|
| 410 |
+
elif dataset_name == 'flowers':
|
| 411 |
+
ds = Flowers102(root=root, split='train' if train else 'test', transform=transform, download=download, **kwargs)
|
| 412 |
+
# class indices started by 1 until it was fixed in a PR (#TODO link of the PR)
|
| 413 |
+
# if older torchvision version, fix it using a target transform that decrements label index
|
| 414 |
+
# TODO figure out minimal torchvision version needed instead of decrementing
|
| 415 |
+
if ds[0][1] == 1:
|
| 416 |
+
ds.target_transform = lambda y: y - 1
|
| 417 |
+
ds.classes = classnames['flowers']
|
| 418 |
+
elif dataset_name == 'birdsnap':
|
| 419 |
+
ds = BirdsnapV2(root=root, split='train' if train else 'test', transform=transform, **kwargs)
|
| 420 |
+
# ds.classes = ds.classes
|
| 421 |
+
elif dataset_name == 'mnist':
|
| 422 |
+
ds = MNIST(root=root, train=train, transform=transform, download=download, **kwargs)
|
| 423 |
+
ds.classes = classnames['mnist']
|
| 424 |
+
elif dataset_name == 'stl10':
|
| 425 |
+
ds = STL10(root=root, split='train' if train else 'test', transform=transform, download=download, **kwargs)
|
| 426 |
+
elif dataset_name == 'eurosat':
|
| 427 |
+
warnings.warn(
|
| 428 |
+
f'split argument ignored for `{dataset_name}`, there are no pre-defined train/test splits for this dataset')
|
| 429 |
+
ds = EuroSAT(root=root, transform=transform, download=download, **kwargs)
|
| 430 |
+
ds.classes = classnames['eurosat']
|
| 431 |
+
elif dataset_name == 'gtsrb':
|
| 432 |
+
ds = GTSRB(root=root, split='train' if train else 'test', transform=transform, download=download, **kwargs)
|
| 433 |
+
ds.classes = classnames['gtsrb']
|
| 434 |
+
elif dataset_name == 'country211':
|
| 435 |
+
ds = Country211(root=root, split='train' if train else 'test', transform=transform, download=download, **kwargs)
|
| 436 |
+
ds.classes = classnames['country211']
|
| 437 |
+
elif dataset_name == 'pcam':
|
| 438 |
+
# Dead link. Fixed by this PR on torchvision https://github.com/pytorch/vision/pull/5645
|
| 439 |
+
# TODO figure out minimal torchvision version needed
|
| 440 |
+
ds = PCAM(root=root, split='train' if train else 'test', transform=transform, download=download, **kwargs)
|
| 441 |
+
ds.classes = classnames['pcam']
|
| 442 |
+
elif dataset_name == 'renderedsst2':
|
| 443 |
+
ds = RenderedSST2(root=root, split='train' if train else 'test', transform=transform, download=download,
|
| 444 |
+
**kwargs)
|
| 445 |
+
elif dataset_name == 'fer2013':
|
| 446 |
+
# Downloadable from https://www.kaggle.com/datasets/msambare/fer2013
|
| 447 |
+
# `kaggle datasets download -d msambare/fer2013`
|
| 448 |
+
if not os.path.exists(root):
|
| 449 |
+
# Automatic download
|
| 450 |
+
print('Downloading fer2013...')
|
| 451 |
+
if not has_kaggle():
|
| 452 |
+
print('Kaggle is needed to download the dataset. Please install it via `pip install kaggle`')
|
| 453 |
+
sys.exit(1)
|
| 454 |
+
call('kaggle datasets download -d msambare/fer2013', shell=True)
|
| 455 |
+
call(f'unzip fer2013.zip -d {root}', shell=True)
|
| 456 |
+
root = os.path.join(root, 'train' if train else 'test')
|
| 457 |
+
ds = ImageFolder(root=root, transform=transform)
|
| 458 |
+
ds.classes = classnames['fer2013']
|
| 459 |
+
elif dataset_name.startswith('tfds/'):
|
| 460 |
+
# TFDS datasets support using `timm` and `tensorflow_datasets`
|
| 461 |
+
prefix, *name_list = dataset_name.split('/')
|
| 462 |
+
name = '/'.join(name_list)
|
| 463 |
+
ds = build_tfds_dataset(name, download=download, split=split, data_dir=root, transform=transform)
|
| 464 |
+
elif dataset_name.startswith('vtab/'):
|
| 465 |
+
# VTAB datasets support using `tensorflow_datasets` and `task_adaptation`
|
| 466 |
+
prefix, *name_list = dataset_name.split('/')
|
| 467 |
+
name = '/'.join(name_list)
|
| 468 |
+
ds = build_vtab_dataset(name, download=download, split=split, data_dir=root, transform=transform,
|
| 469 |
+
classnames=classnames)
|
| 470 |
+
elif dataset_name.startswith('wds/'):
|
| 471 |
+
# WebDataset support using `webdataset` library
|
| 472 |
+
name = dataset_name.split('/', 1)[1]
|
| 473 |
+
ds = build_wds_dataset(name, transform=transform, split=split, data_dir=root, cache_dir=wds_cache_dir)
|
| 474 |
+
return ds
|
| 475 |
+
elif dataset_name == 'dummy':
|
| 476 |
+
ds = Dummy()
|
| 477 |
+
else:
|
| 478 |
+
raise ValueError(f'Unsupported dataset: {dataset_name}.')
|
| 479 |
+
|
| 480 |
+
if cupl:
|
| 481 |
+
ds.templates = templates_cupl
|
| 482 |
+
else:
|
| 483 |
+
ds.templates = templates
|
| 484 |
+
|
| 485 |
+
return ds
|
| 486 |
+
|
| 487 |
+
|
| 488 |
+
class Dummy():
|
| 489 |
+
|
| 490 |
+
def __init__(self):
|
| 491 |
+
self.classes = ['blank image', 'noisy image']
|
| 492 |
+
|
| 493 |
+
def __getitem__(self, i):
|
| 494 |
+
return torch.zeros(3, 224, 224), 0
|
| 495 |
+
|
| 496 |
+
def __len__(self):
|
| 497 |
+
return 1
|
| 498 |
+
|
| 499 |
+
|
| 500 |
+
def get_dataset_default_task(dataset):
|
| 501 |
+
if dataset in ('flickr30k', 'flickr8k', 'mscoco_captions', 'multilingual_mscoco_captions'):
|
| 502 |
+
return 'zeroshot_retrieval'
|
| 503 |
+
else:
|
| 504 |
+
return 'zeroshot_classification'
|
| 505 |
+
|
| 506 |
+
|
| 507 |
+
def get_dataset_collate_fn(dataset_name):
|
| 508 |
+
if dataset_name in ('mscoco_captions', 'multilingual_mscoco_captions', 'flickr30k', 'flickr8k'):
|
| 509 |
+
return image_captions_collate_fn
|
| 510 |
+
else:
|
| 511 |
+
return default_collate
|
| 512 |
+
|
| 513 |
+
|
| 514 |
+
def has_gdown():
|
| 515 |
+
return call('which gdown', shell=True) == 0
|
| 516 |
+
|
| 517 |
+
|
| 518 |
+
def has_kaggle():
|
| 519 |
+
return call('which kaggle', shell=True) == 0
|
| 520 |
+
|
| 521 |
+
|
| 522 |
+
def build_vtab_dataset(dataset_name, transform, download=True, split='test', data_dir='root', classnames=[]):
|
| 523 |
+
# Using VTAB splits instead of default TFDS splits
|
| 524 |
+
from .tfds import (VTABIterableDataset, disable_gpus_on_tensorflow,
|
| 525 |
+
download_tfds_dataset)
|
| 526 |
+
|
| 527 |
+
# avoid Tensorflow owning GPUs to not clash with PyTorch
|
| 528 |
+
disable_gpus_on_tensorflow()
|
| 529 |
+
|
| 530 |
+
# by default we take classes from TFDS (default behavior if `classes` stays None),
|
| 531 |
+
# except for the datasets that will override `classes` (e.g., clevr_*)
|
| 532 |
+
classes = None
|
| 533 |
+
if dataset_name == 'caltech101':
|
| 534 |
+
from task_adaptation.data.caltech import Caltech101
|
| 535 |
+
tfds_dataset = Caltech101(data_dir=data_dir)
|
| 536 |
+
classes = classnames['caltech101_vtab']
|
| 537 |
+
elif dataset_name == 'cars':
|
| 538 |
+
from task_adaptation.data.cars import CarsData
|
| 539 |
+
tfds_dataset = CarsData(data_dir=data_dir)
|
| 540 |
+
elif dataset_name in ('cifar10', 'cifar100'):
|
| 541 |
+
from task_adaptation.data.cifar import CifarData
|
| 542 |
+
tfds_dataset = CifarData(data_dir=data_dir, num_classes=10 if dataset_name == 'cifar10' else 100)
|
| 543 |
+
elif dataset_name.startswith('clevr_'):
|
| 544 |
+
from task_adaptation.data.clevr import CLEVRData
|
| 545 |
+
task = _extract_task(dataset_name)
|
| 546 |
+
assert task in ('count_all', 'closest_object_distance')
|
| 547 |
+
tfds_dataset = CLEVRData(task=task, data_dir=data_dir)
|
| 548 |
+
if task == 'count_all':
|
| 549 |
+
classes = classnames['clevr_count_all']
|
| 550 |
+
elif task == 'closest_object_distance':
|
| 551 |
+
classes = classnames['clevr_closest_object_distance']
|
| 552 |
+
else:
|
| 553 |
+
raise ValueError(f'non supported: {task}')
|
| 554 |
+
elif dataset_name == 'cub':
|
| 555 |
+
from task_adaptation.data.cub import CUB2011Data
|
| 556 |
+
tfds_dataset = CUB2011Data(data_dir=data_dir)
|
| 557 |
+
elif dataset_name == 'diabetic_retinopathy':
|
| 558 |
+
# Needs manual download from Kaggle
|
| 559 |
+
# 1) `kaggle competitions download -c diabetic-retinopathy-detection` on $ROOT/downloads/manual
|
| 560 |
+
# 2) extract archives on $ROOT/downloads/manual
|
| 561 |
+
if not os.path.exists(data_dir):
|
| 562 |
+
# Automatic download
|
| 563 |
+
print('Downloading diabetic_retinopathy...')
|
| 564 |
+
if not has_kaggle():
|
| 565 |
+
print('Kaggle is needed to download the dataset. Please install it via `pip install kaggle`')
|
| 566 |
+
sys.exit(1)
|
| 567 |
+
os.makedirs(os.path.join(data_dir, 'downloads', 'manual'))
|
| 568 |
+
call(f'kaggle competitions download -c diabetic-retinopathy-detection -p {data_dir}/downloads/manual',
|
| 569 |
+
shell=True)
|
| 570 |
+
call(
|
| 571 |
+
f'cd {data_dir}/downloads/manual;unzip diabetic-retinopathy-detection.zip;cat train.zip*>train.zip;cat test.zip*>test.zip;unzip train.zip; unzip test.zip;unzip sample.zip;unzip trainLabels.csv.zip',
|
| 572 |
+
shell=True)
|
| 573 |
+
from task_adaptation.data.diabetic_retinopathy import RetinopathyData
|
| 574 |
+
tfds_dataset = RetinopathyData(config='btgraham-300', data_dir=data_dir)
|
| 575 |
+
classes = classnames['diabetic_retinopathy']
|
| 576 |
+
elif dataset_name == 'dmlab':
|
| 577 |
+
from task_adaptation.data.dmlab import DmlabData
|
| 578 |
+
download_tfds_dataset('dmlab',
|
| 579 |
+
data_dir=data_dir) # it's not called in the original VTAB code, so we do it explictly
|
| 580 |
+
tfds_dataset = DmlabData(data_dir=data_dir)
|
| 581 |
+
classes = classnames['dmlab']
|
| 582 |
+
elif dataset_name.startswith('dsprites_'):
|
| 583 |
+
from task_adaptation.data.dsprites import DSpritesData
|
| 584 |
+
task = _extract_task(dataset_name)
|
| 585 |
+
assert task in ('label_shape', 'label_scale', 'label_orientation', 'label_x_position', 'label_y_position')
|
| 586 |
+
tfds_dataset = DSpritesData(task, data_dir=data_dir)
|
| 587 |
+
classes = tfds_dataset._dataset_builder.info.features[task].names
|
| 588 |
+
elif dataset_name == 'dtd':
|
| 589 |
+
from task_adaptation.data.dtd import DTDData
|
| 590 |
+
tfds_dataset = DTDData(data_dir=data_dir)
|
| 591 |
+
elif dataset_name == 'eurosat':
|
| 592 |
+
from task_adaptation.data.eurosat import EurosatData
|
| 593 |
+
tfds_dataset = EurosatData(subset='rgb', data_key='image', data_dir=data_dir)
|
| 594 |
+
classes = classnames['eurosat']
|
| 595 |
+
elif dataset_name == 'food101':
|
| 596 |
+
from task_adaptation.data.food101 import Food101Data
|
| 597 |
+
tfds_dataset = Food101Data(data_dir=data_dir)
|
| 598 |
+
elif dataset_name == 'inaturalist':
|
| 599 |
+
from task_adaptation.data.inaturalist import INaturalistData
|
| 600 |
+
tfds_dataset = INaturalistData(data_dir=data_dir, year=2017)
|
| 601 |
+
elif dataset_name.startswith('kitti_'):
|
| 602 |
+
from .kitti import KittiData
|
| 603 |
+
task = _extract_task(dataset_name)
|
| 604 |
+
assert task in (
|
| 605 |
+
'count_all', 'count_left', 'count_far', 'count_near',
|
| 606 |
+
'closest_object_distance', 'closest_object_x_location',
|
| 607 |
+
'count_vehicles', 'closest_vehicle_distance',
|
| 608 |
+
)
|
| 609 |
+
tfds_dataset = KittiData(task=task, data_dir=data_dir)
|
| 610 |
+
if task == 'closest_vehicle_distance':
|
| 611 |
+
classes = classnames['kitti_closest_vehicle_distance']
|
| 612 |
+
else:
|
| 613 |
+
raise ValueError(f'Unsupported task: {task}')
|
| 614 |
+
elif dataset_name == 'flowers':
|
| 615 |
+
from task_adaptation.data.oxford_flowers102 import OxfordFlowers102Data
|
| 616 |
+
tfds_dataset = OxfordFlowers102Data(data_dir=data_dir)
|
| 617 |
+
elif dataset_name == 'pets':
|
| 618 |
+
from task_adaptation.data.oxford_iiit_pet import OxfordIIITPetData
|
| 619 |
+
tfds_dataset = OxfordIIITPetData(data_dir=data_dir)
|
| 620 |
+
classes = classnames['pets']
|
| 621 |
+
elif dataset_name == 'pcam':
|
| 622 |
+
from task_adaptation.data.patch_camelyon import PatchCamelyonData
|
| 623 |
+
tfds_dataset = PatchCamelyonData(data_dir=data_dir)
|
| 624 |
+
classes = classnames['pcam']
|
| 625 |
+
elif dataset_name == 'resisc45':
|
| 626 |
+
# Needs download from OneDrive: https://1drv.ms/u/s!AmgKYzARBl5ca3HNaHIlzp_IXjs
|
| 627 |
+
# The archive needs to to be put at <DATASET_ROOT>/downloads/manual then extracted
|
| 628 |
+
# if not os.path.exists(data_dir):
|
| 629 |
+
# os.makedirs(os.path.join(data_dir, "downloads", "manual"))
|
| 630 |
+
# call(f"wget 'https://onedrive.live.com/download?resid=5C5E061130630A68!107&authkey=!AHHNaHIlzp_IXjs' --output-document={data_dir}/downloads/manual/resisc45.rar", shell=True)
|
| 631 |
+
# call(f"cd {data_dir}/downloads/manual;unrar x resisc45.rar", shell=True)
|
| 632 |
+
from task_adaptation.data.resisc45 import Resisc45Data
|
| 633 |
+
tfds_dataset = Resisc45Data(data_dir=data_dir)
|
| 634 |
+
elif dataset_name.startswith('smallnorb_'):
|
| 635 |
+
from task_adaptation.data.smallnorb import SmallNORBData
|
| 636 |
+
task = _extract_task(dataset_name)
|
| 637 |
+
assert task in ('label_category', 'label_elevation', 'label_azimuth', 'label_lighting')
|
| 638 |
+
tfds_dataset = SmallNORBData(predicted_attribute=task, data_dir=data_dir)
|
| 639 |
+
classes = tfds_dataset._dataset_builder.info.features[task].names
|
| 640 |
+
elif dataset_name == 'sun397':
|
| 641 |
+
from task_adaptation.data.sun397 import Sun397Data
|
| 642 |
+
|
| 643 |
+
# FIXME There is a problem in `sun397`, when TFDS tries download it
|
| 644 |
+
# there is an image that cannot be decoded. For the time being
|
| 645 |
+
# we will use torchvision's SUN397 instead.
|
| 646 |
+
tfds_dataset = Sun397Data(config='tfds', data_dir=data_dir)
|
| 647 |
+
elif dataset_name == 'svhn':
|
| 648 |
+
from task_adaptation.data.svhn import SvhnData
|
| 649 |
+
tfds_dataset = SvhnData(data_dir=data_dir)
|
| 650 |
+
classes = classnames['svhn']
|
| 651 |
+
else:
|
| 652 |
+
raise ValueError(f'Unsupported dataset: {dataset_name}')
|
| 653 |
+
ds = VTABIterableDataset(
|
| 654 |
+
tfds_dataset,
|
| 655 |
+
input_name='image', label_name='label',
|
| 656 |
+
transform=transform,
|
| 657 |
+
target_transform=int,
|
| 658 |
+
split=split,
|
| 659 |
+
classes=classes,
|
| 660 |
+
)
|
| 661 |
+
return ds
|
| 662 |
+
|
| 663 |
+
|
| 664 |
+
def build_tfds_dataset(name, transform, download=True, split='test', data_dir='root', classes=None):
|
| 665 |
+
from .tfds import disable_gpus_on_tensorflow
|
| 666 |
+
disable_gpus_on_tensorflow()
|
| 667 |
+
import tensorflow_datasets as tfds
|
| 668 |
+
import timm
|
| 669 |
+
builder = tfds.builder(name, data_dir=data_dir)
|
| 670 |
+
if download:
|
| 671 |
+
builder.download_and_prepare()
|
| 672 |
+
splits = list(builder.info.splits.keys())
|
| 673 |
+
assert split in splits, (split, splits)
|
| 674 |
+
ds = timm.data.create_dataset(f'tfds/{name}', data_dir, split=split, transform=transform, target_transform=int)
|
| 675 |
+
ds.classes = builder.info.features['label'].names if classes is None else classes
|
| 676 |
+
return ds
|
| 677 |
+
|
| 678 |
+
|
| 679 |
+
def build_wds_dataset(dataset_name, transform, split='test', data_dir='root', cache_dir=None):
|
| 680 |
+
"""
|
| 681 |
+
Load a dataset in WebDataset format. Either local paths or HTTP URLs can be specified.
|
| 682 |
+
Expected file structure is:
|
| 683 |
+
```
|
| 684 |
+
data_dir/
|
| 685 |
+
train/
|
| 686 |
+
nshards.txt
|
| 687 |
+
0.tar
|
| 688 |
+
1.tar
|
| 689 |
+
...
|
| 690 |
+
test/
|
| 691 |
+
nshards.txt
|
| 692 |
+
0.tar
|
| 693 |
+
1.tar
|
| 694 |
+
...
|
| 695 |
+
classnames.txt
|
| 696 |
+
zeroshot_classification_templates.txt
|
| 697 |
+
dataset_type.txt
|
| 698 |
+
```
|
| 699 |
+
Classnames and templates are required for zeroshot classification, while dataset type
|
| 700 |
+
(equal to "retrieval") is required for zeroshot retrieval datasets.
|
| 701 |
+
|
| 702 |
+
You can use the `clip_benchmark_export_wds` or corresponding API
|
| 703 |
+
(`clip_benchmark.webdataset_builder.convert_dataset`) to convert datasets to this format.
|
| 704 |
+
|
| 705 |
+
Set `cache_dir` to a path to cache the dataset, otherwise, no caching will occur.
|
| 706 |
+
"""
|
| 707 |
+
import webdataset as wds
|
| 708 |
+
|
| 709 |
+
def read_txt(fname):
|
| 710 |
+
if '://' in fname:
|
| 711 |
+
stream = os.popen("curl -L -s --fail '%s'" % fname, 'r')
|
| 712 |
+
value = stream.read()
|
| 713 |
+
if stream.close():
|
| 714 |
+
raise FileNotFoundError('Failed to retreive data')
|
| 715 |
+
else:
|
| 716 |
+
with open(fname, 'r') as file:
|
| 717 |
+
value = file.read()
|
| 718 |
+
return value
|
| 719 |
+
|
| 720 |
+
# Special handling for Huggingface datasets
|
| 721 |
+
# Git LFS files have a different file path to access the raw data than other files
|
| 722 |
+
if data_dir.startswith('https://huggingface.co/datasets'):
|
| 723 |
+
# Format: https://huggingface.co/datasets/<USERNAME>/<REPO>/tree/<BRANCH>
|
| 724 |
+
*split_url_head, _, url_path = data_dir.split('/', 7)
|
| 725 |
+
url_head = '/'.join(split_url_head)
|
| 726 |
+
metadata_dir = '/'.join([url_head, 'raw', url_path])
|
| 727 |
+
tardata_dir = '/'.join([url_head, 'resolve', url_path])
|
| 728 |
+
else:
|
| 729 |
+
metadata_dir = tardata_dir = data_dir
|
| 730 |
+
# Get number of shards
|
| 731 |
+
nshards_fname = os.path.join(metadata_dir, split, 'nshards.txt')
|
| 732 |
+
nshards = int(read_txt(nshards_fname)) # Do not catch FileNotFound, nshards.txt should be mandatory
|
| 733 |
+
# Get dataset type (classification or retrieval)
|
| 734 |
+
type_fname = os.path.join(metadata_dir, 'dataset_type.txt')
|
| 735 |
+
try:
|
| 736 |
+
dataset_type = read_txt(type_fname).strip().lower()
|
| 737 |
+
except FileNotFoundError:
|
| 738 |
+
# print("WARNING: dataset_type.txt not found, assuming type=classification")
|
| 739 |
+
dataset_type = 'classification'
|
| 740 |
+
#
|
| 741 |
+
filepattern = os.path.join(tardata_dir, split, '{0..%d}.tar' % (nshards - 1))
|
| 742 |
+
# Load webdataset (support WEBP, PNG, and JPG for now)
|
| 743 |
+
if not cache_dir or not isinstance(cache_dir, str):
|
| 744 |
+
cache_dir = None
|
| 745 |
+
dataset = wds.WebDataset(filepattern, cache_dir=cache_dir).decode(
|
| 746 |
+
wds.autodecode.ImageHandler('pil', extensions=['webp', 'png', 'jpg', 'jpeg']))
|
| 747 |
+
|
| 748 |
+
# Load based on classification or retrieval task
|
| 749 |
+
if dataset_type == 'retrieval':
|
| 750 |
+
dataset = (dataset
|
| 751 |
+
.to_tuple(['webp', 'png', 'jpg', 'jpeg'], 'txt')
|
| 752 |
+
.map_tuple(transform, str.splitlines)
|
| 753 |
+
)
|
| 754 |
+
dataset.classes = dataset.templates = None
|
| 755 |
+
else:
|
| 756 |
+
label_type = 'npy' if dataset_type == 'multilabel' else 'cls' # Special case for multilabel
|
| 757 |
+
dataset = (dataset
|
| 758 |
+
.to_tuple(['webp', 'png', 'jpg', 'jpeg'], label_type)
|
| 759 |
+
.map_tuple(transform, None)
|
| 760 |
+
)
|
| 761 |
+
# Get class names if present
|
| 762 |
+
classnames_fname = os.path.join(metadata_dir, 'classnames.txt')
|
| 763 |
+
try:
|
| 764 |
+
dataset.classes = [line.strip() for line in read_txt(classnames_fname).splitlines() if line.strip()]
|
| 765 |
+
except FileNotFoundError:
|
| 766 |
+
print('WARNING: classnames.txt not found')
|
| 767 |
+
dataset.classes = None
|
| 768 |
+
# Get zeroshot classification templates if present
|
| 769 |
+
templates_fname = os.path.join(metadata_dir, 'zeroshot_classification_templates.txt')
|
| 770 |
+
try:
|
| 771 |
+
dataset.templates = [line.strip() for line in read_txt(templates_fname).splitlines() if line.strip()]
|
| 772 |
+
except FileNotFoundError:
|
| 773 |
+
print('WARNING: zeroshot_classification_templates.txt not found')
|
| 774 |
+
dataset.templates = None
|
| 775 |
+
|
| 776 |
+
return dataset
|
| 777 |
+
|
| 778 |
+
|
| 779 |
+
def _extract_task(dataset_name):
|
| 780 |
+
prefix, *task_name_list = dataset_name.split('_')
|
| 781 |
+
task = '_'.join(task_name_list)
|
| 782 |
+
return task
|
| 783 |
+
|
| 784 |
+
|
| 785 |
+
def image_captions_collate_fn(batch):
|
| 786 |
+
transposed = list(zip(*batch))
|
| 787 |
+
imgs = default_collate(transposed[0])
|
| 788 |
+
texts = transposed[1]
|
| 789 |
+
return imgs, texts
|
| 790 |
+
|
| 791 |
+
|
| 792 |
+
def get_dataset_collection_from_file(path):
|
| 793 |
+
return [l.strip() for l in open(path).readlines()]
|
| 794 |
+
|
| 795 |
+
|
| 796 |
+
dataset_collection = {
|
| 797 |
+
'vtab': [
|
| 798 |
+
'vtab/caltech101',
|
| 799 |
+
'vtab/cifar100',
|
| 800 |
+
'vtab/clevr_count_all',
|
| 801 |
+
'vtab/clevr_closest_object_distance',
|
| 802 |
+
'vtab/diabetic_retinopathy',
|
| 803 |
+
'vtab/dmlab',
|
| 804 |
+
'vtab/dsprites_label_orientation',
|
| 805 |
+
'vtab/dsprites_label_x_position',
|
| 806 |
+
'vtab/dtd',
|
| 807 |
+
'vtab/eurosat',
|
| 808 |
+
'vtab/kitti_closest_vehicle_distance',
|
| 809 |
+
'vtab/flowers',
|
| 810 |
+
'vtab/pets',
|
| 811 |
+
'vtab/pcam',
|
| 812 |
+
'vtab/resisc45',
|
| 813 |
+
'vtab/smallnorb_label_azimuth',
|
| 814 |
+
'vtab/smallnorb_label_elevation',
|
| 815 |
+
'sun397',
|
| 816 |
+
'vtab/svhn',
|
| 817 |
+
],
|
| 818 |
+
'vtab+': [
|
| 819 |
+
'imagenet1k',
|
| 820 |
+
'imagenetv2',
|
| 821 |
+
'imagenet_sketch',
|
| 822 |
+
'imagenet-a',
|
| 823 |
+
'imagenet-r',
|
| 824 |
+
'objectnet',
|
| 825 |
+
'fer2013',
|
| 826 |
+
'voc2007',
|
| 827 |
+
'voc2007_multilabel',
|
| 828 |
+
'sun397',
|
| 829 |
+
'cars',
|
| 830 |
+
'fgvc_aircraft',
|
| 831 |
+
'mnist',
|
| 832 |
+
'stl10',
|
| 833 |
+
'gtsrb',
|
| 834 |
+
'country211',
|
| 835 |
+
'renderedsst2',
|
| 836 |
+
'vtab/caltech101',
|
| 837 |
+
'vtab/cifar10',
|
| 838 |
+
'vtab/cifar100',
|
| 839 |
+
'vtab/clevr_count_all',
|
| 840 |
+
'vtab/clevr_closest_object_distance',
|
| 841 |
+
'vtab/diabetic_retinopathy',
|
| 842 |
+
'vtab/dmlab',
|
| 843 |
+
'vtab/dsprites_label_orientation',
|
| 844 |
+
'vtab/dsprites_label_x_position',
|
| 845 |
+
'vtab/dtd',
|
| 846 |
+
'vtab/eurosat',
|
| 847 |
+
'vtab/kitti_closest_vehicle_distance',
|
| 848 |
+
'vtab/flowers',
|
| 849 |
+
'vtab/pets',
|
| 850 |
+
'vtab/pcam',
|
| 851 |
+
'vtab/resisc45',
|
| 852 |
+
'vtab/smallnorb_label_azimuth',
|
| 853 |
+
'vtab/smallnorb_label_elevation',
|
| 854 |
+
'vtab/svhn',
|
| 855 |
+
],
|
| 856 |
+
'retrieval': [
|
| 857 |
+
'mscoco_captions',
|
| 858 |
+
'flickr8k',
|
| 859 |
+
'flickr30k',
|
| 860 |
+
],
|
| 861 |
+
'imagenet_robustness': [
|
| 862 |
+
'imagenetv2',
|
| 863 |
+
'imagenet_sketch',
|
| 864 |
+
'imagenet-a',
|
| 865 |
+
'imagenet-r',
|
| 866 |
+
'objectnet',
|
| 867 |
+
],
|
| 868 |
+
}
|
| 869 |
+
# use by imagenet robustness datasets
|
| 870 |
+
all_imagenet_wordnet_ids = ['n01440764', 'n01443537', 'n01484850', 'n01491361', 'n01494475', 'n01496331', 'n01498041',
|
| 871 |
+
'n01514668', 'n01514859', 'n01518878', 'n01530575', 'n01531178', 'n01532829', 'n01534433',
|
| 872 |
+
'n01537544', 'n01558993', 'n01560419', 'n01580077', 'n01582220', 'n01592084', 'n01601694',
|
| 873 |
+
'n01608432', 'n01614925', 'n01616318', 'n01622779', 'n01629819', 'n01630670', 'n01631663',
|
| 874 |
+
'n01632458', 'n01632777', 'n01641577', 'n01644373', 'n01644900', 'n01664065', 'n01665541',
|
| 875 |
+
'n01667114', 'n01667778', 'n01669191', 'n01675722', 'n01677366', 'n01682714', 'n01685808',
|
| 876 |
+
'n01687978', 'n01688243', 'n01689811', 'n01692333', 'n01693334', 'n01694178', 'n01695060',
|
| 877 |
+
'n01697457', 'n01698640', 'n01704323', 'n01728572', 'n01728920', 'n01729322', 'n01729977',
|
| 878 |
+
'n01734418', 'n01735189', 'n01737021', 'n01739381', 'n01740131', 'n01742172', 'n01744401',
|
| 879 |
+
'n01748264', 'n01749939', 'n01751748', 'n01753488', 'n01755581', 'n01756291', 'n01768244',
|
| 880 |
+
'n01770081', 'n01770393', 'n01773157', 'n01773549', 'n01773797', 'n01774384', 'n01774750',
|
| 881 |
+
'n01775062', 'n01776313', 'n01784675', 'n01795545', 'n01796340', 'n01797886', 'n01798484',
|
| 882 |
+
'n01806143', 'n01806567', 'n01807496', 'n01817953', 'n01818515', 'n01819313', 'n01820546',
|
| 883 |
+
'n01824575', 'n01828970', 'n01829413', 'n01833805', 'n01843065', 'n01843383', 'n01847000',
|
| 884 |
+
'n01855032', 'n01855672', 'n01860187', 'n01871265', 'n01872401', 'n01873310', 'n01877812',
|
| 885 |
+
'n01882714', 'n01883070', 'n01910747', 'n01914609', 'n01917289', 'n01924916', 'n01930112',
|
| 886 |
+
'n01943899', 'n01944390', 'n01945685', 'n01950731', 'n01955084', 'n01968897', 'n01978287',
|
| 887 |
+
'n01978455', 'n01980166', 'n01981276', 'n01983481', 'n01984695', 'n01985128', 'n01986214',
|
| 888 |
+
'n01990800', 'n02002556', 'n02002724', 'n02006656', 'n02007558', 'n02009229', 'n02009912',
|
| 889 |
+
'n02011460', 'n02012849', 'n02013706', 'n02017213', 'n02018207', 'n02018795', 'n02025239',
|
| 890 |
+
'n02027492', 'n02028035', 'n02033041', 'n02037110', 'n02051845', 'n02056570', 'n02058221',
|
| 891 |
+
'n02066245', 'n02071294', 'n02074367', 'n02077923', 'n02085620', 'n02085782', 'n02085936',
|
| 892 |
+
'n02086079', 'n02086240', 'n02086646', 'n02086910', 'n02087046', 'n02087394', 'n02088094',
|
| 893 |
+
'n02088238', 'n02088364', 'n02088466', 'n02088632', 'n02089078', 'n02089867', 'n02089973',
|
| 894 |
+
'n02090379', 'n02090622', 'n02090721', 'n02091032', 'n02091134', 'n02091244', 'n02091467',
|
| 895 |
+
'n02091635', 'n02091831', 'n02092002', 'n02092339', 'n02093256', 'n02093428', 'n02093647',
|
| 896 |
+
'n02093754', 'n02093859', 'n02093991', 'n02094114', 'n02094258', 'n02094433', 'n02095314',
|
| 897 |
+
'n02095570', 'n02095889', 'n02096051', 'n02096177', 'n02096294', 'n02096437', 'n02096585',
|
| 898 |
+
'n02097047', 'n02097130', 'n02097209', 'n02097298', 'n02097474', 'n02097658', 'n02098105',
|
| 899 |
+
'n02098286', 'n02098413', 'n02099267', 'n02099429', 'n02099601', 'n02099712', 'n02099849',
|
| 900 |
+
'n02100236', 'n02100583', 'n02100735', 'n02100877', 'n02101006', 'n02101388', 'n02101556',
|
| 901 |
+
'n02102040', 'n02102177', 'n02102318', 'n02102480', 'n02102973', 'n02104029', 'n02104365',
|
| 902 |
+
'n02105056', 'n02105162', 'n02105251', 'n02105412', 'n02105505', 'n02105641', 'n02105855',
|
| 903 |
+
'n02106030', 'n02106166', 'n02106382', 'n02106550', 'n02106662', 'n02107142', 'n02107312',
|
| 904 |
+
'n02107574', 'n02107683', 'n02107908', 'n02108000', 'n02108089', 'n02108422', 'n02108551',
|
| 905 |
+
'n02108915', 'n02109047', 'n02109525', 'n02109961', 'n02110063', 'n02110185', 'n02110341',
|
| 906 |
+
'n02110627', 'n02110806', 'n02110958', 'n02111129', 'n02111277', 'n02111500', 'n02111889',
|
| 907 |
+
'n02112018', 'n02112137', 'n02112350', 'n02112706', 'n02113023', 'n02113186', 'n02113624',
|
| 908 |
+
'n02113712', 'n02113799', 'n02113978', 'n02114367', 'n02114548', 'n02114712', 'n02114855',
|
| 909 |
+
'n02115641', 'n02115913', 'n02116738', 'n02117135', 'n02119022', 'n02119789', 'n02120079',
|
| 910 |
+
'n02120505', 'n02123045', 'n02123159', 'n02123394', 'n02123597', 'n02124075', 'n02125311',
|
| 911 |
+
'n02127052', 'n02128385', 'n02128757', 'n02128925', 'n02129165', 'n02129604', 'n02130308',
|
| 912 |
+
'n02132136', 'n02133161', 'n02134084', 'n02134418', 'n02137549', 'n02138441', 'n02165105',
|
| 913 |
+
'n02165456', 'n02167151', 'n02168699', 'n02169497', 'n02172182', 'n02174001', 'n02177972',
|
| 914 |
+
'n02190166', 'n02206856', 'n02219486', 'n02226429', 'n02229544', 'n02231487', 'n02233338',
|
| 915 |
+
'n02236044', 'n02256656', 'n02259212', 'n02264363', 'n02268443', 'n02268853', 'n02276258',
|
| 916 |
+
'n02277742', 'n02279972', 'n02280649', 'n02281406', 'n02281787', 'n02317335', 'n02319095',
|
| 917 |
+
'n02321529', 'n02325366', 'n02326432', 'n02328150', 'n02342885', 'n02346627', 'n02356798',
|
| 918 |
+
'n02361337', 'n02363005', 'n02364673', 'n02389026', 'n02391049', 'n02395406', 'n02396427',
|
| 919 |
+
'n02397096', 'n02398521', 'n02403003', 'n02408429', 'n02410509', 'n02412080', 'n02415577',
|
| 920 |
+
'n02417914', 'n02422106', 'n02422699', 'n02423022', 'n02437312', 'n02437616', 'n02441942',
|
| 921 |
+
'n02442845', 'n02443114', 'n02443484', 'n02444819', 'n02445715', 'n02447366', 'n02454379',
|
| 922 |
+
'n02457408', 'n02480495', 'n02480855', 'n02481823', 'n02483362', 'n02483708', 'n02484975',
|
| 923 |
+
'n02486261', 'n02486410', 'n02487347', 'n02488291', 'n02488702', 'n02489166', 'n02490219',
|
| 924 |
+
'n02492035', 'n02492660', 'n02493509', 'n02493793', 'n02494079', 'n02497673', 'n02500267',
|
| 925 |
+
'n02504013', 'n02504458', 'n02509815', 'n02510455', 'n02514041', 'n02526121', 'n02536864',
|
| 926 |
+
'n02606052', 'n02607072', 'n02640242', 'n02641379', 'n02643566', 'n02655020', 'n02666196',
|
| 927 |
+
'n02667093', 'n02669723', 'n02672831', 'n02676566', 'n02687172', 'n02690373', 'n02692877',
|
| 928 |
+
'n02699494', 'n02701002', 'n02704792', 'n02708093', 'n02727426', 'n02730930', 'n02747177',
|
| 929 |
+
'n02749479', 'n02769748', 'n02776631', 'n02777292', 'n02782093', 'n02783161', 'n02786058',
|
| 930 |
+
'n02787622', 'n02788148', 'n02790996', 'n02791124', 'n02791270', 'n02793495', 'n02794156',
|
| 931 |
+
'n02795169', 'n02797295', 'n02799071', 'n02802426', 'n02804414', 'n02804610', 'n02807133',
|
| 932 |
+
'n02808304', 'n02808440', 'n02814533', 'n02814860', 'n02815834', 'n02817516', 'n02823428',
|
| 933 |
+
'n02823750', 'n02825657', 'n02834397', 'n02835271', 'n02837789', 'n02840245', 'n02841315',
|
| 934 |
+
'n02843684', 'n02859443', 'n02860847', 'n02865351', 'n02869837', 'n02870880', 'n02871525',
|
| 935 |
+
'n02877765', 'n02879718', 'n02883205', 'n02892201', 'n02892767', 'n02894605', 'n02895154',
|
| 936 |
+
'n02906734', 'n02909870', 'n02910353', 'n02916936', 'n02917067', 'n02927161', 'n02930766',
|
| 937 |
+
'n02939185', 'n02948072', 'n02950826', 'n02951358', 'n02951585', 'n02963159', 'n02965783',
|
| 938 |
+
'n02966193', 'n02966687', 'n02971356', 'n02974003', 'n02977058', 'n02978881', 'n02979186',
|
| 939 |
+
'n02980441', 'n02981792', 'n02988304', 'n02992211', 'n02992529', 'n02999410', 'n03000134',
|
| 940 |
+
'n03000247', 'n03000684', 'n03014705', 'n03016953', 'n03017168', 'n03018349', 'n03026506',
|
| 941 |
+
'n03028079', 'n03032252', 'n03041632', 'n03042490', 'n03045698', 'n03047690', 'n03062245',
|
| 942 |
+
'n03063599', 'n03063689', 'n03065424', 'n03075370', 'n03085013', 'n03089624', 'n03095699',
|
| 943 |
+
'n03100240', 'n03109150', 'n03110669', 'n03124043', 'n03124170', 'n03125729', 'n03126707',
|
| 944 |
+
'n03127747', 'n03127925', 'n03131574', 'n03133878', 'n03134739', 'n03141823', 'n03146219',
|
| 945 |
+
'n03160309', 'n03179701', 'n03180011', 'n03187595', 'n03188531', 'n03196217', 'n03197337',
|
| 946 |
+
'n03201208', 'n03207743', 'n03207941', 'n03208938', 'n03216828', 'n03218198', 'n03220513',
|
| 947 |
+
'n03223299', 'n03240683', 'n03249569', 'n03250847', 'n03255030', 'n03259280', 'n03271574',
|
| 948 |
+
'n03272010', 'n03272562', 'n03290653', 'n03291819', 'n03297495', 'n03314780', 'n03325584',
|
| 949 |
+
'n03337140', 'n03344393', 'n03345487', 'n03347037', 'n03355925', 'n03372029', 'n03376595',
|
| 950 |
+
'n03379051', 'n03384352', 'n03388043', 'n03388183', 'n03388549', 'n03393912', 'n03394916',
|
| 951 |
+
'n03400231', 'n03404251', 'n03417042', 'n03424325', 'n03425413', 'n03443371', 'n03444034',
|
| 952 |
+
'n03445777', 'n03445924', 'n03447447', 'n03447721', 'n03450230', 'n03452741', 'n03457902',
|
| 953 |
+
'n03459775', 'n03461385', 'n03467068', 'n03476684', 'n03476991', 'n03478589', 'n03481172',
|
| 954 |
+
'n03482405', 'n03483316', 'n03485407', 'n03485794', 'n03492542', 'n03494278', 'n03495258',
|
| 955 |
+
'n03496892', 'n03498962', 'n03527444', 'n03529860', 'n03530642', 'n03532672', 'n03534580',
|
| 956 |
+
'n03535780', 'n03538406', 'n03544143', 'n03584254', 'n03584829', 'n03590841', 'n03594734',
|
| 957 |
+
'n03594945', 'n03595614', 'n03598930', 'n03599486', 'n03602883', 'n03617480', 'n03623198',
|
| 958 |
+
'n03627232', 'n03630383', 'n03633091', 'n03637318', 'n03642806', 'n03649909', 'n03657121',
|
| 959 |
+
'n03658185', 'n03661043', 'n03662601', 'n03666591', 'n03670208', 'n03673027', 'n03676483',
|
| 960 |
+
'n03680355', 'n03690938', 'n03691459', 'n03692522', 'n03697007', 'n03706229', 'n03709823',
|
| 961 |
+
'n03710193', 'n03710637', 'n03710721', 'n03717622', 'n03720891', 'n03721384', 'n03724870',
|
| 962 |
+
'n03729826', 'n03733131', 'n03733281', 'n03733805', 'n03742115', 'n03743016', 'n03759954',
|
| 963 |
+
'n03761084', 'n03763968', 'n03764736', 'n03769881', 'n03770439', 'n03770679', 'n03773504',
|
| 964 |
+
'n03775071', 'n03775546', 'n03776460', 'n03777568', 'n03777754', 'n03781244', 'n03782006',
|
| 965 |
+
'n03785016', 'n03786901', 'n03787032', 'n03788195', 'n03788365', 'n03791053', 'n03792782',
|
| 966 |
+
'n03792972', 'n03793489', 'n03794056', 'n03796401', 'n03803284', 'n03804744', 'n03814639',
|
| 967 |
+
'n03814906', 'n03825788', 'n03832673', 'n03837869', 'n03838899', 'n03840681', 'n03841143',
|
| 968 |
+
'n03843555', 'n03854065', 'n03857828', 'n03866082', 'n03868242', 'n03868863', 'n03871628',
|
| 969 |
+
'n03873416', 'n03874293', 'n03874599', 'n03876231', 'n03877472', 'n03877845', 'n03884397',
|
| 970 |
+
'n03887697', 'n03888257', 'n03888605', 'n03891251', 'n03891332', 'n03895866', 'n03899768',
|
| 971 |
+
'n03902125', 'n03903868', 'n03908618', 'n03908714', 'n03916031', 'n03920288', 'n03924679',
|
| 972 |
+
'n03929660', 'n03929855', 'n03930313', 'n03930630', 'n03933933', 'n03935335', 'n03937543',
|
| 973 |
+
'n03938244', 'n03942813', 'n03944341', 'n03947888', 'n03950228', 'n03954731', 'n03956157',
|
| 974 |
+
'n03958227', 'n03961711', 'n03967562', 'n03970156', 'n03976467', 'n03976657', 'n03977966',
|
| 975 |
+
'n03980874', 'n03982430', 'n03983396', 'n03991062', 'n03992509', 'n03995372', 'n03998194',
|
| 976 |
+
'n04004767', 'n04005630', 'n04008634', 'n04009552', 'n04019541', 'n04023962', 'n04026417',
|
| 977 |
+
'n04033901', 'n04033995', 'n04037443', 'n04039381', 'n04040759', 'n04041544', 'n04044716',
|
| 978 |
+
'n04049303', 'n04065272', 'n04067472', 'n04069434', 'n04070727', 'n04074963', 'n04081281',
|
| 979 |
+
'n04086273', 'n04090263', 'n04099969', 'n04111531', 'n04116512', 'n04118538', 'n04118776',
|
| 980 |
+
'n04120489', 'n04125021', 'n04127249', 'n04131690', 'n04133789', 'n04136333', 'n04141076',
|
| 981 |
+
'n04141327', 'n04141975', 'n04146614', 'n04147183', 'n04149813', 'n04152593', 'n04153751',
|
| 982 |
+
'n04154565', 'n04162706', 'n04179913', 'n04192698', 'n04200800', 'n04201297', 'n04204238',
|
| 983 |
+
'n04204347', 'n04208210', 'n04209133', 'n04209239', 'n04228054', 'n04229816', 'n04235860',
|
| 984 |
+
'n04238763', 'n04239074', 'n04243546', 'n04251144', 'n04252077', 'n04252225', 'n04254120',
|
| 985 |
+
'n04254680', 'n04254777', 'n04258138', 'n04259630', 'n04263257', 'n04264628', 'n04265275',
|
| 986 |
+
'n04266014', 'n04270147', 'n04273569', 'n04275548', 'n04277352', 'n04285008', 'n04286575',
|
| 987 |
+
'n04296562', 'n04310018', 'n04311004', 'n04311174', 'n04317175', 'n04325704', 'n04326547',
|
| 988 |
+
'n04328186', 'n04330267', 'n04332243', 'n04335435', 'n04336792', 'n04344873', 'n04346328',
|
| 989 |
+
'n04347754', 'n04350905', 'n04355338', 'n04355933', 'n04356056', 'n04357314', 'n04366367',
|
| 990 |
+
'n04367480', 'n04370456', 'n04371430', 'n04371774', 'n04372370', 'n04376876', 'n04380533',
|
| 991 |
+
'n04389033', 'n04392985', 'n04398044', 'n04399382', 'n04404412', 'n04409515', 'n04417672',
|
| 992 |
+
'n04418357', 'n04423845', 'n04428191', 'n04429376', 'n04435653', 'n04442312', 'n04443257',
|
| 993 |
+
'n04447861', 'n04456115', 'n04458633', 'n04461696', 'n04462240', 'n04465501', 'n04467665',
|
| 994 |
+
'n04476259', 'n04479046', 'n04482393', 'n04483307', 'n04485082', 'n04486054', 'n04487081',
|
| 995 |
+
'n04487394', 'n04493381', 'n04501370', 'n04505470', 'n04507155', 'n04509417', 'n04515003',
|
| 996 |
+
'n04517823', 'n04522168', 'n04523525', 'n04525038', 'n04525305', 'n04532106', 'n04532670',
|
| 997 |
+
'n04536866', 'n04540053', 'n04542943', 'n04548280', 'n04548362', 'n04550184', 'n04552348',
|
| 998 |
+
'n04553703', 'n04554684', 'n04557648', 'n04560804', 'n04562935', 'n04579145', 'n04579432',
|
| 999 |
+
'n04584207', 'n04589890', 'n04590129', 'n04591157', 'n04591713', 'n04592741', 'n04596742',
|
| 1000 |
+
'n04597913', 'n04599235', 'n04604644', 'n04606251', 'n04612504', 'n04613696', 'n06359193',
|
| 1001 |
+
'n06596364', 'n06785654', 'n06794110', 'n06874185', 'n07248320', 'n07565083', 'n07579787',
|
| 1002 |
+
'n07583066', 'n07584110', 'n07590611', 'n07613480', 'n07614500', 'n07615774', 'n07684084',
|
| 1003 |
+
'n07693725', 'n07695742', 'n07697313', 'n07697537', 'n07711569', 'n07714571', 'n07714990',
|
| 1004 |
+
'n07715103', 'n07716358', 'n07716906', 'n07717410', 'n07717556', 'n07718472', 'n07718747',
|
| 1005 |
+
'n07720875', 'n07730033', 'n07734744', 'n07742313', 'n07745940', 'n07747607', 'n07749582',
|
| 1006 |
+
'n07753113', 'n07753275', 'n07753592', 'n07754684', 'n07760859', 'n07768694', 'n07802026',
|
| 1007 |
+
'n07831146', 'n07836838', 'n07860988', 'n07871810', 'n07873807', 'n07875152', 'n07880968',
|
| 1008 |
+
'n07892512', 'n07920052', 'n07930864', 'n07932039', 'n09193705', 'n09229709', 'n09246464',
|
| 1009 |
+
'n09256479', 'n09288635', 'n09332890', 'n09399592', 'n09421951', 'n09428293', 'n09468604',
|
| 1010 |
+
'n09472597', 'n09835506', 'n10148035', 'n10565667', 'n11879895', 'n11939491', 'n12057211',
|
| 1011 |
+
'n12144580', 'n12267677', 'n12620546', 'n12768682', 'n12985857', 'n12998815', 'n13037406',
|
| 1012 |
+
'n13040303', 'n13044778', 'n13052670', 'n13054560', 'n13133613', 'n15075141']
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/caltech101.py
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Code adapted from https://github.com/pytorch/vision/blob/main/torchvision/datasets/caltech.py
|
| 3 |
+
Modification of caltech101 from torchvision where the background class is not removed
|
| 4 |
+
Thanks to the authors of torchvision
|
| 5 |
+
"""
|
| 6 |
+
import os
|
| 7 |
+
import os.path
|
| 8 |
+
from glob import glob
|
| 9 |
+
from typing import Any, Callable, List, Optional, Tuple, Union
|
| 10 |
+
|
| 11 |
+
from PIL import Image
|
| 12 |
+
from torchvision.datasets.utils import (download_and_extract_archive,
|
| 13 |
+
verify_str_arg)
|
| 14 |
+
from torchvision.datasets.vision import VisionDataset
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class Caltech101(VisionDataset):
|
| 18 |
+
"""`Caltech 101 <http://www.vision.caltech.edu/Image_Datasets/Caltech101/>`_ Dataset.
|
| 19 |
+
|
| 20 |
+
.. warning::
|
| 21 |
+
|
| 22 |
+
This class needs `scipy <https://docs.scipy.org/doc/>`_ to load target files from `.mat` format.
|
| 23 |
+
|
| 24 |
+
Args:
|
| 25 |
+
root (string): Root directory of dataset where directory
|
| 26 |
+
``caltech101`` exists or will be saved to if download is set to True.
|
| 27 |
+
target_type (string or list, optional): Type of target to use, ``category`` or
|
| 28 |
+
``annotation``. Can also be a list to output a tuple with all specified
|
| 29 |
+
target types. ``category`` represents the target class, and
|
| 30 |
+
``annotation`` is a list of points from a hand-generated outline.
|
| 31 |
+
Defaults to ``category``.
|
| 32 |
+
transform (callable, optional): A function/transform that takes in an PIL image
|
| 33 |
+
and returns a transformed version. E.g, ``transforms.RandomCrop``
|
| 34 |
+
target_transform (callable, optional): A function/transform that takes in the
|
| 35 |
+
target and transforms it.
|
| 36 |
+
download (bool, optional): If true, downloads the dataset from the internet and
|
| 37 |
+
puts it in root directory. If dataset is already downloaded, it is not
|
| 38 |
+
downloaded again.
|
| 39 |
+
"""
|
| 40 |
+
|
| 41 |
+
def __init__(
|
| 42 |
+
self,
|
| 43 |
+
root: str,
|
| 44 |
+
target_type: Union[List[str], str] = 'category',
|
| 45 |
+
transform: Optional[Callable] = None,
|
| 46 |
+
target_transform: Optional[Callable] = None,
|
| 47 |
+
download: bool = False,
|
| 48 |
+
) -> None:
|
| 49 |
+
super().__init__(os.path.join(root, 'caltech101'), transform=transform, target_transform=target_transform)
|
| 50 |
+
os.makedirs(self.root, exist_ok=True)
|
| 51 |
+
if isinstance(target_type, str):
|
| 52 |
+
target_type = [target_type]
|
| 53 |
+
self.target_type = [verify_str_arg(t, 'target_type', ('category', 'annotation')) for t in target_type]
|
| 54 |
+
|
| 55 |
+
if download:
|
| 56 |
+
self.download()
|
| 57 |
+
|
| 58 |
+
if not self._check_integrity():
|
| 59 |
+
raise RuntimeError('Dataset not found or corrupted. You can use download=True to download it')
|
| 60 |
+
|
| 61 |
+
self.categories = sorted(os.listdir(os.path.join(self.root, '101_ObjectCategories')))
|
| 62 |
+
# self.categories.remove("BACKGROUND_Google") # this is not a real class
|
| 63 |
+
|
| 64 |
+
# For some reason, the category names in "101_ObjectCategories" and
|
| 65 |
+
# "Annotations" do not always match. This is a manual map between the
|
| 66 |
+
# two. Defaults to using same name, since most names are fine.
|
| 67 |
+
name_map = {
|
| 68 |
+
'Faces': 'Faces_2',
|
| 69 |
+
'Faces_easy': 'Faces_3',
|
| 70 |
+
'Motorbikes': 'Motorbikes_16',
|
| 71 |
+
'airplanes': 'Airplanes_Side_2',
|
| 72 |
+
}
|
| 73 |
+
self.annotation_categories = list(map(lambda x: name_map[x] if x in name_map else x, self.categories))
|
| 74 |
+
|
| 75 |
+
self.index: List[int] = []
|
| 76 |
+
self.y = []
|
| 77 |
+
for (i, c) in enumerate(self.categories):
|
| 78 |
+
n = len(glob(os.path.join(self.root, '101_ObjectCategories', c, '*.jpg')))
|
| 79 |
+
self.index.extend(range(1, n + 1))
|
| 80 |
+
self.y.extend(n * [i])
|
| 81 |
+
|
| 82 |
+
def __getitem__(self, index: int) -> Tuple[Any, Any]:
|
| 83 |
+
"""
|
| 84 |
+
Args:
|
| 85 |
+
index (int): Index
|
| 86 |
+
|
| 87 |
+
Returns:
|
| 88 |
+
tuple: (image, target) where the type of target specified by target_type.
|
| 89 |
+
"""
|
| 90 |
+
import scipy.io
|
| 91 |
+
|
| 92 |
+
img = Image.open(
|
| 93 |
+
os.path.join(
|
| 94 |
+
self.root,
|
| 95 |
+
'101_ObjectCategories',
|
| 96 |
+
self.categories[self.y[index]],
|
| 97 |
+
f'image_{self.index[index]:04d}.jpg',
|
| 98 |
+
)
|
| 99 |
+
)
|
| 100 |
+
|
| 101 |
+
target: Any = []
|
| 102 |
+
for t in self.target_type:
|
| 103 |
+
if t == 'category':
|
| 104 |
+
target.append(self.y[index])
|
| 105 |
+
elif t == 'annotation':
|
| 106 |
+
data = scipy.io.loadmat(
|
| 107 |
+
os.path.join(
|
| 108 |
+
self.root,
|
| 109 |
+
'Annotations',
|
| 110 |
+
self.annotation_categories[self.y[index]],
|
| 111 |
+
f'annotation_{self.index[index]:04d}.mat',
|
| 112 |
+
)
|
| 113 |
+
)
|
| 114 |
+
target.append(data['obj_contour'])
|
| 115 |
+
target = tuple(target) if len(target) > 1 else target[0]
|
| 116 |
+
|
| 117 |
+
if self.transform is not None:
|
| 118 |
+
img = self.transform(img)
|
| 119 |
+
|
| 120 |
+
if self.target_transform is not None:
|
| 121 |
+
target = self.target_transform(target)
|
| 122 |
+
|
| 123 |
+
return img, target
|
| 124 |
+
|
| 125 |
+
def _check_integrity(self) -> bool:
|
| 126 |
+
# can be more robust and check hash of files
|
| 127 |
+
return os.path.exists(os.path.join(self.root, '101_ObjectCategories'))
|
| 128 |
+
|
| 129 |
+
def __len__(self) -> int:
|
| 130 |
+
return len(self.index)
|
| 131 |
+
|
| 132 |
+
def download(self) -> None:
|
| 133 |
+
if self._check_integrity():
|
| 134 |
+
print('Files already downloaded and verified')
|
| 135 |
+
return
|
| 136 |
+
|
| 137 |
+
download_and_extract_archive(
|
| 138 |
+
'https://drive.google.com/file/d/137RyRjvTBkBiIfeYBNZBtViDHQ6_Ewsp',
|
| 139 |
+
self.root,
|
| 140 |
+
filename='101_ObjectCategories.tar.gz',
|
| 141 |
+
md5='b224c7392d521a49829488ab0f1120d9',
|
| 142 |
+
)
|
| 143 |
+
download_and_extract_archive(
|
| 144 |
+
'https://drive.google.com/file/d/175kQy3UsZ0wUEHZjqkUDdNVssr7bgh_m',
|
| 145 |
+
self.root,
|
| 146 |
+
filename='Annotations.tar',
|
| 147 |
+
md5='6f83eeb1f24d99cab4eb377263132c91',
|
| 148 |
+
)
|
| 149 |
+
|
| 150 |
+
def extra_repr(self) -> str:
|
| 151 |
+
return 'Target type: {target_type}'.format(**self.__dict__)
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
class Caltech256(VisionDataset):
|
| 155 |
+
"""`Caltech 256 <http://www.vision.caltech.edu/Image_Datasets/Caltech256/>`_ Dataset.
|
| 156 |
+
|
| 157 |
+
Args:
|
| 158 |
+
root (string): Root directory of dataset where directory
|
| 159 |
+
``caltech256`` exists or will be saved to if download is set to True.
|
| 160 |
+
transform (callable, optional): A function/transform that takes in an PIL image
|
| 161 |
+
and returns a transformed version. E.g, ``transforms.RandomCrop``
|
| 162 |
+
target_transform (callable, optional): A function/transform that takes in the
|
| 163 |
+
target and transforms it.
|
| 164 |
+
download (bool, optional): If true, downloads the dataset from the internet and
|
| 165 |
+
puts it in root directory. If dataset is already downloaded, it is not
|
| 166 |
+
downloaded again.
|
| 167 |
+
"""
|
| 168 |
+
|
| 169 |
+
def __init__(
|
| 170 |
+
self,
|
| 171 |
+
root: str,
|
| 172 |
+
transform: Optional[Callable] = None,
|
| 173 |
+
target_transform: Optional[Callable] = None,
|
| 174 |
+
download: bool = False,
|
| 175 |
+
) -> None:
|
| 176 |
+
super().__init__(os.path.join(root, 'caltech256'), transform=transform, target_transform=target_transform)
|
| 177 |
+
os.makedirs(self.root, exist_ok=True)
|
| 178 |
+
|
| 179 |
+
if download:
|
| 180 |
+
self.download()
|
| 181 |
+
|
| 182 |
+
if not self._check_integrity():
|
| 183 |
+
raise RuntimeError('Dataset not found or corrupted. You can use download=True to download it')
|
| 184 |
+
|
| 185 |
+
self.categories = sorted(os.listdir(os.path.join(self.root, '256_ObjectCategories')))
|
| 186 |
+
self.index: List[int] = []
|
| 187 |
+
self.y = []
|
| 188 |
+
for (i, c) in enumerate(self.categories):
|
| 189 |
+
n = len(
|
| 190 |
+
[
|
| 191 |
+
item
|
| 192 |
+
for item in os.listdir(os.path.join(self.root, '256_ObjectCategories', c))
|
| 193 |
+
if item.endswith('.jpg')
|
| 194 |
+
]
|
| 195 |
+
)
|
| 196 |
+
self.index.extend(range(1, n + 1))
|
| 197 |
+
self.y.extend(n * [i])
|
| 198 |
+
|
| 199 |
+
def __getitem__(self, index: int) -> Tuple[Any, Any]:
|
| 200 |
+
"""
|
| 201 |
+
Args:
|
| 202 |
+
index (int): Index
|
| 203 |
+
|
| 204 |
+
Returns:
|
| 205 |
+
tuple: (image, target) where target is index of the target class.
|
| 206 |
+
"""
|
| 207 |
+
img = Image.open(
|
| 208 |
+
os.path.join(
|
| 209 |
+
self.root,
|
| 210 |
+
'256_ObjectCategories',
|
| 211 |
+
self.categories[self.y[index]],
|
| 212 |
+
f'{self.y[index] + 1:03d}_{self.index[index]:04d}.jpg',
|
| 213 |
+
)
|
| 214 |
+
)
|
| 215 |
+
|
| 216 |
+
target = self.y[index]
|
| 217 |
+
|
| 218 |
+
if self.transform is not None:
|
| 219 |
+
img = self.transform(img)
|
| 220 |
+
|
| 221 |
+
if self.target_transform is not None:
|
| 222 |
+
target = self.target_transform(target)
|
| 223 |
+
|
| 224 |
+
return img, target
|
| 225 |
+
|
| 226 |
+
def _check_integrity(self) -> bool:
|
| 227 |
+
# can be more robust and check hash of files
|
| 228 |
+
return os.path.exists(os.path.join(self.root, '256_ObjectCategories'))
|
| 229 |
+
|
| 230 |
+
def __len__(self) -> int:
|
| 231 |
+
return len(self.index)
|
| 232 |
+
|
| 233 |
+
def download(self) -> None:
|
| 234 |
+
if self._check_integrity():
|
| 235 |
+
print('Files already downloaded and verified')
|
| 236 |
+
return
|
| 237 |
+
|
| 238 |
+
download_and_extract_archive(
|
| 239 |
+
'https://drive.google.com/file/d/1r6o0pSROcV1_VwT4oSjA2FBUSCWGuxLK',
|
| 240 |
+
self.root,
|
| 241 |
+
filename='256_ObjectCategories.tar',
|
| 242 |
+
md5='67b4f42ca05d46448c6bb8ecd2220f6d',
|
| 243 |
+
)
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/cn_classnames.json
ADDED
|
@@ -0,0 +1,1004 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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23 |
+
"\u6cb3\u9e1f",
|
| 24 |
+
"\u9e22\uff08\u731b\u79bd\uff09",
|
| 25 |
+
"\u79c3\u5934\u9e70",
|
| 26 |
+
"\u79c3\u9e6b",
|
| 27 |
+
"\u5927\u7070\u732b\u5934\u9e70",
|
| 28 |
+
"\u6b27\u6d32\u706b\u877e\u8788",
|
| 29 |
+
"\u666e\u901a\u877e\u8788",
|
| 30 |
+
"\u6c34\u8725",
|
| 31 |
+
"\u6591\u70b9\u877e\u8788",
|
| 32 |
+
"\u877e\u8788",
|
| 33 |
+
"\u725b\u86d9",
|
| 34 |
+
"\u6811\u86d9",
|
| 35 |
+
"\u5c3e\u86d9",
|
| 36 |
+
"\u7ea2\u6d77\u9f9f",
|
| 37 |
+
"\u76ae\u9769\u9f9f",
|
| 38 |
+
"\u6ce5\u9f9f",
|
| 39 |
+
"\u6de1\u6c34\u9f9f",
|
| 40 |
+
"\u7bb1\u9f9f",
|
| 41 |
+
"\u5e26\u72b6\u58c1\u864e",
|
| 42 |
+
"\u666e\u901a\u9b23\u8725",
|
| 43 |
+
"\u7f8e\u56fd\u53d8\u8272\u9f99",
|
| 44 |
+
"\u97ad\u5c3e\u8725\u8734",
|
| 45 |
+
"\u98de\u9f99\u79d1\u8725\u8734",
|
| 46 |
+
"\u8936\u8fb9\u8725\u8734",
|
| 47 |
+
"\u9cc4\u9c7c\u8725\u8734",
|
| 48 |
+
"\u6bd2\u8725",
|
| 49 |
+
"\u7eff\u8725\u8734",
|
| 50 |
+
"\u975e\u6d32\u53d8\u8272\u9f99",
|
| 51 |
+
"\u79d1\u83ab\u591a\u8725\u8734",
|
| 52 |
+
"\u975e\u6d32\u9cc4",
|
| 53 |
+
"\u7f8e\u56fd\u9cc4\u9c7c",
|
| 54 |
+
"\u4e09\u89d2\u9f99",
|
| 55 |
+
"\u96f7\u86c7",
|
| 56 |
+
"\u73af\u86c7",
|
| 57 |
+
"\u5e0c\u814a\u86c7",
|
| 58 |
+
"\u7eff\u86c7",
|
| 59 |
+
"\u56fd\u738b\u86c7",
|
| 60 |
+
"\u889c\u5e26\u86c7",
|
| 61 |
+
"\u6c34\u86c7",
|
| 62 |
+
"\u85e4\u86c7",
|
| 63 |
+
"\u591c\u86c7",
|
| 64 |
+
"\u5927\u87d2\u86c7",
|
| 65 |
+
"\u5ca9\u77f3\u87d2\u86c7",
|
| 66 |
+
"\u5370\u5ea6\u773c\u955c\u86c7",
|
| 67 |
+
"\u7eff\u66fc\u5df4",
|
| 68 |
+
"\u6d77\u86c7",
|
| 69 |
+
"\u89d2\u8179\u86c7",
|
| 70 |
+
"\u83f1\u7eb9\u54cd\u5c3e\u86c7",
|
| 71 |
+
"\u89d2\u54cd\u5c3e\u86c7",
|
| 72 |
+
"\u4e09\u53f6\u866b",
|
| 73 |
+
"\u76f2\u8718\u86db",
|
| 74 |
+
"\u874e\u5b50",
|
| 75 |
+
"\u9ed1\u91d1\u82b1\u56ed\u8718\u86db",
|
| 76 |
+
"\u8c37\u4ed3\u8718\u86db",
|
| 77 |
+
"\u82b1\u56ed\u8718\u86db",
|
| 78 |
+
"\u9ed1\u5be1\u5987\u8718\u86db",
|
| 79 |
+
"\u72fc\u86db",
|
| 80 |
+
"\u72fc\u8718\u86db",
|
| 81 |
+
"\u58c1\u8671",
|
| 82 |
+
"\u8708\u86a3",
|
| 83 |
+
"\u9ed1\u677e\u9e21",
|
| 84 |
+
"\u677e\u9e21",
|
| 85 |
+
"\u62ab\u80a9\u9e21",
|
| 86 |
+
"\u8349\u539f\u9e21",
|
| 87 |
+
"\u5b54\u96c0",
|
| 88 |
+
"\u9e4c\u9e51",
|
| 89 |
+
"\u9e67\u9e2a",
|
| 90 |
+
"\u975e\u6d32\u7070\u9e66\u9e49",
|
| 91 |
+
"\u91d1\u521a\u9e66\u9e49",
|
| 92 |
+
"\u786b\u51a0\u9e66\u9e49",
|
| 93 |
+
"\u77ed\u5c3e\u9e66\u9e49",
|
| 94 |
+
"\u8910\u7fc5\u9e26\u9e43",
|
| 95 |
+
"\u98df\u8702\u9e1f\uff1b\u8702\u864e",
|
| 96 |
+
"\u7280\u9e1f",
|
| 97 |
+
"\u8702\u9e1f",
|
| 98 |
+
"\u9e5f\u4d15",
|
| 99 |
+
"\u5de8\u5634\u9e1f\uff1b\u5927\u5634\u9e1f",
|
| 100 |
+
"\u91ce\u9e2d",
|
| 101 |
+
"\u7ea2\u80f8\u79cb\u6c99\u9e2d",
|
| 102 |
+
"\u9e45",
|
| 103 |
+
"\u9ed1\u5929\u9e45",
|
| 104 |
+
"\u5927\u8c61",
|
| 105 |
+
"\u9488\u9f39\u9f20",
|
| 106 |
+
"\u9e2d\u5634\u517d",
|
| 107 |
+
"\u6c99\u888b\u9f20",
|
| 108 |
+
"\u8003\u62c9",
|
| 109 |
+
"\u888b\u718a",
|
| 110 |
+
"\u6c34\u6bcd",
|
| 111 |
+
"\u6d77\u8475",
|
| 112 |
+
"\u8111\u73ca\u745a",
|
| 113 |
+
"\u6241\u5f62\u866b\u6241\u866b",
|
| 114 |
+
"\u7ebf\u866b",
|
| 115 |
+
"\u6d77\u87ba",
|
| 116 |
+
"\u8717\u725b",
|
| 117 |
+
"\u9f3b\u6d95\u866b",
|
| 118 |
+
"\u6d77\u86de\u8753\uff1b\u6d77\u53c2",
|
| 119 |
+
"\u77f3\u9cd6",
|
| 120 |
+
"\u9e66\u9e49\u87ba",
|
| 121 |
+
"\u73cd\u5b9d\u87f9",
|
| 122 |
+
"\u77f3\u87f9",
|
| 123 |
+
"\u62db\u6f6e\u87f9",
|
| 124 |
+
"\u5e1d\u738b\u87f9",
|
| 125 |
+
"\u7f8e\u56fd\u9f99\u867e",
|
| 126 |
+
"\u5927\u87af\u867e",
|
| 127 |
+
"\u5c0f\u9f99\u867e",
|
| 128 |
+
"\u5bc4\u5c45\u87f9",
|
| 129 |
+
"\u7b49\u8db3\u76ee\u52a8\u7269\uff08\u660e\u867e\u548c\u8783\u87f9\u8fd1\u4eb2\uff09",
|
| 130 |
+
"\u767d\u9e73",
|
| 131 |
+
"\u9ed1\u9e73",
|
| 132 |
+
"\u9e6d",
|
| 133 |
+
"\u706b\u70c8\u9e1f",
|
| 134 |
+
"\u5c0f\u84dd\u9e6d",
|
| 135 |
+
"\u7f8e\u56fd\u9e6d",
|
| 136 |
+
"\u9ebb\u9e26",
|
| 137 |
+
"\u9e64",
|
| 138 |
+
"\u79e7\u9e64",
|
| 139 |
+
"\u6b27\u6d32\u6c34\u9e21",
|
| 140 |
+
"\u6cbc\u6cfd\u6ce5\u6bcd\u9e21",
|
| 141 |
+
"\u9e28",
|
| 142 |
+
"\u7ea2\u7ffb\u77f3\u9e6c",
|
| 143 |
+
"\u7ea2\u80cc\u9e6c",
|
| 144 |
+
"\u7ea2\u811a\u9e6c",
|
| 145 |
+
"\u534a\u8e7c\u9e6c",
|
| 146 |
+
"\u86ce\u9e6c",
|
| 147 |
+
"\u9e48\u9e55",
|
| 148 |
+
"\u56fd\u738b\u4f01\u9e45",
|
| 149 |
+
"\u4fe1\u5929\u7fc1",
|
| 150 |
+
"\u7070\u9cb8",
|
| 151 |
+
"\u6740\u4eba\u9cb8",
|
| 152 |
+
"\u6d77\u725b",
|
| 153 |
+
"\u6d77\u72ee",
|
| 154 |
+
"\u5409\u5a03\u5a03",
|
| 155 |
+
"\u65e5\u672c\u72c6\u72ac",
|
| 156 |
+
"\u9a6c\u5c14\u6d4e\u65af\u72ac",
|
| 157 |
+
"\u72ee\u5b50\u72d7",
|
| 158 |
+
"\u897f\u65bd\u72ac",
|
| 159 |
+
"\u5e03\u83b1\u5c3c\u59c6\u730e\u72ac",
|
| 160 |
+
"\u5df4\u6bd4\u72d7",
|
| 161 |
+
"\u73a9\u5177\u72ac",
|
| 162 |
+
"\u7f57\u5f97\u897f\u4e9a\u957f\u80cc\u730e\u72d7",
|
| 163 |
+
"\u963f\u5bcc\u6c57\u730e\u72ac",
|
| 164 |
+
"\u5df4\u5409\u5ea6\u730e\u72ac",
|
| 165 |
+
"\u6bd4\u683c\u72ac",
|
| 166 |
+
"\u4fa6\u63a2\u72ac",
|
| 167 |
+
"\u84dd\u8272\u5feb\u72d7",
|
| 168 |
+
"\u9ed1\u8910\u730e\u6d63\u718a\u72ac",
|
| 169 |
+
"\u6c83\u514b\u730e\u72ac",
|
| 170 |
+
"\u82f1\u56fd\u730e\u72d0\u72ac",
|
| 171 |
+
"\u7f8e\u6d32\u8d64\u72d7",
|
| 172 |
+
"\u4fc4\u7f57\u65af\u730e\u72fc\u72ac",
|
| 173 |
+
"\u7231\u5c14\u5170\u730e\u72fc\u72ac",
|
| 174 |
+
"\u610f\u5927\u5229\u7070\u72d7",
|
| 175 |
+
"\u60e0\u6bd4\u7279\u72ac",
|
| 176 |
+
"\u4f9d\u6bd4\u6c99\u730e\u72ac",
|
| 177 |
+
"\u632a\u5a01\u730e\u72ac",
|
| 178 |
+
"\u5965\u8fbe\u730e\u72ac",
|
| 179 |
+
"\u6c99\u514b\u72ac",
|
| 180 |
+
"\u82cf\u683c\u5170\u730e\u9e7f\u72ac",
|
| 181 |
+
"\u5a01\u739b\u730e\u72ac",
|
| 182 |
+
"\u65af\u5854\u798f\u5fb7\u90e1\u6597\u725b\u72ac",
|
| 183 |
+
"\u7f8e\u56fd\u65af\u5854\u798f\u5fb7\u90e1\u6897",
|
| 184 |
+
"\u8d1d\u5fb7\u7075\u987f\u6897",
|
| 185 |
+
"\u8fb9\u5883\u6897",
|
| 186 |
+
"\u51ef\u4e3d\u84dd\u6897",
|
| 187 |
+
"\u7231\u5c14\u5170\u6897",
|
| 188 |
+
"\u8bfa\u798f\u514b\u6897",
|
| 189 |
+
"\u8bfa\u7ef4\u5947\u6897",
|
| 190 |
+
"\u7ea6\u514b\u72ac\uff1b\u7ea6\u514b\u590f\u6897\u72ac",
|
| 191 |
+
"\u521a\u6bdb\u730e\u72d0\u6897",
|
| 192 |
+
"\u83b1\u514b\u5170\u6897",
|
| 193 |
+
"\u9521\u5229\u54c8\u59c6\u6897",
|
| 194 |
+
"\u827e\u5c14\u8c37\u72ac",
|
| 195 |
+
"\u51ef\u6069\u6897",
|
| 196 |
+
"\u6fb3\u5927\u5229\u4e9a\u6897",
|
| 197 |
+
"\u4e39\u8fea\u4e01\u8499\u6897",
|
| 198 |
+
"\u6ce2\u58eb\u987f\u6897",
|
| 199 |
+
"\u8ff7\u4f60\u96ea\u7eb3\u745e\u72ac",
|
| 200 |
+
"\u5de8\u578b\u96ea\u7eb3\u745e\u72ac",
|
| 201 |
+
"\u6807\u51c6\u96ea\u7eb3\u745e\u72ac",
|
| 202 |
+
"\u82cf\u683c\u5170\u6897\u72ac",
|
| 203 |
+
"\u897f\u85cf\u6897",
|
| 204 |
+
"\u4e1d\u6bdb\u6897",
|
| 205 |
+
"\u7231\u5c14\u5170\u8f6f\u6bdb\u6897\u72ac",
|
| 206 |
+
"\u897f\u9ad8\u5730\u767d\u6897",
|
| 207 |
+
"\u62c9\u8428\u963f\u666e\u7d22\u72ac",
|
| 208 |
+
"\u5e73\u6bdb\u5bfb\u56de\u72ac",
|
| 209 |
+
"\u5377\u6bdb\u5bfb\u56de\u72ac",
|
| 210 |
+
"\u91d1\u6bdb\u730e\u72ac",
|
| 211 |
+
"\u62c9\u5e03\u62c9\u591a\u730e\u72ac",
|
| 212 |
+
"\u4e5e\u6c99\u6bd4\u514b\u730e\u72ac",
|
| 213 |
+
"\u5fb7\u56fd\u77ed\u6bdb\u6307\u793a\u72ac",
|
| 214 |
+
"\u7ef4\u5179\u62c9\u72ac",
|
| 215 |
+
"\u82f1\u56fd\u585e\u7279\u72ac",
|
| 216 |
+
"\u7231\u5c14\u5170\u96ea\u8fbe\u72ac",
|
| 217 |
+
"\u6208\u767b\u96ea\u8fbe\u72ac",
|
| 218 |
+
"\u5e03\u5217\u5854\u5c3c\u72ac\u730e\u72ac",
|
| 219 |
+
"\u9ec4\u6bdb",
|
| 220 |
+
"\u82f1\u56fd\u53f2\u5bbe\u683c\u72ac",
|
| 221 |
+
"\u5a01\u5c14\u58eb\u53f2\u5bbe\u683c\u72ac",
|
| 222 |
+
"\u53ef\u5361\u72ac",
|
| 223 |
+
"\u8428\u585e\u514b\u65af\u730e\u72ac",
|
| 224 |
+
"\u7231\u5c14\u5170\u6c34\u730e\u72ac",
|
| 225 |
+
"\u54e5\u5a01\u65af\u72ac",
|
| 226 |
+
"\u8212\u67cf\u5947\u72ac",
|
| 227 |
+
"\u6bd4\u5229\u65f6\u7267\u7f8a\u72ac",
|
| 228 |
+
"\u9a6c\u91cc\u52aa\u963f\u72ac",
|
| 229 |
+
"\u4f2f\u745e\u72ac",
|
| 230 |
+
"\u51ef\u5c14\u76ae\u72ac",
|
| 231 |
+
"\u5308\u7259\u5229\u7267\u7f8a\u72ac",
|
| 232 |
+
"\u8001\u82f1\u56fd\u7267\u7f8a\u72ac",
|
| 233 |
+
"\u559c\u4e50\u8482\u7267\u7f8a\u72ac",
|
| 234 |
+
"\u7267\u7f8a\u72ac",
|
| 235 |
+
"\u8fb9\u5883\u7267\u7f8a\u72ac",
|
| 236 |
+
"\u6cd5\u5170\u5fb7\u65af\u7267\u725b\u72d7",
|
| 237 |
+
"\u7f57\u7279\u97e6\u5c14\u72ac",
|
| 238 |
+
"\u5fb7\u56fd\u7267\u7f8a\u72ac",
|
| 239 |
+
"\u591a\u4f2f\u66fc\u72ac",
|
| 240 |
+
"\u9e7f\u72ac\uff1b\u8ff7\u4f60\u675c\u5bbe\u72ac",
|
| 241 |
+
"\u5927\u745e\u58eb\u5c71\u5730\u72ac",
|
| 242 |
+
"\u4f2f\u6069\u5c71\u72ac",
|
| 243 |
+
"\u963f\u7b56\u5c14\u5c71\u72ac",
|
| 244 |
+
"\u6069\u7279\u5c14\u5e03\u8d6b\u5c71\u72ac",
|
| 245 |
+
"\u62f3\u5e08\u72d7",
|
| 246 |
+
"\u6597\u725b\u7352",
|
| 247 |
+
"\u85cf\u7352",
|
| 248 |
+
"\u6cd5\u56fd\u6597\u725b\u72ac",
|
| 249 |
+
"\u5927\u4e39\u72ac",
|
| 250 |
+
"\u5723\u4f2f\u7eb3\u5fb7\u72d7",
|
| 251 |
+
"\u7231\u65af\u57fa\u6469\u72ac",
|
| 252 |
+
"\u963f\u62c9\u65af\u52a0\u96ea\u6a47\u72ac",
|
| 253 |
+
"\u54c8\u58eb\u5947",
|
| 254 |
+
"\u8fbe\u5c14\u9a6c\u63d0\u4e9a",
|
| 255 |
+
"\u72ee\u6bdb\u72d7",
|
| 256 |
+
"\u5df4\u8f9b\u5409\u72d7",
|
| 257 |
+
"\u516b\u54e5\u72ac",
|
| 258 |
+
"\u83b1\u6602\u8d1d\u683c\u72d7",
|
| 259 |
+
"\u7ebd\u82ac\u5170\u72ac",
|
| 260 |
+
"\u5927\u767d\u718a\u72ac",
|
| 261 |
+
"\u8428\u6469\u8036\u72ac",
|
| 262 |
+
"\u535a\u7f8e\u72ac",
|
| 263 |
+
"\u677e\u72ee",
|
| 264 |
+
"\u51ef\u65af\u72ac",
|
| 265 |
+
"\u5e03\u9c81\u585e\u5c14\u683c\u6797\u82ac\u72ac",
|
| 266 |
+
"\u5f6d\u5e03\u6d1b\u514b\u5a01\u5c14\u58eb\u79d1\u57fa\u72ac",
|
| 267 |
+
"\u5a01\u5c14\u58eb\u67ef\u57fa\u72ac",
|
| 268 |
+
"\u73a9\u5177\u8d35\u5bbe\u72ac",
|
| 269 |
+
"\u8ff7\u4f60\u8d35\u5bbe\u72ac",
|
| 270 |
+
"\u6807\u51c6\u8d35\u5bbe\u72ac",
|
| 271 |
+
"\u58a8\u897f\u54e5\u65e0\u6bdb\u72ac",
|
| 272 |
+
"\u7070\u72fc",
|
| 273 |
+
"\u767d\u72fc",
|
| 274 |
+
"\u7ea2\u592a\u72fc",
|
| 275 |
+
"\u72fc",
|
| 276 |
+
"\u6fb3\u6d32\u91ce\u72d7",
|
| 277 |
+
"\u8c7a",
|
| 278 |
+
"\u975e\u6d32\u730e\u72ac",
|
| 279 |
+
"\u9b23\u72d7",
|
| 280 |
+
"\u7ea2\u72d0\u72f8",
|
| 281 |
+
"\u6c99\u72d0",
|
| 282 |
+
"\u5317\u6781\u72d0\u72f8",
|
| 283 |
+
"\u7070\u72d0\u72f8",
|
| 284 |
+
"\u864e\u6591\u732b",
|
| 285 |
+
"\u5c71\u732b",
|
| 286 |
+
"\u6ce2\u65af\u732b",
|
| 287 |
+
"\u66b9\u7f57\u732b",
|
| 288 |
+
"\u57c3\u53ca\u732b",
|
| 289 |
+
"\u7f8e\u6d32\u72ee",
|
| 290 |
+
"\u731e\u7301",
|
| 291 |
+
"\u8c79\u5b50",
|
| 292 |
+
"\u96ea\u8c79",
|
| 293 |
+
"\u7f8e\u6d32\u864e",
|
| 294 |
+
"\u72ee\u5b50",
|
| 295 |
+
"\u8001\u864e",
|
| 296 |
+
"\u730e\u8c79",
|
| 297 |
+
"\u68d5\u718a",
|
| 298 |
+
"\u7f8e\u6d32\u9ed1\u718a",
|
| 299 |
+
"\u51b0\u718a",
|
| 300 |
+
"\u61d2\u718a",
|
| 301 |
+
"\u7374",
|
| 302 |
+
"\u732b\u9f2c",
|
| 303 |
+
"\u864e\u7532\u866b",
|
| 304 |
+
"\u74e2\u866b",
|
| 305 |
+
"\u571f\u9cd6\u866b",
|
| 306 |
+
"\u5929\u725b",
|
| 307 |
+
"\u9f9f\u7532\u866b",
|
| 308 |
+
"\u7caa\u7532\u866b",
|
| 309 |
+
"\u7280\u725b\u7532\u866b",
|
| 310 |
+
"\u8c61\u7532",
|
| 311 |
+
"\u82cd\u8747",
|
| 312 |
+
"\u871c\u8702",
|
| 313 |
+
"\u8682\u8681",
|
| 314 |
+
"\u86b1\u8722",
|
| 315 |
+
"\u87cb\u87c0",
|
| 316 |
+
"\u7af9\u8282\u866b",
|
| 317 |
+
"\u87d1\u8782",
|
| 318 |
+
"\u87b3\u8782",
|
| 319 |
+
"\u8749",
|
| 320 |
+
"\u53f6\u8749",
|
| 321 |
+
"\u8349\u873b\u86c9",
|
| 322 |
+
"\u873b\u8713",
|
| 323 |
+
"\u8c46\u5a18",
|
| 324 |
+
"\u4f18\u7ea2\u86f1\u8776",
|
| 325 |
+
"\u5c0f\u73af\u8774\u8776",
|
| 326 |
+
"\u541b\u4e3b\u8774\u8776",
|
| 327 |
+
"\u83dc\u7c89\u8776",
|
| 328 |
+
"\u767d\u8774\u8776",
|
| 329 |
+
"\u7070\u8776",
|
| 330 |
+
"\u6d77\u661f",
|
| 331 |
+
"\u6d77\u80c6",
|
| 332 |
+
"\u6d77\u9ec4\u74dc\uff1b\u6d77\u53c2",
|
| 333 |
+
"\u91ce\u5154",
|
| 334 |
+
"\u5154",
|
| 335 |
+
"\u5b89\u54e5\u62c9\u5154",
|
| 336 |
+
"\u4ed3\u9f20",
|
| 337 |
+
"\u523a\u732c",
|
| 338 |
+
"\u9ed1\u677e\u9f20",
|
| 339 |
+
"\u571f\u62e8\u9f20",
|
| 340 |
+
"\u6d77\u72f8",
|
| 341 |
+
"\u8c5a\u9f20",
|
| 342 |
+
"\u6817\u8272\u9a6c",
|
| 343 |
+
"\u6591\u9a6c",
|
| 344 |
+
"\u732a",
|
| 345 |
+
"\u91ce\u732a",
|
| 346 |
+
"\u75a3\u732a",
|
| 347 |
+
"\u6cb3\u9a6c",
|
| 348 |
+
"\u725b",
|
| 349 |
+
"\u6c34\u725b",
|
| 350 |
+
"\u91ce\u725b",
|
| 351 |
+
"\u516c\u7f8a",
|
| 352 |
+
"\u5927\u89d2\u7f8a",
|
| 353 |
+
"\u5c71\u7f8a",
|
| 354 |
+
"\u72f7\u7f9a",
|
| 355 |
+
"\u9ed1\u6591\u7f9a",
|
| 356 |
+
"\u77aa\u7f9a",
|
| 357 |
+
"\u963f\u62c9\u4f2f\u5355\u5cf0\u9a86\u9a7c",
|
| 358 |
+
"\u9a86\u9a7c",
|
| 359 |
+
"\u9ec4\u9f20\u72fc",
|
| 360 |
+
"\u6c34\u8c82",
|
| 361 |
+
"\u81ed\u732b",
|
| 362 |
+
"\u9ed1\u8db3\u9f2c",
|
| 363 |
+
"\u6c34\u736d",
|
| 364 |
+
"\u81ed\u9f2c",
|
| 365 |
+
"\u737e",
|
| 366 |
+
"\u72b0\u72f3",
|
| 367 |
+
"\u6811\u61d2",
|
| 368 |
+
"\u7329\u7329",
|
| 369 |
+
"\u5927\u7329\u7329",
|
| 370 |
+
"\u9ed1\u7329\u7329",
|
| 371 |
+
"\u957f\u81c2\u733f",
|
| 372 |
+
"\u5408\u8dbe\u733f\u957f\u81c2\u733f",
|
| 373 |
+
"\u957f\u5c3e\u7334",
|
| 374 |
+
"\u8d64\u7334",
|
| 375 |
+
"\u72d2\u72d2",
|
| 376 |
+
"\u6052\u6cb3\u7334",
|
| 377 |
+
"\u767d\u5934\u53f6\u7334",
|
| 378 |
+
"\u75a3\u7334",
|
| 379 |
+
"\u957f\u9f3b\u7334",
|
| 380 |
+
"\u72e8\uff08\u7f8e\u6d32\u4ea7\u5c0f\u578b\u957f\u5c3e\u7334\uff09",
|
| 381 |
+
"\u5377\u5c3e\u7334",
|
| 382 |
+
"\u543c\u7334",
|
| 383 |
+
"\u4f36\u7334",
|
| 384 |
+
"\u8718\u86db\u7334",
|
| 385 |
+
"\u677e\u9f20\u7334",
|
| 386 |
+
"\u9a6c\u8fbe\u52a0\u65af\u52a0\u73af\u5c3e\u72d0\u7334",
|
| 387 |
+
"\u5927\u72d0\u7334",
|
| 388 |
+
"\u5370\u5ea6\u5927\u8c61",
|
| 389 |
+
"\u975e\u6d32\u8c61",
|
| 390 |
+
"\u5c0f\u718a\u732b",
|
| 391 |
+
"\u5927\u718a\u732b",
|
| 392 |
+
"\u6756\u9c7c",
|
| 393 |
+
"\u9cd7\u9c7c",
|
| 394 |
+
"\u94f6\u9c91",
|
| 395 |
+
"\u4e09\u8272\u523a\u8776\u9c7c",
|
| 396 |
+
"\u6d77\u8475\u9c7c",
|
| 397 |
+
"\u9c9f\u9c7c",
|
| 398 |
+
"\u96c0\u9cdd",
|
| 399 |
+
"\u72ee\u5b50\u9c7c",
|
| 400 |
+
"\u6cb3\u8c5a",
|
| 401 |
+
"\u7b97\u76d8",
|
| 402 |
+
"\u957f\u888d",
|
| 403 |
+
"\u5b66\u4f4d\u888d",
|
| 404 |
+
"\u624b\u98ce\u7434",
|
| 405 |
+
"\u539f\u58f0\u5409\u4ed6",
|
| 406 |
+
"\u822a\u7a7a\u6bcd\u8230",
|
| 407 |
+
"\u5ba2\u673a",
|
| 408 |
+
"\u98de\u8247",
|
| 409 |
+
"\u796d\u575b",
|
| 410 |
+
"\u6551\u62a4\u8f66",
|
| 411 |
+
"\u6c34\u9646\u4e24\u7528\u8f66",
|
| 412 |
+
"\u6a21\u62df\u65f6\u949f",
|
| 413 |
+
"\u8702\u623f",
|
| 414 |
+
"\u56f4\u88d9",
|
| 415 |
+
"\u5783\u573e\u6876",
|
| 416 |
+
"\u653b\u51fb\u6b65\u67aa",
|
| 417 |
+
"\u80cc\u5305",
|
| 418 |
+
"\u9762\u5305\u5e97",
|
| 419 |
+
"\u5e73\u8861\u6728",
|
| 420 |
+
"\u70ed\u6c14\u7403",
|
| 421 |
+
"\u5706\u73e0\u7b14",
|
| 422 |
+
"\u521b\u53ef\u8d34",
|
| 423 |
+
"\u73ed\u5353\u7434",
|
| 424 |
+
"\u680f\u6746",
|
| 425 |
+
"\u6760\u94c3",
|
| 426 |
+
"\u7406\u53d1\u5e08\u7684\u6905\u5b50",
|
| 427 |
+
"\u7406\u53d1\u5e97",
|
| 428 |
+
"\u7272\u53e3\u68da",
|
| 429 |
+
"\u6674\u96e8\u8868",
|
| 430 |
+
"\u5706\u7b52",
|
| 431 |
+
"\u56ed\u5730\u5c0f\u8f66",
|
| 432 |
+
"\u68d2\u7403",
|
| 433 |
+
"\u7bee\u7403",
|
| 434 |
+
"\u5a74\u513f\u5e8a",
|
| 435 |
+
"\u5df4\u677e\u7ba1",
|
| 436 |
+
"\u6e38\u6cf3\u5e3d",
|
| 437 |
+
"\u6c90\u6d74\u6bdb\u5dfe",
|
| 438 |
+
"\u6d74\u7f38",
|
| 439 |
+
"\u6c99\u6ee9\u8f66",
|
| 440 |
+
"\u706f\u5854",
|
| 441 |
+
"\u70e7\u676f",
|
| 442 |
+
"\u718a\u76ae\u9ad8\u5e3d",
|
| 443 |
+
"\u5564\u9152\u74f6",
|
| 444 |
+
"\u5564\u9152\u676f",
|
| 445 |
+
"\u949f\u5854",
|
| 446 |
+
"\uff08\u5c0f\u513f\u7528\u7684\uff09\u56f4\u5634",
|
| 447 |
+
"\u4e32\u8054\u81ea\u884c\u8f66",
|
| 448 |
+
"\u6bd4\u57fa\u5c3c",
|
| 449 |
+
"\u88c5\u8ba2\u518c",
|
| 450 |
+
"\u53cc\u7b52\u671b\u8fdc\u955c",
|
| 451 |
+
"\u9e1f\u820d",
|
| 452 |
+
"\u8239\u5e93",
|
| 453 |
+
"\u53cc\u4eba\u96ea\u6a47",
|
| 454 |
+
"\u9970\u6263\u5f0f\u9886\u5e26",
|
| 455 |
+
"\u9614\u8fb9\u5973\u5e3d",
|
| 456 |
+
"\u4e66\u6a71",
|
| 457 |
+
"\u4e66\u5e97",
|
| 458 |
+
"\u74f6\u76d6",
|
| 459 |
+
"\u5f13\u7bad",
|
| 460 |
+
"\u8774\u8776\u7ed3\u9886\u7ed3",
|
| 461 |
+
"\u94dc\u5236\u724c\u4f4d",
|
| 462 |
+
"\u5976\u7f69",
|
| 463 |
+
"\u9632\u6ce2\u5824",
|
| 464 |
+
"\u94e0\u7532",
|
| 465 |
+
"\u626b\u5e1a",
|
| 466 |
+
"\u6876",
|
| 467 |
+
"\u6263\u73af",
|
| 468 |
+
"\u9632\u5f39\u80cc\u5fc3",
|
| 469 |
+
"\u52a8\u8f66",
|
| 470 |
+
"\u8089\u94fa",
|
| 471 |
+
"\u51fa\u79df\u8f66",
|
| 472 |
+
"\u5927\u9505",
|
| 473 |
+
"\u8721\u70db",
|
| 474 |
+
"\u5927\u70ae",
|
| 475 |
+
"\u72ec\u6728\u821f",
|
| 476 |
+
"\u5f00\u74f6\u5668",
|
| 477 |
+
"\u5f00\u886b",
|
| 478 |
+
"\u8f66\u955c",
|
| 479 |
+
"\u65cb\u8f6c\u6728\u9a6c",
|
| 480 |
+
"\u6728\u5320\u7684\u5de5\u5177\u5305",
|
| 481 |
+
"\u7eb8\u7bb1",
|
| 482 |
+
"\u8f66\u8f6e",
|
| 483 |
+
"\u53d6\u6b3e\u673a",
|
| 484 |
+
"\u76d2\u5f0f\u5f55\u97f3\u5e26",
|
| 485 |
+
"\u5361\u5e26\u64ad\u653e\u5668",
|
| 486 |
+
"\u57ce\u5821",
|
| 487 |
+
"\u53cc\u4f53\u8239",
|
| 488 |
+
"CD\u64ad\u653e\u5668",
|
| 489 |
+
"\u5927\u63d0\u7434",
|
| 490 |
+
"\u79fb\u52a8\u7535\u8bdd",
|
| 491 |
+
"\u94c1\u94fe",
|
| 492 |
+
"\u56f4\u680f",
|
| 493 |
+
"\u94fe\u7532",
|
| 494 |
+
"\u7535\u952f",
|
| 495 |
+
"\u7bb1\u5b50",
|
| 496 |
+
"\u68b3\u5986\u53f0",
|
| 497 |
+
"\u7f16\u949f",
|
| 498 |
+
"\u4e2d\u56fd\u6a71\u67dc",
|
| 499 |
+
"\u5723\u8bde\u889c",
|
| 500 |
+
"\u6559\u5802",
|
| 501 |
+
"\u7535\u5f71\u9662",
|
| 502 |
+
"\u5207\u8089\u5200",
|
| 503 |
+
"\u60ac\u5d16\u5c4b",
|
| 504 |
+
"\u6597\u7bf7",
|
| 505 |
+
"\u6728\u5c50",
|
| 506 |
+
"\u9e21\u5c3e\u9152\u8c03\u9152\u5668",
|
| 507 |
+
"\u5496\u5561\u676f",
|
| 508 |
+
"\u5496\u5561\u58f6",
|
| 509 |
+
"\u87ba\u65cb\u7ed3\u6784\uff08\u697c\u68af\uff09",
|
| 510 |
+
"\u7ec4\u5408\u9501",
|
| 511 |
+
"\u7535\u8111\u952e\u76d8",
|
| 512 |
+
"\u7cd6\u679c",
|
| 513 |
+
"\u96c6\u88c5\u7bb1\u8239",
|
| 514 |
+
"\u655e\u7bf7\u8f66",
|
| 515 |
+
"\u74f6\u585e\u94bb",
|
| 516 |
+
"\u77ed\u53f7",
|
| 517 |
+
"\u725b\u4ed4\u9774",
|
| 518 |
+
"\u725b\u4ed4\u5e3d",
|
| 519 |
+
"\u6447\u7bee",
|
| 520 |
+
"\u8d77\u91cd\u673a",
|
| 521 |
+
"\u5934\u76d4",
|
| 522 |
+
"\u677f\u6761\u7bb1",
|
| 523 |
+
"\u5c0f\u513f\u5e8a",
|
| 524 |
+
"\u7802\u9505",
|
| 525 |
+
"\u69cc\u7403",
|
| 526 |
+
"\u62d0\u6756",
|
| 527 |
+
"\u80f8\u7532",
|
| 528 |
+
"\u5927\u575d",
|
| 529 |
+
"\u4e66\u684c",
|
| 530 |
+
"\u53f0\u5f0f\u7535\u8111",
|
| 531 |
+
"\u6709\u7ebf\u7535\u8bdd",
|
| 532 |
+
"\u5c3f\u5e03\u6e7f",
|
| 533 |
+
"\u6570\u5b57\u65f6\u949f",
|
| 534 |
+
"\u6570\u5b57\u624b\u8868",
|
| 535 |
+
"\u9910\u684c\u677f",
|
| 536 |
+
"\u62b9\u5e03",
|
| 537 |
+
"\u6d17\u7897\u673a",
|
| 538 |
+
"\u76d8\u5f0f\u5236\u52a8\u5668",
|
| 539 |
+
"\u7801\u5934",
|
| 540 |
+
"\u72d7\u62c9\u96ea\u6a47",
|
| 541 |
+
"\u5706\u9876",
|
| 542 |
+
"\u95e8\u57ab",
|
| 543 |
+
"\u94bb\u4e95\u5e73\u53f0",
|
| 544 |
+
"\u9f13",
|
| 545 |
+
"\u9f13\u69cc",
|
| 546 |
+
"\u54d1\u94c3",
|
| 547 |
+
"\u8377\u5170\u70e4\u7bb1",
|
| 548 |
+
"\u7535\u98ce\u6247",
|
| 549 |
+
"\u7535\u5409\u4ed6",
|
| 550 |
+
"\u7535\u529b\u673a\u8f66",
|
| 551 |
+
"\u7ec4\u5408\u7535\u89c6\u67dc",
|
| 552 |
+
"\u4fe1\u5c01",
|
| 553 |
+
"\u6d53\u7f29\u5496\u5561\u673a",
|
| 554 |
+
"\u6251\u9762\u7c89",
|
| 555 |
+
"\u5973\u7528\u957f\u56f4\u5dfe",
|
| 556 |
+
"\u6587\u4ef6",
|
| 557 |
+
"\u6d88\u9632\u8239",
|
| 558 |
+
"\u6d88\u9632\u8f66",
|
| 559 |
+
"\u706b\u7089\u680f",
|
| 560 |
+
"\u65d7\u6746",
|
| 561 |
+
"\u957f\u7b1b",
|
| 562 |
+
"\u6298\u53e0\u6905",
|
| 563 |
+
"\u6a44\u6984\u7403\u5934\u76d4",
|
| 564 |
+
"\u53c9\u8f66",
|
| 565 |
+
"\u55b7\u6cc9",
|
| 566 |
+
"\u94a2\u7b14",
|
| 567 |
+
"\u6709\u56db\u6839\u5e37\u67f1\u7684\u5e8a",
|
| 568 |
+
"\u8fd0\u8d27\u8f66\u53a2",
|
| 569 |
+
"\u5706\u53f7",
|
| 570 |
+
"\u714e\u9505",
|
| 571 |
+
"\u88d8\u76ae\u5927\u8863",
|
| 572 |
+
"\u5783\u573e\u8f66",
|
| 573 |
+
"\u9632\u6bd2\u9762\u5177",
|
| 574 |
+
"\u6c7d\u6cb9\u6cf5",
|
| 575 |
+
"\u9ad8\u811a\u676f",
|
| 576 |
+
"\u5361\u4e01\u8f66",
|
| 577 |
+
"\u9ad8\u5c14\u592b\u7403",
|
| 578 |
+
"\u9ad8\u5c14\u592b\u7403\u8f66",
|
| 579 |
+
"\u72ed\u957f\u5c0f\u8239",
|
| 580 |
+
"\u9523",
|
| 581 |
+
"\u793c\u670d",
|
| 582 |
+
"\u94a2\u7434",
|
| 583 |
+
"\u6e29\u5ba4",
|
| 584 |
+
"\u6563\u70ed\u5668\u683c\u6805",
|
| 585 |
+
"\u6742\u8d27\u5e97",
|
| 586 |
+
"\u65ad\u5934\u53f0",
|
| 587 |
+
"\u5c0f\u53d1\u5939",
|
| 588 |
+
"\u5934\u53d1\u55b7\u96fe",
|
| 589 |
+
"\u534a\u5c65\u5e26\u88c5\u7532\u8f66",
|
| 590 |
+
"\u9524\u5b50",
|
| 591 |
+
"\u5927\u7bee\u5b50",
|
| 592 |
+
"\u624b\u6447\u9f13\u98ce\u673a",
|
| 593 |
+
"\u624b\u63d0\u7535\u8111",
|
| 594 |
+
"\u624b\u5e15",
|
| 595 |
+
"\u786c\u76d8",
|
| 596 |
+
"\u53e3\u7434",
|
| 597 |
+
"\u7ad6\u7434",
|
| 598 |
+
"\u6536\u5272\u673a",
|
| 599 |
+
"\u65a7\u5934",
|
| 600 |
+
"\u624b\u67aa\u76ae\u5957",
|
| 601 |
+
"\u5bb6\u5ead\u5f71\u9662",
|
| 602 |
+
"\u8702\u7a9d",
|
| 603 |
+
"\u94a9\u722a",
|
| 604 |
+
"\u886c\u88d9",
|
| 605 |
+
"\u5355\u6760",
|
| 606 |
+
"\u9a6c\u8f66",
|
| 607 |
+
"\u6c99\u6f0f",
|
| 608 |
+
"iPod",
|
| 609 |
+
"\u71a8\u6597",
|
| 610 |
+
"\u5357\u74dc\u706f\u7b3c",
|
| 611 |
+
"\u725b\u4ed4\u88e4",
|
| 612 |
+
"\u5409\u666e\u8f66",
|
| 613 |
+
"T\u6064\u886b",
|
| 614 |
+
"\u62fc\u56fe",
|
| 615 |
+
"\u4eba\u529b\u8f66",
|
| 616 |
+
"\u64cd\u7eb5\u6746",
|
| 617 |
+
"\u548c\u670d",
|
| 618 |
+
"\u62a4\u819d",
|
| 619 |
+
"\u8774\u8776\u7ed3",
|
| 620 |
+
"\u5927\u8902",
|
| 621 |
+
"\u957f\u67c4\u52fa",
|
| 622 |
+
"\u706f\u7f69",
|
| 623 |
+
"\u7b14\u8bb0\u672c\u7535\u8111",
|
| 624 |
+
"\u5272\u8349\u673a",
|
| 625 |
+
"\u955c\u5934\u76d6",
|
| 626 |
+
"\u5f00\u4fe1\u5200\uff1b\u62c6\u4fe1\u5200",
|
| 627 |
+
"\u56fe\u4e66\u9986",
|
| 628 |
+
"\u6551\u751f\u8247",
|
| 629 |
+
"\u70b9\u706b\u5668",
|
| 630 |
+
"\u8c6a\u534e\u8f7f\u8f66",
|
| 631 |
+
"\u8fdc\u6d0b\u73ed\u8f6e",
|
| 632 |
+
"\u5507\u818f",
|
| 633 |
+
"\u5e73\u5e95\u4fbf\u978b",
|
| 634 |
+
"\u6d17\u5242",
|
| 635 |
+
"\u626c\u58f0\u5668",
|
| 636 |
+
"\u653e\u5927\u955c",
|
| 637 |
+
"\u952f\u6728\u5382",
|
| 638 |
+
"\u78c1\u7f57\u76d8",
|
| 639 |
+
"\u90ae\u888b",
|
| 640 |
+
"\u4fe1\u7bb1",
|
| 641 |
+
"\u5973\u6e38\u6cf3\u8863",
|
| 642 |
+
"\u6709\u80a9\u5e26\u6d74\u8863",
|
| 643 |
+
"\u7aa8\u4e95\u76d6",
|
| 644 |
+
"\u6c99\u7403\uff08\u4e00\u79cd\u6253\u51fb\u4e50\u5668\uff09",
|
| 645 |
+
"\u9a6c\u6797\u5df4\u6728\u7434",
|
| 646 |
+
"\u9762\u819c",
|
| 647 |
+
"\u706b\u67f4",
|
| 648 |
+
"\u82b1\u67f1",
|
| 649 |
+
"\u8ff7\u5bab",
|
| 650 |
+
"\u91cf\u676f",
|
| 651 |
+
"\u836f\u7bb1",
|
| 652 |
+
"\u5de8\u77f3",
|
| 653 |
+
"\u9ea6\u514b\u98ce",
|
| 654 |
+
"\u5fae\u6ce2\u7089",
|
| 655 |
+
"\u519b\u88c5",
|
| 656 |
+
"\u5976\u6876",
|
| 657 |
+
"\u8ff7\u4f60\u5df4\u58eb",
|
| 658 |
+
"\u8ff7\u4f60\u88d9",
|
| 659 |
+
"\u9762\u5305\u8f66\uff1b\u5c0f\u578b\u8d27\u8f66",
|
| 660 |
+
"\u5bfc\u5f39",
|
| 661 |
+
"\u8fde\u6307\u624b\u5957",
|
| 662 |
+
"\u6405\u62cc\u94b5",
|
| 663 |
+
"\u6d3b\u52a8\u623f\u5c4b\uff08\u7531\u6c7d\u8f66\u62d6\u62c9\u7684\uff09",
|
| 664 |
+
"\u798f\u7279T\u578b\u8f66",
|
| 665 |
+
"\u8c03\u5236\u89e3\u8c03\u5668\uff1b\u5149\u732b",
|
| 666 |
+
"\u4fee\u9053\u9662",
|
| 667 |
+
"\u663e\u793a\u5668",
|
| 668 |
+
"\u7535\u74f6\u8f66",
|
| 669 |
+
"\u7802\u6d46",
|
| 670 |
+
"\u5b66\u58eb",
|
| 671 |
+
"\u6e05\u771f\u5bfa",
|
| 672 |
+
"\u868a\u5e10",
|
| 673 |
+
"\u6469\u6258\u8f66",
|
| 674 |
+
"\u5c71\u5730\u81ea\u884c\u8f66",
|
| 675 |
+
"\u767b\u5c71\u5e10",
|
| 676 |
+
"\u9f20\u6807",
|
| 677 |
+
"\u6355\u9f20\u5668",
|
| 678 |
+
"\u642c\u5bb6\u8d27\u8f66",
|
| 679 |
+
"\u52a8\u7269\u7684\u53e3\u5957",
|
| 680 |
+
"\u91d1\u5c5e\u9489\u5b50",
|
| 681 |
+
"\u9888\u6258",
|
| 682 |
+
"\u9879\u94fe",
|
| 683 |
+
"\u4e73\u5934\uff08\u74f6\uff09",
|
| 684 |
+
"\u5e73\u677f\u7535\u8111",
|
| 685 |
+
"\u65b9\u5c16\u7891",
|
| 686 |
+
"\u53cc\u7c27\u7ba1",
|
| 687 |
+
"\u5c0f\u9e45\u7b1b\uff1b\u7403\u5f62\u7b1b(\u7ba1\u8eab\u692d\u5706\u5f62)",
|
| 688 |
+
"\u91cc\u7a0b\u8868",
|
| 689 |
+
"\u6ee4\u6cb9\u5668",
|
| 690 |
+
"\u98ce\u7434",
|
| 691 |
+
"\u793a\u6ce2\u5668",
|
| 692 |
+
"\u7f69\u88d9",
|
| 693 |
+
"\u725b\u8f66",
|
| 694 |
+
"\u6c27\u6c14\u9762\u7f69",
|
| 695 |
+
"\u5305\u88c5",
|
| 696 |
+
"\u8239\u6868",
|
| 697 |
+
"\u660e\u8f6e",
|
| 698 |
+
"\u6302\u9501",
|
| 699 |
+
"\u753b\u7b14",
|
| 700 |
+
"\u7761\u8863",
|
| 701 |
+
"\u5bab\u6bbf",
|
| 702 |
+
"\u6392\u7bab",
|
| 703 |
+
"\u7eb8\u5dfe",
|
| 704 |
+
"\u964d\u843d\u4f1e",
|
| 705 |
+
"\u53cc\u6760",
|
| 706 |
+
"\u516c\u56ed\u957f\u6905",
|
| 707 |
+
"\u505c\u8f66\u6536\u8d39\u8868",
|
| 708 |
+
"\u5ba2\u8f66",
|
| 709 |
+
"\u9732\u53f0",
|
| 710 |
+
"\u4ed8\u8d39\u7535\u8bdd",
|
| 711 |
+
"\u57fa\u5ea7",
|
| 712 |
+
"\u94c5\u7b14\u76d2",
|
| 713 |
+
"\u5377\u7b14\u5200",
|
| 714 |
+
"\u9999\u6c34\uff08\u74f6\uff09",
|
| 715 |
+
"\u57f9\u517b\u76bf",
|
| 716 |
+
"\u590d\u5370\u673a",
|
| 717 |
+
"\u62e8\u5f26\u7247",
|
| 718 |
+
"\u5c16\u9876\u5934\u76d4",
|
| 719 |
+
"\u7528\u5c16\u677f\u6761\u8fde\u6210\u7684\u5c16\u6869\u7bf1\u6805",
|
| 720 |
+
"\u76ae\u5361",
|
| 721 |
+
"\u6865\u58a9",
|
| 722 |
+
"\u5b58\u94b1\u7f50",
|
| 723 |
+
"\u836f\u74f6",
|
| 724 |
+
"\u6795\u5934",
|
| 725 |
+
"\u4e52\u4e53\u7403",
|
| 726 |
+
"\u98ce\u8f66",
|
| 727 |
+
"\u6d77\u76d7\u8239",
|
| 728 |
+
"\u6c34\u7f50",
|
| 729 |
+
"\u6728\u5de5\u5228",
|
| 730 |
+
"\u5929\u6587\u9986",
|
| 731 |
+
"\u5851\u6599\u888b",
|
| 732 |
+
"\u677f\u67b6",
|
| 733 |
+
"\u7281\u578b\u94f2\u96ea\u673a",
|
| 734 |
+
"\u624b\u538b\u76ae\u7897\u6cf5",
|
| 735 |
+
"\u5b9d\u4e3d\u6765\u76f8\u673a",
|
| 736 |
+
"\u7535\u7ebf\u6746",
|
| 737 |
+
"\u8b66\u8f66",
|
| 738 |
+
"\u96e8\u62ab",
|
| 739 |
+
"\u53f0\u7403\u684c",
|
| 740 |
+
"\u5145\u6c14\u996e\u6599\u74f6",
|
| 741 |
+
"\u82b1\u76c6",
|
| 742 |
+
"\u9676\u5de5\u65cb\u76d8",
|
| 743 |
+
"\u7535\u94bb",
|
| 744 |
+
"\u7948\u7977\u57ab",
|
| 745 |
+
"\u6253\u5370\u673a",
|
| 746 |
+
"\u76d1\u72f1",
|
| 747 |
+
"\u70ae\u5f39",
|
| 748 |
+
"\u6295\u5f71\u4eea",
|
| 749 |
+
"\u51b0\u7403",
|
| 750 |
+
"\u6c99\u5305",
|
| 751 |
+
"\u5c0f\u94b1\u888b\uff1b\u624b\u888b",
|
| 752 |
+
"\u7fbd\u7ba1\u7b14",
|
| 753 |
+
"\u88ab\u5b50",
|
| 754 |
+
"\u8d5b\u8f66",
|
| 755 |
+
"\u7403\u62cd",
|
| 756 |
+
"\u6563\u70ed\u5668",
|
| 757 |
+
"\u6536\u97f3\u673a",
|
| 758 |
+
"\u5c04\u7535\u671b\u8fdc\u955c",
|
| 759 |
+
"\u96e8\u6876",
|
| 760 |
+
"\u4f11\u95f2\u8f66",
|
| 761 |
+
"\u5377\u8f74",
|
| 762 |
+
"\u53cd\u5c04\u5f0f\u7167\u76f8\u673a",
|
| 763 |
+
"\u51b0\u7bb1",
|
| 764 |
+
"\u9065\u63a7\u5668",
|
| 765 |
+
"\u9910\u5385",
|
| 766 |
+
"\u5de6\u8f6e\u624b\u67aa",
|
| 767 |
+
"\u6b65\u67aa",
|
| 768 |
+
"\u6447\u6905",
|
| 769 |
+
"\u7535\u8f6c\u70e4\u8089\u67b6",
|
| 770 |
+
"\u6a61\u76ae",
|
| 771 |
+
"\u6a44\u6984\u7403",
|
| 772 |
+
"\u76f4\u5c3a",
|
| 773 |
+
"\u8dd1\u6b65\u978b",
|
| 774 |
+
"\u4fdd\u9669\u67dc",
|
| 775 |
+
"\u5b89\u5168\u522b\u9488",
|
| 776 |
+
"\u76d0\u74f6\uff08\u8c03\u5473\u7528\uff09",
|
| 777 |
+
"\u51c9\u978b",
|
| 778 |
+
"\u7eb1\u7b3c",
|
| 779 |
+
"\u8428\u514b\u65af\u7ba1",
|
| 780 |
+
"\u5251\u9798",
|
| 781 |
+
"\u79e4",
|
| 782 |
+
"\u6821\u8f66",
|
| 783 |
+
"\u5e06\u8239",
|
| 784 |
+
"\u8bb0\u5206\u724c",
|
| 785 |
+
"\u5c4f\u5e55",
|
| 786 |
+
"\u87ba\u4e1d",
|
| 787 |
+
"\u87ba\u4e1d\u5200",
|
| 788 |
+
"\u5b89\u5168\u5e26",
|
| 789 |
+
"\u7f1d\u7eab\u673a",
|
| 790 |
+
"\u76fe\u724c",
|
| 791 |
+
"\u76ae\u978b\u5e97",
|
| 792 |
+
"\u969c\u5b50",
|
| 793 |
+
"\u8d2d\u7269\u7bee",
|
| 794 |
+
"\u8d2d\u7269\u8f66",
|
| 795 |
+
"\u94c1\u9539",
|
| 796 |
+
"\u6d74\u5e3d",
|
| 797 |
+
"\u6d74\u5e18",
|
| 798 |
+
"\u6ed1\u96ea\u677f",
|
| 799 |
+
"\u6ed1\u96ea\u9762\u7f69",
|
| 800 |
+
"\u7761\u888b",
|
| 801 |
+
"\u6ed1\u5c3a",
|
| 802 |
+
"\u6ed1\u52a8\u95e8",
|
| 803 |
+
"\u89d2\u5b50\u8001\u864e\u673a",
|
| 804 |
+
"\u6f5c\u6c34\u901a\u6c14\u7ba1",
|
| 805 |
+
"\u6469\u6258\u96ea\u6a47\uff1b\u96ea\u5730\u673a\u52a8\u8f66",
|
| 806 |
+
"\u626b\u96ea\u673a",
|
| 807 |
+
"\u7682\u6db2\u5668",
|
| 808 |
+
"\u8db3\u7403",
|
| 809 |
+
"\u889c\u5b50",
|
| 810 |
+
"\u789f\u5f0f\u592a\u9633\u80fd",
|
| 811 |
+
"\u5bbd\u8fb9\u5e3d",
|
| 812 |
+
"\u6c64\u7897",
|
| 813 |
+
"\u7a7a\u683c\u952e",
|
| 814 |
+
"\u7a7a\u95f4\u52a0\u70ed\u5668",
|
| 815 |
+
"\u822a\u5929\u98de\u673a",
|
| 816 |
+
"\u9505\u94f2\uff1b\u505a\u996d\u7684\u94f2\u5b50",
|
| 817 |
+
"\u5feb\u8247",
|
| 818 |
+
"\u8718\u86db\u7f51",
|
| 819 |
+
"\u7eba\u9524\uff1b\u624b\u7eba\u7528\u7684\u7ed5\u7ebf\u6746",
|
| 820 |
+
"\u8dd1\u8f66",
|
| 821 |
+
"\u805a\u5149\u706f",
|
| 822 |
+
"\u821e\u53f0",
|
| 823 |
+
"\u84b8\u6c7d\u673a\u8f66",
|
| 824 |
+
"\u94a2\u62f1\u6865",
|
| 825 |
+
"\u94a2\u6eda\u7b52",
|
| 826 |
+
"\u542c\u8bca\u5668",
|
| 827 |
+
"\u5973\u7528\u62ab\u80a9",
|
| 828 |
+
"\u77f3\u5934\u5899",
|
| 829 |
+
"\u79d2\u8868",
|
| 830 |
+
"\u706b\u7089",
|
| 831 |
+
"\u8fc7\u6ee4\u5668",
|
| 832 |
+
"\u6709\u8f68\u7535\u8f66",
|
| 833 |
+
"\u62c5\u67b6",
|
| 834 |
+
"\u6c99\u53d1\u5e8a",
|
| 835 |
+
"\u4f5b\u5854",
|
| 836 |
+
"\u6f5c\u8247",
|
| 837 |
+
"\u5957\u88c5",
|
| 838 |
+
"\u65e5\u6677",
|
| 839 |
+
"\u592a\u9633\u955c",
|
| 840 |
+
"\u592a\u9633\u955c",
|
| 841 |
+
"\u9632\u6652\u971c",
|
| 842 |
+
"\u60ac\u7d22\u6865",
|
| 843 |
+
"\u62d6\u628a",
|
| 844 |
+
"\u8fd0\u52a8\u886b",
|
| 845 |
+
"\u6e38\u6cf3\u88e4",
|
| 846 |
+
"\u79cb\u5343",
|
| 847 |
+
"\u5f00\u5173",
|
| 848 |
+
"\u6ce8\u5c04\u5668\uff1b\u5438\u7ba1",
|
| 849 |
+
"\u53f0\u706f",
|
| 850 |
+
"\u5766\u514b",
|
| 851 |
+
"\u5f55\u97f3\u673a",
|
| 852 |
+
"\u8336\u58f6",
|
| 853 |
+
"\u6cf0\u8fea",
|
| 854 |
+
"\u7535\u89c6",
|
| 855 |
+
"\u7f51\u7403\uff1b\u6253\u7f51\u7403\u7684\u7403",
|
| 856 |
+
"\u8305\u8349",
|
| 857 |
+
"\u5e55\u5e03",
|
| 858 |
+
"\u9876\u9488",
|
| 859 |
+
"\u6253\u8c37\u673a\uff1b\u8131\u7c92\u673a",
|
| 860 |
+
"\u5b9d\u5ea7",
|
| 861 |
+
"\u74e6\u5c4b\u9876",
|
| 862 |
+
"\u70e4\u9762\u5305\u673a",
|
| 863 |
+
"\u70df\u8349\u5e97",
|
| 864 |
+
"\u9a6c\u6876",
|
| 865 |
+
"\u706b\u70ac",
|
| 866 |
+
"\u56fe\u817e\u67f1",
|
| 867 |
+
"\u62d6\u8f66\uff1b\u7275\u5f15\u8f66",
|
| 868 |
+
"\u73a9\u5177\u5e97",
|
| 869 |
+
"\u62d6\u62c9\u673a",
|
| 870 |
+
"\u534a\u6302\u6c7d\u8f66",
|
| 871 |
+
"\u6258\u76d8",
|
| 872 |
+
"\u98ce\u8863",
|
| 873 |
+
"\u4e09\u8f6e\u8f66",
|
| 874 |
+
"\u4e09\u4f53\u8239",
|
| 875 |
+
"\u4e09\u811a\u67b6",
|
| 876 |
+
"\u51ef\u65cb\u95e8",
|
| 877 |
+
"\u65e0\u8f68\u7535\u8f66",
|
| 878 |
+
"\u957f\u53f7",
|
| 879 |
+
"\u6d74\u76c6",
|
| 880 |
+
"\u65cb\u8f6c\u5f0f\u6805\u95e8",
|
| 881 |
+
"\u6253\u5b57\u673a\u952e\u76d8",
|
| 882 |
+
"\u4f1e",
|
| 883 |
+
"\u72ec\u8f6e\u8f66",
|
| 884 |
+
"\u76f4\u7acb\u5f0f\u94a2\u7434",
|
| 885 |
+
"\u5438\u5c18\u5668",
|
| 886 |
+
"\u82b1\u74f6\uff1b\u88c5\u9970\u74f6",
|
| 887 |
+
"\u62f1\u9876",
|
| 888 |
+
"\u5929\u9e45\u7ed2",
|
| 889 |
+
"\u81ea\u52a8\u552e\u8d27\u673a",
|
| 890 |
+
"\u6cd5\u8863\uff1b\u796d\u8863\uff1b\u796d\u670d",
|
| 891 |
+
"\u9ad8\u67b6\u6865",
|
| 892 |
+
"\u5c0f\u63d0\u7434",
|
| 893 |
+
"\u6392\u7403",
|
| 894 |
+
"\u677e\u997c\u673a",
|
| 895 |
+
"\u6302\u949f",
|
| 896 |
+
"\u94b1\u5305\uff1b\u94b1\u5939",
|
| 897 |
+
"\u8863\u67dc\u8863\u6a71",
|
| 898 |
+
"\u519b\u7528\u98de\u673a",
|
| 899 |
+
"\u6d17\u8138\u76c6",
|
| 900 |
+
"\u6d17\u8863\u673a",
|
| 901 |
+
"\u6c34\u74f6",
|
| 902 |
+
"\u6c34\u58f6",
|
| 903 |
+
"\u6c34\u5854",
|
| 904 |
+
"\u5a01\u58eb\u5fcc\u58f6",
|
| 905 |
+
"\u54e8\u5b50",
|
| 906 |
+
"\u5047\u53d1",
|
| 907 |
+
"\u7eb1\u7a97",
|
| 908 |
+
"\u767e\u53f6\u7a97",
|
| 909 |
+
"\u6e29\u838e\u9886\u5e26",
|
| 910 |
+
"\u8461\u8404\u9152\u74f6",
|
| 911 |
+
"\u98de\u673a\u7fc5\u8180",
|
| 912 |
+
"\u7092\u83dc\u9505",
|
| 913 |
+
"\u6728\u52fa\u5b50\uff1b\u6728\u5934\u52fa\u5b50",
|
| 914 |
+
"\u6bdb\u7ec7\u54c1",
|
| 915 |
+
"\u539f\u6728\u6805\u680f",
|
| 916 |
+
"\u6c89\u8239",
|
| 917 |
+
"\u53cc\u6845\u8239",
|
| 918 |
+
"\u8499\u53e4\u5305",
|
| 919 |
+
"\u7f51\u7ad9\uff1b\u7f51\u9875",
|
| 920 |
+
"\u6f2b\u753b",
|
| 921 |
+
"\u7eb5\u6a2a\u5b57\u8c1c",
|
| 922 |
+
"\u8def\u6807",
|
| 923 |
+
"\u4ea4\u901a\u4fe1\u53f7\u706f",
|
| 924 |
+
"\u9632\u5c18\u7f69",
|
| 925 |
+
"\u83dc\u5355",
|
| 926 |
+
"\u76d8\u5b50",
|
| 927 |
+
"\u58a8\u897f\u54e5\u9cc4\u68a8\u9171\uff1b\u58a8\u897f\u54e5\u725b\u6cb9\u679c\u9171",
|
| 928 |
+
"\u6e05\u7096\u8089\u6c64",
|
| 929 |
+
"\u706b\u9505",
|
| 930 |
+
"\u4e73\u8102\u86cb\u7cd5\uff1b\u82f1\u56fd\u751c\u70b9",
|
| 931 |
+
"\u51b0\u6dc7\u6dcb",
|
| 932 |
+
"\u51b0\u68cd\uff1b\u96ea\u7cd5",
|
| 933 |
+
"\u6cd5\u5f0f\u9762\u5305",
|
| 934 |
+
"\u767e\u5409\u997c",
|
| 935 |
+
"\u6912\u76d0\u8106\u997c",
|
| 936 |
+
"\u829d\u58eb\u6c49\u5821",
|
| 937 |
+
"\u70ed\u72d7",
|
| 938 |
+
"\u571f\u8c46\u6ce5",
|
| 939 |
+
"\u7ed3\u7403\u7518\u84dd",
|
| 940 |
+
"\u897f\u5170\u82b1\uff1b\u7eff\u83dc\u82b1",
|
| 941 |
+
"\u83dc\u82b1\uff1b\u82b1\u6930\u83dc",
|
| 942 |
+
"\u897f\u846b\u82a6",
|
| 943 |
+
"\u91d1\u4e1d\u74dc\uff1b\u610f\u9762\u5357\u74dc\uff1b\u9762\u6761\u74dc",
|
| 944 |
+
"\u7eff\u8272\u5c0f\u5357\u74dc\uff1b\u9752\u5357\u74dc",
|
| 945 |
+
"\u5357\u74dc",
|
| 946 |
+
"\u9ec4\u74dc",
|
| 947 |
+
"\u6d0b\u84df\uff1b\u7403\u84df",
|
| 948 |
+
"\u751c\u6912",
|
| 949 |
+
"\u523a\u68d8\u84df",
|
| 950 |
+
"\u8611\u83c7",
|
| 951 |
+
"\u7eff\u82f9\u679c",
|
| 952 |
+
"\u8349\u8393",
|
| 953 |
+
"\u6a58\u5b50",
|
| 954 |
+
"\u67e0\u6aac",
|
| 955 |
+
"\u65e0\u82b1\u679c",
|
| 956 |
+
"\u83e0\u841d",
|
| 957 |
+
"\u9999\u8549",
|
| 958 |
+
"\u83e0\u841d\u871c",
|
| 959 |
+
"\u756a\u8354\u679d",
|
| 960 |
+
"\u77f3\u69b4",
|
| 961 |
+
"\u5e72\u8349",
|
| 962 |
+
"\u57f9\u6839\u86cb\u9171\u610f\u5927\u5229\u9762",
|
| 963 |
+
"\u5de7\u514b\u529b\u9171",
|
| 964 |
+
"\u751f\u9762\uff1b\u9762\u56e2",
|
| 965 |
+
"\u745e\u58eb\u8089\u5305",
|
| 966 |
+
"\u62ab\u8428",
|
| 967 |
+
"\u9985\u997c",
|
| 968 |
+
"\u5377\u997c",
|
| 969 |
+
"\u7ea2\u8461\u8404\u9152",
|
| 970 |
+
"\u610f\u5f0f\u6d53\u7f29\u5496\u5561",
|
| 971 |
+
"\u676f\u5b50",
|
| 972 |
+
"\u86cb\u9152",
|
| 973 |
+
"\u9ad8\u5c71",
|
| 974 |
+
"\u6ce1\u6ce1",
|
| 975 |
+
"\u60ac\u5d16",
|
| 976 |
+
"\u73ca\u745a\u7901",
|
| 977 |
+
"\u95f4\u6b47\u6cc9\uff1b\u95f4\u65ad\u55b7\u53d1\u7684\u6e29\u6cc9",
|
| 978 |
+
"\u6e56\u8fb9",
|
| 979 |
+
"\u5cac\u89d2\uff1b\u6df1\u5165\u6d77\u4e2d\u7684\u72ed\u957f\u9ad8\u5730",
|
| 980 |
+
"\u6c99\u6d32",
|
| 981 |
+
"\u6c99\u6ee9",
|
| 982 |
+
"\u5ce1\u8c37",
|
| 983 |
+
"\u706b\u5c71",
|
| 984 |
+
"\u68d2\u7403\u8fd0\u52a8\u5458",
|
| 985 |
+
"\u65b0\u90ce",
|
| 986 |
+
"\u6f5c\u6c34\u5458",
|
| 987 |
+
"\u6cb9\u83dc",
|
| 988 |
+
"\u96cf\u83ca",
|
| 989 |
+
"\u9ec4\u8272\u6753\u5170",
|
| 990 |
+
"\u7389\u7c73",
|
| 991 |
+
"\u6a61\u5b50",
|
| 992 |
+
"\u73ab\u7470\u679c",
|
| 993 |
+
"\u4e03\u53f6\u6811\u679c\u5b9e",
|
| 994 |
+
"\u73ca\u745a\u83cc",
|
| 995 |
+
"\u6728\u8033",
|
| 996 |
+
"\u9e7f\u82b1\u83cc",
|
| 997 |
+
"\u81ed\u89d2\u83c7",
|
| 998 |
+
"\u5730\u661f",
|
| 999 |
+
"\u591a\u53f6\u5947\u679c\u83cc",
|
| 1000 |
+
"\u725b\u809d\u83cc",
|
| 1001 |
+
"\u7389\u7c73\u68d2\u5b50",
|
| 1002 |
+
"\u536b\u751f\u7eb8"
|
| 1003 |
+
]
|
| 1004 |
+
}
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/cn_zeroshot_classification_templates.json
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"imagenet1k": [
|
| 3 |
+
"{c}\u7684\u7167\u7247\u3002",
|
| 4 |
+
"\u8d28\u91cf\u5dee\u7684{c}\u7684\u7167\u7247\u3002",
|
| 5 |
+
"\u8bb8\u591a{c}\u7684\u7167\u7247\u3002",
|
| 6 |
+
"{c}\u7684\u96d5\u5851\u3002",
|
| 7 |
+
"\u96be\u4ee5\u770b\u5230{c}\u7684\u7167\u7247\u3002",
|
| 8 |
+
"{c}\u7684\u4f4e\u5206\u8fa8\u7387\u7167\u7247\u3002",
|
| 9 |
+
"{c}\u7684\u6e32\u67d3\u3002",
|
| 10 |
+
"\u6d82\u9e26{c}\u3002",
|
| 11 |
+
"{c}\u7684\u7cdf\u7cd5\u7167\u7247\u3002",
|
| 12 |
+
"{c}\u7684\u88c1\u526a\u7167\u7247\u3002",
|
| 13 |
+
"{c}\u7684\u7eb9\u8eab\u3002",
|
| 14 |
+
"{c}\u7684\u523a\u7ee3\u7167\u7247\u3002",
|
| 15 |
+
"\u5f88\u96be\u770b\u5230{c}\u7684\u7167\u7247\u3002",
|
| 16 |
+
"{c}\u7684\u660e\u4eae\u7167\u7247\u3002",
|
| 17 |
+
"\u4e00\u5f20\u5e72\u51c0\u7684{c}\u7684\u7167\u7247\u3002",
|
| 18 |
+
"\u4e00\u5f20\u5305\u542b{c}\u7684\u7167\u7247\u3002",
|
| 19 |
+
"{c}\u7684\u6df1\u8272\u7167\u7247\u3002",
|
| 20 |
+
"{c}\u7684\u624b\u7ed8\u753b\u3002",
|
| 21 |
+
"\u6211\u7684{c}\u7684\u7167\u7247\u3002",
|
| 22 |
+
"\u4e0d\u81ea\u7136\u7684{c}\u7684\u7167\u7247\u3002",
|
| 23 |
+
"\u4e00\u5f20\u9177\u7684{c}\u7684\u7167\u7247\u3002",
|
| 24 |
+
"{c}\u7684\u7279\u5199\u7167\u7247\u3002",
|
| 25 |
+
"{c}\u7684\u9ed1\u767d\u7167\u7247\u3002",
|
| 26 |
+
"\u4e00\u5e45{c}\u7684\u753b\u3002",
|
| 27 |
+
"\u4e00\u5e45{c}\u7684\u7ed8\u753b\u3002",
|
| 28 |
+
"\u4e00\u5f20{c}\u7684\u50cf\u7d20\u7167\u7247\u3002",
|
| 29 |
+
"{c}\u7684\u96d5\u50cf\u3002",
|
| 30 |
+
"\u4e00\u5f20{c}\u7684\u660e\u4eae\u7167\u7247\u3002",
|
| 31 |
+
"{c}\u7684\u88c1\u526a\u7167\u7247\u3002",
|
| 32 |
+
"\u4eba\u9020\u7684{c}\u7684\u7167\u7247\u3002",
|
| 33 |
+
"\u4e00\u5f20\u5173\u4e8e{c}\u7684\u7167\u7247\u3002",
|
| 34 |
+
"\u635f\u574f\u7684{c}\u7684jpeg\u7167\u7247\u3002",
|
| 35 |
+
"{c}\u7684\u6a21\u7cca\u7167\u7247\u3002",
|
| 36 |
+
"{c}\u7684\u76f8\u7247\u3002",
|
| 37 |
+
"\u4e00\u5f20{c}\u7684\u597d\u7167\u7247\u3002",
|
| 38 |
+
"{c}\u7684\u6e32\u67d3\u7167\u3002",
|
| 39 |
+
"\u89c6\u9891\u6e38\u620f\u4e2d\u7684{c}\u3002",
|
| 40 |
+
"\u4e00\u5f20{c}\u7684\u7167\u7247\u3002",
|
| 41 |
+
"{c}\u7684\u6d82\u9e26\u3002",
|
| 42 |
+
"{c}\u7684\u8fd1\u8ddd\u79bb\u7167\u7247\u3002",
|
| 43 |
+
"{c}\u7684\u6298\u7eb8\u3002",
|
| 44 |
+
"{c}\u5728\u89c6\u9891\u6e38\u620f\u4e2d\u3002",
|
| 45 |
+
"{c}\u7684\u8349\u56fe\u3002",
|
| 46 |
+
"{c}\u7684\u6d82\u9e26\u7167\u3002",
|
| 47 |
+
"{c}\u7684\u6298\u7eb8\u5f62\u72b6\u3002",
|
| 48 |
+
"\u4f4e\u5206\u8fa8\u7387\u7684{c}\u7684\u7167\u7247\u3002",
|
| 49 |
+
"\u73a9\u5177{c}\u3002",
|
| 50 |
+
"{c}\u7684\u526f\u672c\u3002",
|
| 51 |
+
"{c}\u7684\u5e72\u51c0\u7684\u7167\u7247\u3002",
|
| 52 |
+
"\u4e00\u5f20\u5927{c}\u7684\u7167\u7247\u3002",
|
| 53 |
+
"{c}\u7684\u91cd\u73b0\u3002",
|
| 54 |
+
"\u4e00\u5f20\u6f02\u4eae\u7684{c}\u7684\u7167\u7247\u3002",
|
| 55 |
+
"\u4e00\u5f20\u5947\u602a\u7684{c}\u7684\u7167\u7247\u3002",
|
| 56 |
+
"\u6a21\u7cca\u7684{c}\u7684\u7167\u7247\u3002",
|
| 57 |
+
"\u5361\u901a{c}\u3002",
|
| 58 |
+
"{c}\u7684\u827a\u672f\u4f5c\u54c1\u3002",
|
| 59 |
+
"{c}\u7684\u7d20\u63cf\u3002",
|
| 60 |
+
"\u523a\u7ee3{c}\u3002",
|
| 61 |
+
"{c}\u7684\u50cf\u7d20\u7167\u3002",
|
| 62 |
+
"{c}\u7684\u62cd\u7167\u3002",
|
| 63 |
+
"{c}\u7684\u635f\u574f\u7684\u7167\u7247\u3002",
|
| 64 |
+
"\u9ad8\u8d28\u91cf\u7684{c}\u7684\u7167\u7247\u3002",
|
| 65 |
+
"\u6bdb\u7ed2\u73a9\u5177{c}\u3002",
|
| 66 |
+
"\u6f02\u4eae\u7684{c}\u7684\u7167\u7247\u3002",
|
| 67 |
+
"\u5c0f{c}\u7684\u7167\u7247\u3002",
|
| 68 |
+
"\u7167\u7247\u662f\u5947\u602a\u7684{c}\u3002",
|
| 69 |
+
"\u6f2b\u753b{c}\u3002",
|
| 70 |
+
"{c}\u7684\u827a\u672f\u7167\u3002",
|
| 71 |
+
"{c}\u7684\u56fe\u5f62\u3002",
|
| 72 |
+
"\u5927{c}\u7684\u7167\u7247\u3002",
|
| 73 |
+
"\u9ed1\u767d\u7684{c}\u7684\u7167\u7247\u3002",
|
| 74 |
+
"{c}\u6bdb\u7ed2\u73a9\u5177\u3002",
|
| 75 |
+
"\u4e00\u5f20{c}\u7684\u6df1\u8272\u7167\u7247\u3002",
|
| 76 |
+
"{c}\u7684\u6444\u5f71\u56fe\u3002",
|
| 77 |
+
"{c}\u7684\u6d82\u9e26\u7167\u3002",
|
| 78 |
+
"\u73a9\u5177\u5f62\u72b6\u7684{c}\u3002",
|
| 79 |
+
"\u62cd\u4e86{c}\u7684\u7167\u7247\u3002",
|
| 80 |
+
"\u9177\u9177\u7684{c}\u7684\u7167\u7247\u3002",
|
| 81 |
+
"\u7167\u7247\u91cc\u7684\u5c0f{c}\u3002",
|
| 82 |
+
"{c}\u7684\u523a\u9752\u3002"
|
| 83 |
+
]
|
| 84 |
+
}
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/cupl_prompts.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/en_classnames.json
ADDED
|
@@ -0,0 +1,1701 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"flowers": [
|
| 3 |
+
"pink primrose",
|
| 4 |
+
"hard-leaved pocket orchid",
|
| 5 |
+
"canterbury bells",
|
| 6 |
+
"sweet pea",
|
| 7 |
+
"english marigold",
|
| 8 |
+
"tiger lily",
|
| 9 |
+
"moon orchid",
|
| 10 |
+
"bird of paradise",
|
| 11 |
+
"monkshood",
|
| 12 |
+
"globe thistle",
|
| 13 |
+
"snapdragon",
|
| 14 |
+
"colt's foot",
|
| 15 |
+
"king protea",
|
| 16 |
+
"spear thistle",
|
| 17 |
+
"yellow iris",
|
| 18 |
+
"globe flower",
|
| 19 |
+
"purple coneflower",
|
| 20 |
+
"peruvian lily",
|
| 21 |
+
"balloon flower",
|
| 22 |
+
"giant white arum lily",
|
| 23 |
+
"fire lily",
|
| 24 |
+
"pincushion flower",
|
| 25 |
+
"fritillary",
|
| 26 |
+
"red ginger",
|
| 27 |
+
"grape hyacinth",
|
| 28 |
+
"corn poppy",
|
| 29 |
+
"prince of wales feathers",
|
| 30 |
+
"stemless gentian",
|
| 31 |
+
"artichoke",
|
| 32 |
+
"sweet william",
|
| 33 |
+
"carnation",
|
| 34 |
+
"garden phlox",
|
| 35 |
+
"love in the mist",
|
| 36 |
+
"mexican aster",
|
| 37 |
+
"alpine sea holly",
|
| 38 |
+
"ruby-lipped cattleya",
|
| 39 |
+
"cape flower",
|
| 40 |
+
"great masterwort",
|
| 41 |
+
"siam tulip",
|
| 42 |
+
"lenten rose",
|
| 43 |
+
"barbeton daisy",
|
| 44 |
+
"daffodil",
|
| 45 |
+
"sword lily",
|
| 46 |
+
"poinsettia",
|
| 47 |
+
"bolero deep blue",
|
| 48 |
+
"wallflower",
|
| 49 |
+
"marigold",
|
| 50 |
+
"buttercup",
|
| 51 |
+
"oxeye daisy",
|
| 52 |
+
"common dandelion",
|
| 53 |
+
"petunia",
|
| 54 |
+
"wild pansy",
|
| 55 |
+
"primula",
|
| 56 |
+
"sunflower",
|
| 57 |
+
"pelargonium",
|
| 58 |
+
"bishop of llandaff",
|
| 59 |
+
"gaura",
|
| 60 |
+
"geranium",
|
| 61 |
+
"orange dahlia",
|
| 62 |
+
"pink and yellow dahlia",
|
| 63 |
+
"cautleya spicata",
|
| 64 |
+
"japanese anemone",
|
| 65 |
+
"black-eyed susan",
|
| 66 |
+
"silverbush",
|
| 67 |
+
"californian poppy",
|
| 68 |
+
"osteospermum",
|
| 69 |
+
"spring crocus",
|
| 70 |
+
"bearded iris",
|
| 71 |
+
"windflower",
|
| 72 |
+
"tree poppy",
|
| 73 |
+
"gazania",
|
| 74 |
+
"azalea",
|
| 75 |
+
"water lily",
|
| 76 |
+
"rose",
|
| 77 |
+
"thorn apple",
|
| 78 |
+
"morning glory",
|
| 79 |
+
"passion flower",
|
| 80 |
+
"lotus",
|
| 81 |
+
"toad lily",
|
| 82 |
+
"anthurium",
|
| 83 |
+
"frangipani",
|
| 84 |
+
"clematis",
|
| 85 |
+
"hibiscus",
|
| 86 |
+
"columbine",
|
| 87 |
+
"desert-rose",
|
| 88 |
+
"tree mallow",
|
| 89 |
+
"magnolia",
|
| 90 |
+
"cyclamen",
|
| 91 |
+
"watercress",
|
| 92 |
+
"canna lily",
|
| 93 |
+
"hippeastrum",
|
| 94 |
+
"bee balm",
|
| 95 |
+
"air plant",
|
| 96 |
+
"foxglove",
|
| 97 |
+
"bougainvillea",
|
| 98 |
+
"camellia",
|
| 99 |
+
"mallow",
|
| 100 |
+
"mexican petunia",
|
| 101 |
+
"bromelia",
|
| 102 |
+
"blanket flower",
|
| 103 |
+
"trumpet creeper",
|
| 104 |
+
"blackberry lily"
|
| 105 |
+
],
|
| 106 |
+
"gtsrb": [
|
| 107 |
+
"red and white circle 20 kph speed limit",
|
| 108 |
+
"red and white circle 30 kph speed limit",
|
| 109 |
+
"red and white circle 50 kph speed limit",
|
| 110 |
+
"red and white circle 60 kph speed limit",
|
| 111 |
+
"red and white circle 70 kph speed limit",
|
| 112 |
+
"red and white circle 80 kph speed limit",
|
| 113 |
+
"end / de-restriction of 80 kph speed limit",
|
| 114 |
+
"red and white circle 100 kph speed limit",
|
| 115 |
+
"red and white circle 120 kph speed limit",
|
| 116 |
+
"red and white circle red car and black car no passing",
|
| 117 |
+
"red and white circle red truck and black car no passing",
|
| 118 |
+
"red and white triangle road intersection warning",
|
| 119 |
+
"white and yellow diamond priority road",
|
| 120 |
+
"red and white upside down triangle yield right-of-way",
|
| 121 |
+
"stop",
|
| 122 |
+
"empty red and white circle",
|
| 123 |
+
"red and white circle no truck entry",
|
| 124 |
+
"red circle with white horizonal stripe no entry",
|
| 125 |
+
"red and white triangle with exclamation mark warning",
|
| 126 |
+
"red and white triangle with black left curve approaching warning",
|
| 127 |
+
"red and white triangle with black right curve approaching warning",
|
| 128 |
+
"red and white triangle with black double curve approaching warning",
|
| 129 |
+
"red and white triangle rough / bumpy road warning",
|
| 130 |
+
"red and white triangle car skidding / slipping warning",
|
| 131 |
+
"red and white triangle with merging / narrow lanes warning",
|
| 132 |
+
"red and white triangle with person digging / construction / road work warning",
|
| 133 |
+
"red and white triangle with traffic light approaching warning",
|
| 134 |
+
"red and white triangle with person walking warning",
|
| 135 |
+
"red and white triangle with child and person walking warning",
|
| 136 |
+
"red and white triangle with bicyle warning",
|
| 137 |
+
"red and white triangle with snowflake / ice warning",
|
| 138 |
+
"red and white triangle with deer warning",
|
| 139 |
+
"white circle with gray strike bar no speed limit",
|
| 140 |
+
"blue circle with white right turn arrow mandatory",
|
| 141 |
+
"blue circle with white left turn arrow mandatory",
|
| 142 |
+
"blue circle with white forward arrow mandatory",
|
| 143 |
+
"blue circle with white forward or right turn arrow mandatory",
|
| 144 |
+
"blue circle with white forward or left turn arrow mandatory",
|
| 145 |
+
"blue circle with white keep right arrow mandatory",
|
| 146 |
+
"blue circle with white keep left arrow mandatory",
|
| 147 |
+
"blue circle with white arrows indicating a traffic circle",
|
| 148 |
+
"white circle with gray strike bar indicating no passing for cars has ended",
|
| 149 |
+
"white circle with gray strike bar indicating no passing for trucks has ended"
|
| 150 |
+
],
|
| 151 |
+
"country211": [
|
| 152 |
+
"Andorra",
|
| 153 |
+
"United Arab Emirates",
|
| 154 |
+
"Afghanistan",
|
| 155 |
+
"Antigua and Barbuda",
|
| 156 |
+
"Anguilla",
|
| 157 |
+
"Albania",
|
| 158 |
+
"Armenia",
|
| 159 |
+
"Angola",
|
| 160 |
+
"Antarctica",
|
| 161 |
+
"Argentina",
|
| 162 |
+
"Austria",
|
| 163 |
+
"Australia",
|
| 164 |
+
"Aruba",
|
| 165 |
+
"Aland Islands",
|
| 166 |
+
"Azerbaijan",
|
| 167 |
+
"Bosnia and Herzegovina",
|
| 168 |
+
"Barbados",
|
| 169 |
+
"Bangladesh",
|
| 170 |
+
"Belgium",
|
| 171 |
+
"Burkina Faso",
|
| 172 |
+
"Bulgaria",
|
| 173 |
+
"Bahrain",
|
| 174 |
+
"Benin",
|
| 175 |
+
"Bermuda",
|
| 176 |
+
"Brunei Darussalam",
|
| 177 |
+
"Bolivia",
|
| 178 |
+
"Bonaire, Saint Eustatius and Saba",
|
| 179 |
+
"Brazil",
|
| 180 |
+
"Bahamas",
|
| 181 |
+
"Bhutan",
|
| 182 |
+
"Botswana",
|
| 183 |
+
"Belarus",
|
| 184 |
+
"Belize",
|
| 185 |
+
"Canada",
|
| 186 |
+
"DR Congo",
|
| 187 |
+
"Central African Republic",
|
| 188 |
+
"Switzerland",
|
| 189 |
+
"Cote d'Ivoire",
|
| 190 |
+
"Cook Islands",
|
| 191 |
+
"Chile",
|
| 192 |
+
"Cameroon",
|
| 193 |
+
"China",
|
| 194 |
+
"Colombia",
|
| 195 |
+
"Costa Rica",
|
| 196 |
+
"Cuba",
|
| 197 |
+
"Cabo Verde",
|
| 198 |
+
"Curacao",
|
| 199 |
+
"Cyprus",
|
| 200 |
+
"Czech Republic",
|
| 201 |
+
"Germany",
|
| 202 |
+
"Denmark",
|
| 203 |
+
"Dominica",
|
| 204 |
+
"Dominican Republic",
|
| 205 |
+
"Algeria",
|
| 206 |
+
"Ecuador",
|
| 207 |
+
"Estonia",
|
| 208 |
+
"Egypt",
|
| 209 |
+
"Spain",
|
| 210 |
+
"Ethiopia",
|
| 211 |
+
"Finland",
|
| 212 |
+
"Fiji",
|
| 213 |
+
"Falkland Islands",
|
| 214 |
+
"Faeroe Islands",
|
| 215 |
+
"France",
|
| 216 |
+
"Gabon",
|
| 217 |
+
"United Kingdom",
|
| 218 |
+
"Grenada",
|
| 219 |
+
"Georgia",
|
| 220 |
+
"French Guiana",
|
| 221 |
+
"Guernsey",
|
| 222 |
+
"Ghana",
|
| 223 |
+
"Gibraltar",
|
| 224 |
+
"Greenland",
|
| 225 |
+
"Gambia",
|
| 226 |
+
"Guadeloupe",
|
| 227 |
+
"Greece",
|
| 228 |
+
"South Georgia and South Sandwich Is.",
|
| 229 |
+
"Guatemala",
|
| 230 |
+
"Guam",
|
| 231 |
+
"Guyana",
|
| 232 |
+
"Hong Kong",
|
| 233 |
+
"Honduras",
|
| 234 |
+
"Croatia",
|
| 235 |
+
"Haiti",
|
| 236 |
+
"Hungary",
|
| 237 |
+
"Indonesia",
|
| 238 |
+
"Ireland",
|
| 239 |
+
"Israel",
|
| 240 |
+
"Isle of Man",
|
| 241 |
+
"India",
|
| 242 |
+
"Iraq",
|
| 243 |
+
"Iran",
|
| 244 |
+
"Iceland",
|
| 245 |
+
"Italy",
|
| 246 |
+
"Jersey",
|
| 247 |
+
"Jamaica",
|
| 248 |
+
"Jordan",
|
| 249 |
+
"Japan",
|
| 250 |
+
"Kenya",
|
| 251 |
+
"Kyrgyz Republic",
|
| 252 |
+
"Cambodia",
|
| 253 |
+
"St. Kitts and Nevis",
|
| 254 |
+
"North Korea",
|
| 255 |
+
"South Korea",
|
| 256 |
+
"Kuwait",
|
| 257 |
+
"Cayman Islands",
|
| 258 |
+
"Kazakhstan",
|
| 259 |
+
"Laos",
|
| 260 |
+
"Lebanon",
|
| 261 |
+
"St. Lucia",
|
| 262 |
+
"Liechtenstein",
|
| 263 |
+
"Sri Lanka",
|
| 264 |
+
"Liberia",
|
| 265 |
+
"Lithuania",
|
| 266 |
+
"Luxembourg",
|
| 267 |
+
"Latvia",
|
| 268 |
+
"Libya",
|
| 269 |
+
"Morocco",
|
| 270 |
+
"Monaco",
|
| 271 |
+
"Moldova",
|
| 272 |
+
"Montenegro",
|
| 273 |
+
"Saint-Martin",
|
| 274 |
+
"Madagascar",
|
| 275 |
+
"Macedonia",
|
| 276 |
+
"Mali",
|
| 277 |
+
"Myanmar",
|
| 278 |
+
"Mongolia",
|
| 279 |
+
"Macau",
|
| 280 |
+
"Martinique",
|
| 281 |
+
"Mauritania",
|
| 282 |
+
"Malta",
|
| 283 |
+
"Mauritius",
|
| 284 |
+
"Maldives",
|
| 285 |
+
"Malawi",
|
| 286 |
+
"Mexico",
|
| 287 |
+
"Malaysia",
|
| 288 |
+
"Mozambique",
|
| 289 |
+
"Namibia",
|
| 290 |
+
"New Caledonia",
|
| 291 |
+
"Nigeria",
|
| 292 |
+
"Nicaragua",
|
| 293 |
+
"Netherlands",
|
| 294 |
+
"Norway",
|
| 295 |
+
"Nepal",
|
| 296 |
+
"New Zealand",
|
| 297 |
+
"Oman",
|
| 298 |
+
"Panama",
|
| 299 |
+
"Peru",
|
| 300 |
+
"French Polynesia",
|
| 301 |
+
"Papua New Guinea",
|
| 302 |
+
"Philippines",
|
| 303 |
+
"Pakistan",
|
| 304 |
+
"Poland",
|
| 305 |
+
"Puerto Rico",
|
| 306 |
+
"Palestine",
|
| 307 |
+
"Portugal",
|
| 308 |
+
"Palau",
|
| 309 |
+
"Paraguay",
|
| 310 |
+
"Qatar",
|
| 311 |
+
"Reunion",
|
| 312 |
+
"Romania",
|
| 313 |
+
"Serbia",
|
| 314 |
+
"Russia",
|
| 315 |
+
"Rwanda",
|
| 316 |
+
"Saudi Arabia",
|
| 317 |
+
"Solomon Islands",
|
| 318 |
+
"Seychelles",
|
| 319 |
+
"Sudan",
|
| 320 |
+
"Sweden",
|
| 321 |
+
"Singapore",
|
| 322 |
+
"St. Helena",
|
| 323 |
+
"Slovenia",
|
| 324 |
+
"Svalbard and Jan Mayen Islands",
|
| 325 |
+
"Slovakia",
|
| 326 |
+
"Sierra Leone",
|
| 327 |
+
"San Marino",
|
| 328 |
+
"Senegal",
|
| 329 |
+
"Somalia",
|
| 330 |
+
"South Sudan",
|
| 331 |
+
"El Salvador",
|
| 332 |
+
"Sint Maarten",
|
| 333 |
+
"Syria",
|
| 334 |
+
"Eswatini",
|
| 335 |
+
"Togo",
|
| 336 |
+
"Thailand",
|
| 337 |
+
"Tajikistan",
|
| 338 |
+
"Timor-Leste",
|
| 339 |
+
"Turkmenistan",
|
| 340 |
+
"Tunisia",
|
| 341 |
+
"Tonga",
|
| 342 |
+
"Turkey",
|
| 343 |
+
"Trinidad and Tobago",
|
| 344 |
+
"Taiwan",
|
| 345 |
+
"Tanzania",
|
| 346 |
+
"Ukraine",
|
| 347 |
+
"Uganda",
|
| 348 |
+
"United States",
|
| 349 |
+
"Uruguay",
|
| 350 |
+
"Uzbekistan",
|
| 351 |
+
"Vatican",
|
| 352 |
+
"Venezuela",
|
| 353 |
+
"British Virgin Islands",
|
| 354 |
+
"United States Virgin Islands",
|
| 355 |
+
"Vietnam",
|
| 356 |
+
"Vanuatu",
|
| 357 |
+
"Samoa",
|
| 358 |
+
"Kosovo",
|
| 359 |
+
"Yemen",
|
| 360 |
+
"South Africa",
|
| 361 |
+
"Zambia",
|
| 362 |
+
"Zimbabwe"
|
| 363 |
+
],
|
| 364 |
+
"eurosat": [
|
| 365 |
+
"annual crop land",
|
| 366 |
+
"forest",
|
| 367 |
+
"brushland or shrubland",
|
| 368 |
+
"highway or road",
|
| 369 |
+
"industrial buildings or commercial buildings",
|
| 370 |
+
"pasture land",
|
| 371 |
+
"permanent crop land",
|
| 372 |
+
"residential buildings or homes or apartments",
|
| 373 |
+
"river",
|
| 374 |
+
"lake or sea"
|
| 375 |
+
],
|
| 376 |
+
"fer2013": [
|
| 377 |
+
"angry",
|
| 378 |
+
"disgusted",
|
| 379 |
+
"fearful",
|
| 380 |
+
"happy",
|
| 381 |
+
"neutral",
|
| 382 |
+
"sad",
|
| 383 |
+
"surprised"
|
| 384 |
+
],
|
| 385 |
+
"caltech101": [
|
| 386 |
+
"background",
|
| 387 |
+
"off-center face",
|
| 388 |
+
"centered face",
|
| 389 |
+
"leopard",
|
| 390 |
+
"motorbike",
|
| 391 |
+
"accordion",
|
| 392 |
+
"airplane",
|
| 393 |
+
"anchor",
|
| 394 |
+
"ant",
|
| 395 |
+
"barrel",
|
| 396 |
+
"bass",
|
| 397 |
+
"beaver",
|
| 398 |
+
"binocular",
|
| 399 |
+
"bonsai",
|
| 400 |
+
"brain",
|
| 401 |
+
"brontosaurus",
|
| 402 |
+
"buddha",
|
| 403 |
+
"butterfly",
|
| 404 |
+
"camera",
|
| 405 |
+
"cannon",
|
| 406 |
+
"side of a car",
|
| 407 |
+
"ceiling fan",
|
| 408 |
+
"cellphone",
|
| 409 |
+
"chair",
|
| 410 |
+
"chandelier",
|
| 411 |
+
"body of a cougar cat",
|
| 412 |
+
"face of a cougar cat",
|
| 413 |
+
"crab",
|
| 414 |
+
"crayfish",
|
| 415 |
+
"crocodile",
|
| 416 |
+
"head of a crocodile",
|
| 417 |
+
"cup",
|
| 418 |
+
"dalmatian",
|
| 419 |
+
"dollar bill",
|
| 420 |
+
"dolphin",
|
| 421 |
+
"dragonfly",
|
| 422 |
+
"electric guitar",
|
| 423 |
+
"elephant",
|
| 424 |
+
"emu",
|
| 425 |
+
"euphonium",
|
| 426 |
+
"ewer",
|
| 427 |
+
"ferry",
|
| 428 |
+
"flamingo",
|
| 429 |
+
"head of a flamingo",
|
| 430 |
+
"garfield",
|
| 431 |
+
"gerenuk",
|
| 432 |
+
"gramophone",
|
| 433 |
+
"grand piano",
|
| 434 |
+
"hawksbill",
|
| 435 |
+
"headphone",
|
| 436 |
+
"hedgehog",
|
| 437 |
+
"helicopter",
|
| 438 |
+
"ibis",
|
| 439 |
+
"inline skate",
|
| 440 |
+
"joshua tree",
|
| 441 |
+
"kangaroo",
|
| 442 |
+
"ketch",
|
| 443 |
+
"lamp",
|
| 444 |
+
"laptop",
|
| 445 |
+
"llama",
|
| 446 |
+
"lobster",
|
| 447 |
+
"lotus",
|
| 448 |
+
"mandolin",
|
| 449 |
+
"mayfly",
|
| 450 |
+
"menorah",
|
| 451 |
+
"metronome",
|
| 452 |
+
"minaret",
|
| 453 |
+
"nautilus",
|
| 454 |
+
"octopus",
|
| 455 |
+
"okapi",
|
| 456 |
+
"pagoda",
|
| 457 |
+
"panda",
|
| 458 |
+
"pigeon",
|
| 459 |
+
"pizza",
|
| 460 |
+
"platypus",
|
| 461 |
+
"pyramid",
|
| 462 |
+
"revolver",
|
| 463 |
+
"rhino",
|
| 464 |
+
"rooster",
|
| 465 |
+
"saxophone",
|
| 466 |
+
"schooner",
|
| 467 |
+
"scissors",
|
| 468 |
+
"scorpion",
|
| 469 |
+
"sea horse",
|
| 470 |
+
"snoopy (cartoon beagle)",
|
| 471 |
+
"soccer ball",
|
| 472 |
+
"stapler",
|
| 473 |
+
"starfish",
|
| 474 |
+
"stegosaurus",
|
| 475 |
+
"stop sign",
|
| 476 |
+
"strawberry",
|
| 477 |
+
"sunflower",
|
| 478 |
+
"tick",
|
| 479 |
+
"trilobite",
|
| 480 |
+
"umbrella",
|
| 481 |
+
"watch",
|
| 482 |
+
"water lilly",
|
| 483 |
+
"wheelchair",
|
| 484 |
+
"wild cat",
|
| 485 |
+
"windsor chair",
|
| 486 |
+
"wrench",
|
| 487 |
+
"yin and yang symbol"
|
| 488 |
+
],
|
| 489 |
+
"caltech101_vtab": [
|
| 490 |
+
"accordion",
|
| 491 |
+
"airplane",
|
| 492 |
+
"anchor",
|
| 493 |
+
"ant",
|
| 494 |
+
"background",
|
| 495 |
+
"barrel",
|
| 496 |
+
"bass",
|
| 497 |
+
"beaver",
|
| 498 |
+
"binocular",
|
| 499 |
+
"bonsai",
|
| 500 |
+
"brain",
|
| 501 |
+
"brontosaurus",
|
| 502 |
+
"buddha",
|
| 503 |
+
"butterfly",
|
| 504 |
+
"camera",
|
| 505 |
+
"cannon",
|
| 506 |
+
"side of a car",
|
| 507 |
+
"ceiling fan",
|
| 508 |
+
"cellphone",
|
| 509 |
+
"chair",
|
| 510 |
+
"chandelier",
|
| 511 |
+
"body of a cougar cat",
|
| 512 |
+
"face of a cougar cat",
|
| 513 |
+
"crab",
|
| 514 |
+
"crayfish",
|
| 515 |
+
"crocodile",
|
| 516 |
+
"head of a crocodile",
|
| 517 |
+
"cup",
|
| 518 |
+
"dalmatian",
|
| 519 |
+
"dollar bill",
|
| 520 |
+
"dolphin",
|
| 521 |
+
"dragonfly",
|
| 522 |
+
"electric guitar",
|
| 523 |
+
"elephant",
|
| 524 |
+
"emu",
|
| 525 |
+
"euphonium",
|
| 526 |
+
"ewer",
|
| 527 |
+
"off-center face",
|
| 528 |
+
"centered face",
|
| 529 |
+
"ferry",
|
| 530 |
+
"flamingo",
|
| 531 |
+
"head of a flamingo",
|
| 532 |
+
"garfield",
|
| 533 |
+
"gerenuk",
|
| 534 |
+
"gramophone",
|
| 535 |
+
"grand piano",
|
| 536 |
+
"hawksbill",
|
| 537 |
+
"headphone",
|
| 538 |
+
"hedgehog",
|
| 539 |
+
"helicopter",
|
| 540 |
+
"ibis",
|
| 541 |
+
"inline skate",
|
| 542 |
+
"joshua tree",
|
| 543 |
+
"kangaroo",
|
| 544 |
+
"ketch",
|
| 545 |
+
"lamp",
|
| 546 |
+
"laptop",
|
| 547 |
+
"leopard",
|
| 548 |
+
"llama",
|
| 549 |
+
"lobster",
|
| 550 |
+
"lotus",
|
| 551 |
+
"mandolin",
|
| 552 |
+
"mayfly",
|
| 553 |
+
"menorah",
|
| 554 |
+
"metronome",
|
| 555 |
+
"minaret",
|
| 556 |
+
"motorbike",
|
| 557 |
+
"nautilus",
|
| 558 |
+
"octopus",
|
| 559 |
+
"okapi",
|
| 560 |
+
"pagoda",
|
| 561 |
+
"panda",
|
| 562 |
+
"pigeon",
|
| 563 |
+
"pizza",
|
| 564 |
+
"platypus",
|
| 565 |
+
"pyramid",
|
| 566 |
+
"revolver",
|
| 567 |
+
"rhino",
|
| 568 |
+
"rooster",
|
| 569 |
+
"saxophone",
|
| 570 |
+
"schooner",
|
| 571 |
+
"scissors",
|
| 572 |
+
"scorpion",
|
| 573 |
+
"sea horse",
|
| 574 |
+
"snoopy (cartoon beagle)",
|
| 575 |
+
"soccer ball",
|
| 576 |
+
"stapler",
|
| 577 |
+
"starfish",
|
| 578 |
+
"stegosaurus",
|
| 579 |
+
"stop sign",
|
| 580 |
+
"strawberry",
|
| 581 |
+
"sunflower",
|
| 582 |
+
"tick",
|
| 583 |
+
"trilobite",
|
| 584 |
+
"umbrella",
|
| 585 |
+
"watch",
|
| 586 |
+
"water lilly",
|
| 587 |
+
"wheelchair",
|
| 588 |
+
"wild cat",
|
| 589 |
+
"windsor chair",
|
| 590 |
+
"wrench",
|
| 591 |
+
"yin and yang symbol"
|
| 592 |
+
],
|
| 593 |
+
"imagenet1k": [
|
| 594 |
+
"tench",
|
| 595 |
+
"goldfish",
|
| 596 |
+
"great white shark",
|
| 597 |
+
"tiger shark",
|
| 598 |
+
"hammerhead shark",
|
| 599 |
+
"electric ray",
|
| 600 |
+
"stingray",
|
| 601 |
+
"rooster",
|
| 602 |
+
"hen",
|
| 603 |
+
"ostrich",
|
| 604 |
+
"brambling",
|
| 605 |
+
"goldfinch",
|
| 606 |
+
"house finch",
|
| 607 |
+
"junco",
|
| 608 |
+
"indigo bunting",
|
| 609 |
+
"American robin",
|
| 610 |
+
"bulbul",
|
| 611 |
+
"jay",
|
| 612 |
+
"magpie",
|
| 613 |
+
"chickadee",
|
| 614 |
+
"American dipper",
|
| 615 |
+
"kite (bird of prey)",
|
| 616 |
+
"bald eagle",
|
| 617 |
+
"vulture",
|
| 618 |
+
"great grey owl",
|
| 619 |
+
"fire salamander",
|
| 620 |
+
"smooth newt",
|
| 621 |
+
"newt",
|
| 622 |
+
"spotted salamander",
|
| 623 |
+
"axolotl",
|
| 624 |
+
"American bullfrog",
|
| 625 |
+
"tree frog",
|
| 626 |
+
"tailed frog",
|
| 627 |
+
"loggerhead sea turtle",
|
| 628 |
+
"leatherback sea turtle",
|
| 629 |
+
"mud turtle",
|
| 630 |
+
"terrapin",
|
| 631 |
+
"box turtle",
|
| 632 |
+
"banded gecko",
|
| 633 |
+
"green iguana",
|
| 634 |
+
"Carolina anole",
|
| 635 |
+
"desert grassland whiptail lizard",
|
| 636 |
+
"agama",
|
| 637 |
+
"frilled-necked lizard",
|
| 638 |
+
"alligator lizard",
|
| 639 |
+
"Gila monster",
|
| 640 |
+
"European green lizard",
|
| 641 |
+
"chameleon",
|
| 642 |
+
"Komodo dragon",
|
| 643 |
+
"Nile crocodile",
|
| 644 |
+
"American alligator",
|
| 645 |
+
"triceratops",
|
| 646 |
+
"worm snake",
|
| 647 |
+
"ring-necked snake",
|
| 648 |
+
"eastern hog-nosed snake",
|
| 649 |
+
"smooth green snake",
|
| 650 |
+
"kingsnake",
|
| 651 |
+
"garter snake",
|
| 652 |
+
"water snake",
|
| 653 |
+
"vine snake",
|
| 654 |
+
"night snake",
|
| 655 |
+
"boa constrictor",
|
| 656 |
+
"African rock python",
|
| 657 |
+
"Indian cobra",
|
| 658 |
+
"green mamba",
|
| 659 |
+
"sea snake",
|
| 660 |
+
"Saharan horned viper",
|
| 661 |
+
"eastern diamondback rattlesnake",
|
| 662 |
+
"sidewinder rattlesnake",
|
| 663 |
+
"trilobite",
|
| 664 |
+
"harvestman",
|
| 665 |
+
"scorpion",
|
| 666 |
+
"yellow garden spider",
|
| 667 |
+
"barn spider",
|
| 668 |
+
"European garden spider",
|
| 669 |
+
"southern black widow",
|
| 670 |
+
"tarantula",
|
| 671 |
+
"wolf spider",
|
| 672 |
+
"tick",
|
| 673 |
+
"centipede",
|
| 674 |
+
"black grouse",
|
| 675 |
+
"ptarmigan",
|
| 676 |
+
"ruffed grouse",
|
| 677 |
+
"prairie grouse",
|
| 678 |
+
"peafowl",
|
| 679 |
+
"quail",
|
| 680 |
+
"partridge",
|
| 681 |
+
"african grey parrot",
|
| 682 |
+
"macaw",
|
| 683 |
+
"sulphur-crested cockatoo",
|
| 684 |
+
"lorikeet",
|
| 685 |
+
"coucal",
|
| 686 |
+
"bee eater",
|
| 687 |
+
"hornbill",
|
| 688 |
+
"hummingbird",
|
| 689 |
+
"jacamar",
|
| 690 |
+
"toucan",
|
| 691 |
+
"duck",
|
| 692 |
+
"red-breasted merganser",
|
| 693 |
+
"goose",
|
| 694 |
+
"black swan",
|
| 695 |
+
"tusker",
|
| 696 |
+
"echidna",
|
| 697 |
+
"platypus",
|
| 698 |
+
"wallaby",
|
| 699 |
+
"koala",
|
| 700 |
+
"wombat",
|
| 701 |
+
"jellyfish",
|
| 702 |
+
"sea anemone",
|
| 703 |
+
"brain coral",
|
| 704 |
+
"flatworm",
|
| 705 |
+
"nematode",
|
| 706 |
+
"conch",
|
| 707 |
+
"snail",
|
| 708 |
+
"slug",
|
| 709 |
+
"sea slug",
|
| 710 |
+
"chiton",
|
| 711 |
+
"chambered nautilus",
|
| 712 |
+
"Dungeness crab",
|
| 713 |
+
"rock crab",
|
| 714 |
+
"fiddler crab",
|
| 715 |
+
"red king crab",
|
| 716 |
+
"American lobster",
|
| 717 |
+
"spiny lobster",
|
| 718 |
+
"crayfish",
|
| 719 |
+
"hermit crab",
|
| 720 |
+
"isopod",
|
| 721 |
+
"white stork",
|
| 722 |
+
"black stork",
|
| 723 |
+
"spoonbill",
|
| 724 |
+
"flamingo",
|
| 725 |
+
"little blue heron",
|
| 726 |
+
"great egret",
|
| 727 |
+
"bittern bird",
|
| 728 |
+
"crane bird",
|
| 729 |
+
"limpkin",
|
| 730 |
+
"common gallinule",
|
| 731 |
+
"American coot",
|
| 732 |
+
"bustard",
|
| 733 |
+
"ruddy turnstone",
|
| 734 |
+
"dunlin",
|
| 735 |
+
"common redshank",
|
| 736 |
+
"dowitcher",
|
| 737 |
+
"oystercatcher",
|
| 738 |
+
"pelican",
|
| 739 |
+
"king penguin",
|
| 740 |
+
"albatross",
|
| 741 |
+
"grey whale",
|
| 742 |
+
"killer whale",
|
| 743 |
+
"dugong",
|
| 744 |
+
"sea lion",
|
| 745 |
+
"Chihuahua",
|
| 746 |
+
"Japanese Chin",
|
| 747 |
+
"Maltese",
|
| 748 |
+
"Pekingese",
|
| 749 |
+
"Shih Tzu",
|
| 750 |
+
"King Charles Spaniel",
|
| 751 |
+
"Papillon",
|
| 752 |
+
"toy terrier",
|
| 753 |
+
"Rhodesian Ridgeback",
|
| 754 |
+
"Afghan Hound",
|
| 755 |
+
"Basset Hound",
|
| 756 |
+
"Beagle",
|
| 757 |
+
"Bloodhound",
|
| 758 |
+
"Bluetick Coonhound",
|
| 759 |
+
"Black and Tan Coonhound",
|
| 760 |
+
"Treeing Walker Coonhound",
|
| 761 |
+
"English foxhound",
|
| 762 |
+
"Redbone Coonhound",
|
| 763 |
+
"borzoi",
|
| 764 |
+
"Irish Wolfhound",
|
| 765 |
+
"Italian Greyhound",
|
| 766 |
+
"Whippet",
|
| 767 |
+
"Ibizan Hound",
|
| 768 |
+
"Norwegian Elkhound",
|
| 769 |
+
"Otterhound",
|
| 770 |
+
"Saluki",
|
| 771 |
+
"Scottish Deerhound",
|
| 772 |
+
"Weimaraner",
|
| 773 |
+
"Staffordshire Bull Terrier",
|
| 774 |
+
"American Staffordshire Terrier",
|
| 775 |
+
"Bedlington Terrier",
|
| 776 |
+
"Border Terrier",
|
| 777 |
+
"Kerry Blue Terrier",
|
| 778 |
+
"Irish Terrier",
|
| 779 |
+
"Norfolk Terrier",
|
| 780 |
+
"Norwich Terrier",
|
| 781 |
+
"Yorkshire Terrier",
|
| 782 |
+
"Wire Fox Terrier",
|
| 783 |
+
"Lakeland Terrier",
|
| 784 |
+
"Sealyham Terrier",
|
| 785 |
+
"Airedale Terrier",
|
| 786 |
+
"Cairn Terrier",
|
| 787 |
+
"Australian Terrier",
|
| 788 |
+
"Dandie Dinmont Terrier",
|
| 789 |
+
"Boston Terrier",
|
| 790 |
+
"Miniature Schnauzer",
|
| 791 |
+
"Giant Schnauzer",
|
| 792 |
+
"Standard Schnauzer",
|
| 793 |
+
"Scottish Terrier",
|
| 794 |
+
"Tibetan Terrier",
|
| 795 |
+
"Australian Silky Terrier",
|
| 796 |
+
"Soft-coated Wheaten Terrier",
|
| 797 |
+
"West Highland White Terrier",
|
| 798 |
+
"Lhasa Apso",
|
| 799 |
+
"Flat-Coated Retriever",
|
| 800 |
+
"Curly-coated Retriever",
|
| 801 |
+
"Golden Retriever",
|
| 802 |
+
"Labrador Retriever",
|
| 803 |
+
"Chesapeake Bay Retriever",
|
| 804 |
+
"German Shorthaired Pointer",
|
| 805 |
+
"Vizsla",
|
| 806 |
+
"English Setter",
|
| 807 |
+
"Irish Setter",
|
| 808 |
+
"Gordon Setter",
|
| 809 |
+
"Brittany dog",
|
| 810 |
+
"Clumber Spaniel",
|
| 811 |
+
"English Springer Spaniel",
|
| 812 |
+
"Welsh Springer Spaniel",
|
| 813 |
+
"Cocker Spaniel",
|
| 814 |
+
"Sussex Spaniel",
|
| 815 |
+
"Irish Water Spaniel",
|
| 816 |
+
"Kuvasz",
|
| 817 |
+
"Schipperke",
|
| 818 |
+
"Groenendael dog",
|
| 819 |
+
"Malinois",
|
| 820 |
+
"Briard",
|
| 821 |
+
"Australian Kelpie",
|
| 822 |
+
"Komondor",
|
| 823 |
+
"Old English Sheepdog",
|
| 824 |
+
"Shetland Sheepdog",
|
| 825 |
+
"collie",
|
| 826 |
+
"Border Collie",
|
| 827 |
+
"Bouvier des Flandres dog",
|
| 828 |
+
"Rottweiler",
|
| 829 |
+
"German Shepherd Dog",
|
| 830 |
+
"Dobermann",
|
| 831 |
+
"Miniature Pinscher",
|
| 832 |
+
"Greater Swiss Mountain Dog",
|
| 833 |
+
"Bernese Mountain Dog",
|
| 834 |
+
"Appenzeller Sennenhund",
|
| 835 |
+
"Entlebucher Sennenhund",
|
| 836 |
+
"Boxer",
|
| 837 |
+
"Bullmastiff",
|
| 838 |
+
"Tibetan Mastiff",
|
| 839 |
+
"French Bulldog",
|
| 840 |
+
"Great Dane",
|
| 841 |
+
"St. Bernard",
|
| 842 |
+
"husky",
|
| 843 |
+
"Alaskan Malamute",
|
| 844 |
+
"Siberian Husky",
|
| 845 |
+
"Dalmatian",
|
| 846 |
+
"Affenpinscher",
|
| 847 |
+
"Basenji",
|
| 848 |
+
"pug",
|
| 849 |
+
"Leonberger",
|
| 850 |
+
"Newfoundland dog",
|
| 851 |
+
"Great Pyrenees dog",
|
| 852 |
+
"Samoyed",
|
| 853 |
+
"Pomeranian",
|
| 854 |
+
"Chow Chow",
|
| 855 |
+
"Keeshond",
|
| 856 |
+
"brussels griffon",
|
| 857 |
+
"Pembroke Welsh Corgi",
|
| 858 |
+
"Cardigan Welsh Corgi",
|
| 859 |
+
"Toy Poodle",
|
| 860 |
+
"Miniature Poodle",
|
| 861 |
+
"Standard Poodle",
|
| 862 |
+
"Mexican hairless dog (xoloitzcuintli)",
|
| 863 |
+
"grey wolf",
|
| 864 |
+
"Alaskan tundra wolf",
|
| 865 |
+
"red wolf or maned wolf",
|
| 866 |
+
"coyote",
|
| 867 |
+
"dingo",
|
| 868 |
+
"dhole",
|
| 869 |
+
"African wild dog",
|
| 870 |
+
"hyena",
|
| 871 |
+
"red fox",
|
| 872 |
+
"kit fox",
|
| 873 |
+
"Arctic fox",
|
| 874 |
+
"grey fox",
|
| 875 |
+
"tabby cat",
|
| 876 |
+
"tiger cat",
|
| 877 |
+
"Persian cat",
|
| 878 |
+
"Siamese cat",
|
| 879 |
+
"Egyptian Mau",
|
| 880 |
+
"cougar",
|
| 881 |
+
"lynx",
|
| 882 |
+
"leopard",
|
| 883 |
+
"snow leopard",
|
| 884 |
+
"jaguar",
|
| 885 |
+
"lion",
|
| 886 |
+
"tiger",
|
| 887 |
+
"cheetah",
|
| 888 |
+
"brown bear",
|
| 889 |
+
"American black bear",
|
| 890 |
+
"polar bear",
|
| 891 |
+
"sloth bear",
|
| 892 |
+
"mongoose",
|
| 893 |
+
"meerkat",
|
| 894 |
+
"tiger beetle",
|
| 895 |
+
"ladybug",
|
| 896 |
+
"ground beetle",
|
| 897 |
+
"longhorn beetle",
|
| 898 |
+
"leaf beetle",
|
| 899 |
+
"dung beetle",
|
| 900 |
+
"rhinoceros beetle",
|
| 901 |
+
"weevil",
|
| 902 |
+
"fly",
|
| 903 |
+
"bee",
|
| 904 |
+
"ant",
|
| 905 |
+
"grasshopper",
|
| 906 |
+
"cricket insect",
|
| 907 |
+
"stick insect",
|
| 908 |
+
"cockroach",
|
| 909 |
+
"praying mantis",
|
| 910 |
+
"cicada",
|
| 911 |
+
"leafhopper",
|
| 912 |
+
"lacewing",
|
| 913 |
+
"dragonfly",
|
| 914 |
+
"damselfly",
|
| 915 |
+
"red admiral butterfly",
|
| 916 |
+
"ringlet butterfly",
|
| 917 |
+
"monarch butterfly",
|
| 918 |
+
"small white butterfly",
|
| 919 |
+
"sulphur butterfly",
|
| 920 |
+
"gossamer-winged butterfly",
|
| 921 |
+
"starfish",
|
| 922 |
+
"sea urchin",
|
| 923 |
+
"sea cucumber",
|
| 924 |
+
"cottontail rabbit",
|
| 925 |
+
"hare",
|
| 926 |
+
"Angora rabbit",
|
| 927 |
+
"hamster",
|
| 928 |
+
"porcupine",
|
| 929 |
+
"fox squirrel",
|
| 930 |
+
"marmot",
|
| 931 |
+
"beaver",
|
| 932 |
+
"guinea pig",
|
| 933 |
+
"common sorrel horse",
|
| 934 |
+
"zebra",
|
| 935 |
+
"pig",
|
| 936 |
+
"wild boar",
|
| 937 |
+
"warthog",
|
| 938 |
+
"hippopotamus",
|
| 939 |
+
"ox",
|
| 940 |
+
"water buffalo",
|
| 941 |
+
"bison",
|
| 942 |
+
"ram (adult male sheep)",
|
| 943 |
+
"bighorn sheep",
|
| 944 |
+
"Alpine ibex",
|
| 945 |
+
"hartebeest",
|
| 946 |
+
"impala (antelope)",
|
| 947 |
+
"gazelle",
|
| 948 |
+
"arabian camel",
|
| 949 |
+
"llama",
|
| 950 |
+
"weasel",
|
| 951 |
+
"mink",
|
| 952 |
+
"European polecat",
|
| 953 |
+
"black-footed ferret",
|
| 954 |
+
"otter",
|
| 955 |
+
"skunk",
|
| 956 |
+
"badger",
|
| 957 |
+
"armadillo",
|
| 958 |
+
"three-toed sloth",
|
| 959 |
+
"orangutan",
|
| 960 |
+
"gorilla",
|
| 961 |
+
"chimpanzee",
|
| 962 |
+
"gibbon",
|
| 963 |
+
"siamang",
|
| 964 |
+
"guenon",
|
| 965 |
+
"patas monkey",
|
| 966 |
+
"baboon",
|
| 967 |
+
"macaque",
|
| 968 |
+
"langur",
|
| 969 |
+
"black-and-white colobus",
|
| 970 |
+
"proboscis monkey",
|
| 971 |
+
"marmoset",
|
| 972 |
+
"white-headed capuchin",
|
| 973 |
+
"howler monkey",
|
| 974 |
+
"titi monkey",
|
| 975 |
+
"Geoffroy's spider monkey",
|
| 976 |
+
"common squirrel monkey",
|
| 977 |
+
"ring-tailed lemur",
|
| 978 |
+
"indri",
|
| 979 |
+
"Asian elephant",
|
| 980 |
+
"African bush elephant",
|
| 981 |
+
"red panda",
|
| 982 |
+
"giant panda",
|
| 983 |
+
"snoek fish",
|
| 984 |
+
"eel",
|
| 985 |
+
"silver salmon",
|
| 986 |
+
"rock beauty fish",
|
| 987 |
+
"clownfish",
|
| 988 |
+
"sturgeon",
|
| 989 |
+
"gar fish",
|
| 990 |
+
"lionfish",
|
| 991 |
+
"pufferfish",
|
| 992 |
+
"abacus",
|
| 993 |
+
"abaya",
|
| 994 |
+
"academic gown",
|
| 995 |
+
"accordion",
|
| 996 |
+
"acoustic guitar",
|
| 997 |
+
"aircraft carrier",
|
| 998 |
+
"airliner",
|
| 999 |
+
"airship",
|
| 1000 |
+
"altar",
|
| 1001 |
+
"ambulance",
|
| 1002 |
+
"amphibious vehicle",
|
| 1003 |
+
"analog clock",
|
| 1004 |
+
"apiary",
|
| 1005 |
+
"apron",
|
| 1006 |
+
"trash can",
|
| 1007 |
+
"assault rifle",
|
| 1008 |
+
"backpack",
|
| 1009 |
+
"bakery",
|
| 1010 |
+
"balance beam",
|
| 1011 |
+
"balloon",
|
| 1012 |
+
"ballpoint pen",
|
| 1013 |
+
"Band-Aid",
|
| 1014 |
+
"banjo",
|
| 1015 |
+
"baluster / handrail",
|
| 1016 |
+
"barbell",
|
| 1017 |
+
"barber chair",
|
| 1018 |
+
"barbershop",
|
| 1019 |
+
"barn",
|
| 1020 |
+
"barometer",
|
| 1021 |
+
"barrel",
|
| 1022 |
+
"wheelbarrow",
|
| 1023 |
+
"baseball",
|
| 1024 |
+
"basketball",
|
| 1025 |
+
"bassinet",
|
| 1026 |
+
"bassoon",
|
| 1027 |
+
"swimming cap",
|
| 1028 |
+
"bath towel",
|
| 1029 |
+
"bathtub",
|
| 1030 |
+
"station wagon",
|
| 1031 |
+
"lighthouse",
|
| 1032 |
+
"beaker",
|
| 1033 |
+
"military hat (bearskin or shako)",
|
| 1034 |
+
"beer bottle",
|
| 1035 |
+
"beer glass",
|
| 1036 |
+
"bell tower",
|
| 1037 |
+
"baby bib",
|
| 1038 |
+
"tandem bicycle",
|
| 1039 |
+
"bikini",
|
| 1040 |
+
"ring binder",
|
| 1041 |
+
"binoculars",
|
| 1042 |
+
"birdhouse",
|
| 1043 |
+
"boathouse",
|
| 1044 |
+
"bobsleigh",
|
| 1045 |
+
"bolo tie",
|
| 1046 |
+
"poke bonnet",
|
| 1047 |
+
"bookcase",
|
| 1048 |
+
"bookstore",
|
| 1049 |
+
"bottle cap",
|
| 1050 |
+
"hunting bow",
|
| 1051 |
+
"bow tie",
|
| 1052 |
+
"brass memorial plaque",
|
| 1053 |
+
"bra",
|
| 1054 |
+
"breakwater",
|
| 1055 |
+
"breastplate",
|
| 1056 |
+
"broom",
|
| 1057 |
+
"bucket",
|
| 1058 |
+
"buckle",
|
| 1059 |
+
"bulletproof vest",
|
| 1060 |
+
"high-speed train",
|
| 1061 |
+
"butcher shop",
|
| 1062 |
+
"taxicab",
|
| 1063 |
+
"cauldron",
|
| 1064 |
+
"candle",
|
| 1065 |
+
"cannon",
|
| 1066 |
+
"canoe",
|
| 1067 |
+
"can opener",
|
| 1068 |
+
"cardigan",
|
| 1069 |
+
"car mirror",
|
| 1070 |
+
"carousel",
|
| 1071 |
+
"tool kit",
|
| 1072 |
+
"cardboard box / carton",
|
| 1073 |
+
"car wheel",
|
| 1074 |
+
"automated teller machine",
|
| 1075 |
+
"cassette",
|
| 1076 |
+
"cassette player",
|
| 1077 |
+
"castle",
|
| 1078 |
+
"catamaran",
|
| 1079 |
+
"CD player",
|
| 1080 |
+
"cello",
|
| 1081 |
+
"mobile phone",
|
| 1082 |
+
"chain",
|
| 1083 |
+
"chain-link fence",
|
| 1084 |
+
"chain mail",
|
| 1085 |
+
"chainsaw",
|
| 1086 |
+
"storage chest",
|
| 1087 |
+
"chiffonier",
|
| 1088 |
+
"bell or wind chime",
|
| 1089 |
+
"china cabinet",
|
| 1090 |
+
"Christmas stocking",
|
| 1091 |
+
"church",
|
| 1092 |
+
"movie theater",
|
| 1093 |
+
"cleaver",
|
| 1094 |
+
"cliff dwelling",
|
| 1095 |
+
"cloak",
|
| 1096 |
+
"clogs",
|
| 1097 |
+
"cocktail shaker",
|
| 1098 |
+
"coffee mug",
|
| 1099 |
+
"coffeemaker",
|
| 1100 |
+
"spiral or coil",
|
| 1101 |
+
"combination lock",
|
| 1102 |
+
"computer keyboard",
|
| 1103 |
+
"candy store",
|
| 1104 |
+
"container ship",
|
| 1105 |
+
"convertible",
|
| 1106 |
+
"corkscrew",
|
| 1107 |
+
"cornet",
|
| 1108 |
+
"cowboy boot",
|
| 1109 |
+
"cowboy hat",
|
| 1110 |
+
"cradle",
|
| 1111 |
+
"construction crane",
|
| 1112 |
+
"crash helmet",
|
| 1113 |
+
"crate",
|
| 1114 |
+
"infant bed",
|
| 1115 |
+
"Crock Pot",
|
| 1116 |
+
"croquet ball",
|
| 1117 |
+
"crutch",
|
| 1118 |
+
"cuirass",
|
| 1119 |
+
"dam",
|
| 1120 |
+
"desk",
|
| 1121 |
+
"desktop computer",
|
| 1122 |
+
"rotary dial telephone",
|
| 1123 |
+
"diaper",
|
| 1124 |
+
"digital clock",
|
| 1125 |
+
"digital watch",
|
| 1126 |
+
"dining table",
|
| 1127 |
+
"dishcloth",
|
| 1128 |
+
"dishwasher",
|
| 1129 |
+
"disc brake",
|
| 1130 |
+
"dock",
|
| 1131 |
+
"dog sled",
|
| 1132 |
+
"dome",
|
| 1133 |
+
"doormat",
|
| 1134 |
+
"drilling rig",
|
| 1135 |
+
"drum",
|
| 1136 |
+
"drumstick",
|
| 1137 |
+
"dumbbell",
|
| 1138 |
+
"Dutch oven",
|
| 1139 |
+
"electric fan",
|
| 1140 |
+
"electric guitar",
|
| 1141 |
+
"electric locomotive",
|
| 1142 |
+
"entertainment center",
|
| 1143 |
+
"envelope",
|
| 1144 |
+
"espresso machine",
|
| 1145 |
+
"face powder",
|
| 1146 |
+
"feather boa",
|
| 1147 |
+
"filing cabinet",
|
| 1148 |
+
"fireboat",
|
| 1149 |
+
"fire truck",
|
| 1150 |
+
"fire screen",
|
| 1151 |
+
"flagpole",
|
| 1152 |
+
"flute",
|
| 1153 |
+
"folding chair",
|
| 1154 |
+
"football helmet",
|
| 1155 |
+
"forklift",
|
| 1156 |
+
"fountain",
|
| 1157 |
+
"fountain pen",
|
| 1158 |
+
"four-poster bed",
|
| 1159 |
+
"freight car",
|
| 1160 |
+
"French horn",
|
| 1161 |
+
"frying pan",
|
| 1162 |
+
"fur coat",
|
| 1163 |
+
"garbage truck",
|
| 1164 |
+
"gas mask or respirator",
|
| 1165 |
+
"gas pump",
|
| 1166 |
+
"goblet",
|
| 1167 |
+
"go-kart",
|
| 1168 |
+
"golf ball",
|
| 1169 |
+
"golf cart",
|
| 1170 |
+
"gondola",
|
| 1171 |
+
"gong",
|
| 1172 |
+
"gown",
|
| 1173 |
+
"grand piano",
|
| 1174 |
+
"greenhouse",
|
| 1175 |
+
"radiator grille",
|
| 1176 |
+
"grocery store",
|
| 1177 |
+
"guillotine",
|
| 1178 |
+
"hair clip",
|
| 1179 |
+
"hair spray",
|
| 1180 |
+
"half-track",
|
| 1181 |
+
"hammer",
|
| 1182 |
+
"hamper",
|
| 1183 |
+
"hair dryer",
|
| 1184 |
+
"hand-held computer",
|
| 1185 |
+
"handkerchief",
|
| 1186 |
+
"hard disk drive",
|
| 1187 |
+
"harmonica",
|
| 1188 |
+
"harp",
|
| 1189 |
+
"combine harvester",
|
| 1190 |
+
"hatchet",
|
| 1191 |
+
"holster",
|
| 1192 |
+
"home theater",
|
| 1193 |
+
"honeycomb",
|
| 1194 |
+
"hook",
|
| 1195 |
+
"hoop skirt",
|
| 1196 |
+
"gymnastic horizontal bar",
|
| 1197 |
+
"horse-drawn vehicle",
|
| 1198 |
+
"hourglass",
|
| 1199 |
+
"iPod",
|
| 1200 |
+
"clothes iron",
|
| 1201 |
+
"carved pumpkin",
|
| 1202 |
+
"jeans",
|
| 1203 |
+
"jeep",
|
| 1204 |
+
"T-shirt",
|
| 1205 |
+
"jigsaw puzzle",
|
| 1206 |
+
"rickshaw",
|
| 1207 |
+
"joystick",
|
| 1208 |
+
"kimono",
|
| 1209 |
+
"knee pad",
|
| 1210 |
+
"knot",
|
| 1211 |
+
"lab coat",
|
| 1212 |
+
"ladle",
|
| 1213 |
+
"lampshade",
|
| 1214 |
+
"laptop computer",
|
| 1215 |
+
"lawn mower",
|
| 1216 |
+
"lens cap",
|
| 1217 |
+
"letter opener",
|
| 1218 |
+
"library",
|
| 1219 |
+
"lifeboat",
|
| 1220 |
+
"lighter",
|
| 1221 |
+
"limousine",
|
| 1222 |
+
"ocean liner",
|
| 1223 |
+
"lipstick",
|
| 1224 |
+
"slip-on shoe",
|
| 1225 |
+
"lotion",
|
| 1226 |
+
"music speaker",
|
| 1227 |
+
"loupe magnifying glass",
|
| 1228 |
+
"sawmill",
|
| 1229 |
+
"magnetic compass",
|
| 1230 |
+
"messenger bag",
|
| 1231 |
+
"mailbox",
|
| 1232 |
+
"tights",
|
| 1233 |
+
"one-piece bathing suit",
|
| 1234 |
+
"manhole cover",
|
| 1235 |
+
"maraca",
|
| 1236 |
+
"marimba",
|
| 1237 |
+
"mask",
|
| 1238 |
+
"matchstick",
|
| 1239 |
+
"maypole",
|
| 1240 |
+
"maze",
|
| 1241 |
+
"measuring cup",
|
| 1242 |
+
"medicine cabinet",
|
| 1243 |
+
"megalith",
|
| 1244 |
+
"microphone",
|
| 1245 |
+
"microwave oven",
|
| 1246 |
+
"military uniform",
|
| 1247 |
+
"milk can",
|
| 1248 |
+
"minibus",
|
| 1249 |
+
"miniskirt",
|
| 1250 |
+
"minivan",
|
| 1251 |
+
"missile",
|
| 1252 |
+
"mitten",
|
| 1253 |
+
"mixing bowl",
|
| 1254 |
+
"mobile home",
|
| 1255 |
+
"ford model t",
|
| 1256 |
+
"modem",
|
| 1257 |
+
"monastery",
|
| 1258 |
+
"monitor",
|
| 1259 |
+
"moped",
|
| 1260 |
+
"mortar and pestle",
|
| 1261 |
+
"graduation cap",
|
| 1262 |
+
"mosque",
|
| 1263 |
+
"mosquito net",
|
| 1264 |
+
"vespa",
|
| 1265 |
+
"mountain bike",
|
| 1266 |
+
"tent",
|
| 1267 |
+
"computer mouse",
|
| 1268 |
+
"mousetrap",
|
| 1269 |
+
"moving van",
|
| 1270 |
+
"muzzle",
|
| 1271 |
+
"metal nail",
|
| 1272 |
+
"neck brace",
|
| 1273 |
+
"necklace",
|
| 1274 |
+
"baby pacifier",
|
| 1275 |
+
"notebook computer",
|
| 1276 |
+
"obelisk",
|
| 1277 |
+
"oboe",
|
| 1278 |
+
"ocarina",
|
| 1279 |
+
"odometer",
|
| 1280 |
+
"oil filter",
|
| 1281 |
+
"pipe organ",
|
| 1282 |
+
"oscilloscope",
|
| 1283 |
+
"overskirt",
|
| 1284 |
+
"bullock cart",
|
| 1285 |
+
"oxygen mask",
|
| 1286 |
+
"product packet / packaging",
|
| 1287 |
+
"paddle",
|
| 1288 |
+
"paddle wheel",
|
| 1289 |
+
"padlock",
|
| 1290 |
+
"paintbrush",
|
| 1291 |
+
"pajamas",
|
| 1292 |
+
"palace",
|
| 1293 |
+
"pan flute",
|
| 1294 |
+
"paper towel",
|
| 1295 |
+
"parachute",
|
| 1296 |
+
"parallel bars",
|
| 1297 |
+
"park bench",
|
| 1298 |
+
"parking meter",
|
| 1299 |
+
"railroad car",
|
| 1300 |
+
"patio",
|
| 1301 |
+
"payphone",
|
| 1302 |
+
"pedestal",
|
| 1303 |
+
"pencil case",
|
| 1304 |
+
"pencil sharpener",
|
| 1305 |
+
"perfume",
|
| 1306 |
+
"Petri dish",
|
| 1307 |
+
"photocopier",
|
| 1308 |
+
"plectrum",
|
| 1309 |
+
"Pickelhaube",
|
| 1310 |
+
"picket fence",
|
| 1311 |
+
"pickup truck",
|
| 1312 |
+
"pier",
|
| 1313 |
+
"piggy bank",
|
| 1314 |
+
"pill bottle",
|
| 1315 |
+
"pillow",
|
| 1316 |
+
"ping-pong ball",
|
| 1317 |
+
"pinwheel",
|
| 1318 |
+
"pirate ship",
|
| 1319 |
+
"drink pitcher",
|
| 1320 |
+
"block plane",
|
| 1321 |
+
"planetarium",
|
| 1322 |
+
"plastic bag",
|
| 1323 |
+
"plate rack",
|
| 1324 |
+
"farm plow",
|
| 1325 |
+
"plunger",
|
| 1326 |
+
"Polaroid camera",
|
| 1327 |
+
"pole",
|
| 1328 |
+
"police van",
|
| 1329 |
+
"poncho",
|
| 1330 |
+
"pool table",
|
| 1331 |
+
"soda bottle",
|
| 1332 |
+
"plant pot",
|
| 1333 |
+
"potter's wheel",
|
| 1334 |
+
"power drill",
|
| 1335 |
+
"prayer rug",
|
| 1336 |
+
"printer",
|
| 1337 |
+
"prison",
|
| 1338 |
+
"missile",
|
| 1339 |
+
"projector",
|
| 1340 |
+
"hockey puck",
|
| 1341 |
+
"punching bag",
|
| 1342 |
+
"purse",
|
| 1343 |
+
"quill",
|
| 1344 |
+
"quilt",
|
| 1345 |
+
"race car",
|
| 1346 |
+
"racket",
|
| 1347 |
+
"radiator",
|
| 1348 |
+
"radio",
|
| 1349 |
+
"radio telescope",
|
| 1350 |
+
"rain barrel",
|
| 1351 |
+
"recreational vehicle",
|
| 1352 |
+
"fishing casting reel",
|
| 1353 |
+
"reflex camera",
|
| 1354 |
+
"refrigerator",
|
| 1355 |
+
"remote control",
|
| 1356 |
+
"restaurant",
|
| 1357 |
+
"revolver",
|
| 1358 |
+
"rifle",
|
| 1359 |
+
"rocking chair",
|
| 1360 |
+
"rotisserie",
|
| 1361 |
+
"eraser",
|
| 1362 |
+
"rugby ball",
|
| 1363 |
+
"ruler measuring stick",
|
| 1364 |
+
"sneaker",
|
| 1365 |
+
"safe",
|
| 1366 |
+
"safety pin",
|
| 1367 |
+
"salt shaker",
|
| 1368 |
+
"sandal",
|
| 1369 |
+
"sarong",
|
| 1370 |
+
"saxophone",
|
| 1371 |
+
"scabbard",
|
| 1372 |
+
"weighing scale",
|
| 1373 |
+
"school bus",
|
| 1374 |
+
"schooner",
|
| 1375 |
+
"scoreboard",
|
| 1376 |
+
"CRT monitor",
|
| 1377 |
+
"screw",
|
| 1378 |
+
"screwdriver",
|
| 1379 |
+
"seat belt",
|
| 1380 |
+
"sewing machine",
|
| 1381 |
+
"shield",
|
| 1382 |
+
"shoe store",
|
| 1383 |
+
"shoji screen / room divider",
|
| 1384 |
+
"shopping basket",
|
| 1385 |
+
"shopping cart",
|
| 1386 |
+
"shovel",
|
| 1387 |
+
"shower cap",
|
| 1388 |
+
"shower curtain",
|
| 1389 |
+
"ski",
|
| 1390 |
+
"balaclava ski mask",
|
| 1391 |
+
"sleeping bag",
|
| 1392 |
+
"slide rule",
|
| 1393 |
+
"sliding door",
|
| 1394 |
+
"slot machine",
|
| 1395 |
+
"snorkel",
|
| 1396 |
+
"snowmobile",
|
| 1397 |
+
"snowplow",
|
| 1398 |
+
"soap dispenser",
|
| 1399 |
+
"soccer ball",
|
| 1400 |
+
"sock",
|
| 1401 |
+
"solar thermal collector",
|
| 1402 |
+
"sombrero",
|
| 1403 |
+
"soup bowl",
|
| 1404 |
+
"keyboard space bar",
|
| 1405 |
+
"space heater",
|
| 1406 |
+
"space shuttle",
|
| 1407 |
+
"spatula",
|
| 1408 |
+
"motorboat",
|
| 1409 |
+
"spider web",
|
| 1410 |
+
"spindle",
|
| 1411 |
+
"sports car",
|
| 1412 |
+
"spotlight",
|
| 1413 |
+
"stage",
|
| 1414 |
+
"steam locomotive",
|
| 1415 |
+
"through arch bridge",
|
| 1416 |
+
"steel drum",
|
| 1417 |
+
"stethoscope",
|
| 1418 |
+
"scarf",
|
| 1419 |
+
"stone wall",
|
| 1420 |
+
"stopwatch",
|
| 1421 |
+
"stove",
|
| 1422 |
+
"strainer",
|
| 1423 |
+
"tram",
|
| 1424 |
+
"stretcher",
|
| 1425 |
+
"couch",
|
| 1426 |
+
"stupa",
|
| 1427 |
+
"submarine",
|
| 1428 |
+
"suit",
|
| 1429 |
+
"sundial",
|
| 1430 |
+
"sunglasses",
|
| 1431 |
+
"sunglasses",
|
| 1432 |
+
"sunscreen",
|
| 1433 |
+
"suspension bridge",
|
| 1434 |
+
"mop",
|
| 1435 |
+
"sweatshirt",
|
| 1436 |
+
"swim trunks / shorts",
|
| 1437 |
+
"swing",
|
| 1438 |
+
"electrical switch",
|
| 1439 |
+
"syringe",
|
| 1440 |
+
"table lamp",
|
| 1441 |
+
"tank",
|
| 1442 |
+
"tape player",
|
| 1443 |
+
"teapot",
|
| 1444 |
+
"teddy bear",
|
| 1445 |
+
"television",
|
| 1446 |
+
"tennis ball",
|
| 1447 |
+
"thatched roof",
|
| 1448 |
+
"front curtain",
|
| 1449 |
+
"thimble",
|
| 1450 |
+
"threshing machine",
|
| 1451 |
+
"throne",
|
| 1452 |
+
"tile roof",
|
| 1453 |
+
"toaster",
|
| 1454 |
+
"tobacco shop",
|
| 1455 |
+
"toilet seat",
|
| 1456 |
+
"torch",
|
| 1457 |
+
"totem pole",
|
| 1458 |
+
"tow truck",
|
| 1459 |
+
"toy store",
|
| 1460 |
+
"tractor",
|
| 1461 |
+
"semi-trailer truck",
|
| 1462 |
+
"tray",
|
| 1463 |
+
"trench coat",
|
| 1464 |
+
"tricycle",
|
| 1465 |
+
"trimaran",
|
| 1466 |
+
"tripod",
|
| 1467 |
+
"triumphal arch",
|
| 1468 |
+
"trolleybus",
|
| 1469 |
+
"trombone",
|
| 1470 |
+
"hot tub",
|
| 1471 |
+
"turnstile",
|
| 1472 |
+
"typewriter keyboard",
|
| 1473 |
+
"umbrella",
|
| 1474 |
+
"unicycle",
|
| 1475 |
+
"upright piano",
|
| 1476 |
+
"vacuum cleaner",
|
| 1477 |
+
"vase",
|
| 1478 |
+
"vaulted or arched ceiling",
|
| 1479 |
+
"velvet fabric",
|
| 1480 |
+
"vending machine",
|
| 1481 |
+
"vestment",
|
| 1482 |
+
"viaduct",
|
| 1483 |
+
"violin",
|
| 1484 |
+
"volleyball",
|
| 1485 |
+
"waffle iron",
|
| 1486 |
+
"wall clock",
|
| 1487 |
+
"wallet",
|
| 1488 |
+
"wardrobe",
|
| 1489 |
+
"military aircraft",
|
| 1490 |
+
"sink",
|
| 1491 |
+
"washing machine",
|
| 1492 |
+
"water bottle",
|
| 1493 |
+
"water jug",
|
| 1494 |
+
"water tower",
|
| 1495 |
+
"whiskey jug",
|
| 1496 |
+
"whistle",
|
| 1497 |
+
"hair wig",
|
| 1498 |
+
"window screen",
|
| 1499 |
+
"window shade",
|
| 1500 |
+
"Windsor tie",
|
| 1501 |
+
"wine bottle",
|
| 1502 |
+
"airplane wing",
|
| 1503 |
+
"wok",
|
| 1504 |
+
"wooden spoon",
|
| 1505 |
+
"wool",
|
| 1506 |
+
"split-rail fence",
|
| 1507 |
+
"shipwreck",
|
| 1508 |
+
"sailboat",
|
| 1509 |
+
"yurt",
|
| 1510 |
+
"website",
|
| 1511 |
+
"comic book",
|
| 1512 |
+
"crossword",
|
| 1513 |
+
"traffic or street sign",
|
| 1514 |
+
"traffic light",
|
| 1515 |
+
"dust jacket",
|
| 1516 |
+
"menu",
|
| 1517 |
+
"plate",
|
| 1518 |
+
"guacamole",
|
| 1519 |
+
"consomme",
|
| 1520 |
+
"hot pot",
|
| 1521 |
+
"trifle",
|
| 1522 |
+
"ice cream",
|
| 1523 |
+
"popsicle",
|
| 1524 |
+
"baguette",
|
| 1525 |
+
"bagel",
|
| 1526 |
+
"pretzel",
|
| 1527 |
+
"cheeseburger",
|
| 1528 |
+
"hot dog",
|
| 1529 |
+
"mashed potatoes",
|
| 1530 |
+
"cabbage",
|
| 1531 |
+
"broccoli",
|
| 1532 |
+
"cauliflower",
|
| 1533 |
+
"zucchini",
|
| 1534 |
+
"spaghetti squash",
|
| 1535 |
+
"acorn squash",
|
| 1536 |
+
"butternut squash",
|
| 1537 |
+
"cucumber",
|
| 1538 |
+
"artichoke",
|
| 1539 |
+
"bell pepper",
|
| 1540 |
+
"cardoon",
|
| 1541 |
+
"mushroom",
|
| 1542 |
+
"Granny Smith apple",
|
| 1543 |
+
"strawberry",
|
| 1544 |
+
"orange",
|
| 1545 |
+
"lemon",
|
| 1546 |
+
"fig",
|
| 1547 |
+
"pineapple",
|
| 1548 |
+
"banana",
|
| 1549 |
+
"jackfruit",
|
| 1550 |
+
"cherimoya (custard apple)",
|
| 1551 |
+
"pomegranate",
|
| 1552 |
+
"hay",
|
| 1553 |
+
"carbonara",
|
| 1554 |
+
"chocolate syrup",
|
| 1555 |
+
"dough",
|
| 1556 |
+
"meatloaf",
|
| 1557 |
+
"pizza",
|
| 1558 |
+
"pot pie",
|
| 1559 |
+
"burrito",
|
| 1560 |
+
"red wine",
|
| 1561 |
+
"espresso",
|
| 1562 |
+
"tea cup",
|
| 1563 |
+
"eggnog",
|
| 1564 |
+
"mountain",
|
| 1565 |
+
"bubble",
|
| 1566 |
+
"cliff",
|
| 1567 |
+
"coral reef",
|
| 1568 |
+
"geyser",
|
| 1569 |
+
"lakeshore",
|
| 1570 |
+
"promontory",
|
| 1571 |
+
"sandbar",
|
| 1572 |
+
"beach",
|
| 1573 |
+
"valley",
|
| 1574 |
+
"volcano",
|
| 1575 |
+
"baseball player",
|
| 1576 |
+
"bridegroom",
|
| 1577 |
+
"scuba diver",
|
| 1578 |
+
"rapeseed",
|
| 1579 |
+
"daisy",
|
| 1580 |
+
"yellow lady's slipper",
|
| 1581 |
+
"corn",
|
| 1582 |
+
"acorn",
|
| 1583 |
+
"rose hip",
|
| 1584 |
+
"horse chestnut seed",
|
| 1585 |
+
"coral fungus",
|
| 1586 |
+
"agaric",
|
| 1587 |
+
"gyromitra",
|
| 1588 |
+
"stinkhorn mushroom",
|
| 1589 |
+
"earth star fungus",
|
| 1590 |
+
"hen of the woods mushroom",
|
| 1591 |
+
"bolete",
|
| 1592 |
+
"corn cob",
|
| 1593 |
+
"toilet paper"
|
| 1594 |
+
],
|
| 1595 |
+
"clevr_count_all": [
|
| 1596 |
+
"three",
|
| 1597 |
+
"four",
|
| 1598 |
+
"five",
|
| 1599 |
+
"six",
|
| 1600 |
+
"seven",
|
| 1601 |
+
"eight",
|
| 1602 |
+
"nine",
|
| 1603 |
+
"ten"
|
| 1604 |
+
],
|
| 1605 |
+
"clevr_closest_object_distance": [
|
| 1606 |
+
"very nearby",
|
| 1607 |
+
"nearby",
|
| 1608 |
+
"near",
|
| 1609 |
+
"",
|
| 1610 |
+
"distant",
|
| 1611 |
+
"very distant"
|
| 1612 |
+
],
|
| 1613 |
+
"mnist": [
|
| 1614 |
+
"0",
|
| 1615 |
+
"1",
|
| 1616 |
+
"2",
|
| 1617 |
+
"3",
|
| 1618 |
+
"4",
|
| 1619 |
+
"5",
|
| 1620 |
+
"6",
|
| 1621 |
+
"7",
|
| 1622 |
+
"8",
|
| 1623 |
+
"9"
|
| 1624 |
+
],
|
| 1625 |
+
"svhn": [
|
| 1626 |
+
"zero",
|
| 1627 |
+
"one",
|
| 1628 |
+
"two",
|
| 1629 |
+
"three",
|
| 1630 |
+
"four",
|
| 1631 |
+
"five",
|
| 1632 |
+
"six",
|
| 1633 |
+
"seven",
|
| 1634 |
+
"eight",
|
| 1635 |
+
"nine"
|
| 1636 |
+
],
|
| 1637 |
+
"kitti_closest_vehicle_distance": [
|
| 1638 |
+
"a photo i took of a car on my left or right side.",
|
| 1639 |
+
"a photo i took with a car nearby.",
|
| 1640 |
+
"a photo i took with a car in the distance.",
|
| 1641 |
+
"a photo i took with no car."
|
| 1642 |
+
],
|
| 1643 |
+
"dmlab": [
|
| 1644 |
+
"nearby apple/melon",
|
| 1645 |
+
"far apple/melon",
|
| 1646 |
+
"very far apple/melon",
|
| 1647 |
+
"nearby lemon",
|
| 1648 |
+
"far lemon",
|
| 1649 |
+
"very far lemon"
|
| 1650 |
+
],
|
| 1651 |
+
"pets": [
|
| 1652 |
+
"Abyssinian",
|
| 1653 |
+
"American Bulldog",
|
| 1654 |
+
"American Pit Bull Terrier",
|
| 1655 |
+
"Basset Hound",
|
| 1656 |
+
"Beagle",
|
| 1657 |
+
"Bengal",
|
| 1658 |
+
"Birman",
|
| 1659 |
+
"Bombay",
|
| 1660 |
+
"Boxer",
|
| 1661 |
+
"British Shorthair",
|
| 1662 |
+
"Chihuahua",
|
| 1663 |
+
"Egyptian Mau",
|
| 1664 |
+
"English Cocker Spaniel",
|
| 1665 |
+
"English Setter",
|
| 1666 |
+
"German Shorthaired",
|
| 1667 |
+
"Great Pyrenees",
|
| 1668 |
+
"Havanese",
|
| 1669 |
+
"Japanese Chin",
|
| 1670 |
+
"Keeshond",
|
| 1671 |
+
"Leonberger",
|
| 1672 |
+
"Maine Coon",
|
| 1673 |
+
"Miniature Pinscher",
|
| 1674 |
+
"Newfoundland",
|
| 1675 |
+
"Persian",
|
| 1676 |
+
"Pomeranian",
|
| 1677 |
+
"Pug",
|
| 1678 |
+
"Ragdoll",
|
| 1679 |
+
"Russian Blue",
|
| 1680 |
+
"Saint Bernard",
|
| 1681 |
+
"Samoyed",
|
| 1682 |
+
"Scottish Terrier",
|
| 1683 |
+
"Shiba Inu",
|
| 1684 |
+
"Siamese",
|
| 1685 |
+
"Sphynx",
|
| 1686 |
+
"Staffordshire Bull Terrier",
|
| 1687 |
+
"Wheaten Terrier",
|
| 1688 |
+
"Yorkshire Terrier"
|
| 1689 |
+
],
|
| 1690 |
+
"pcam": [
|
| 1691 |
+
"lymph node",
|
| 1692 |
+
"lymph node containing metastatic tumor tissue"
|
| 1693 |
+
],
|
| 1694 |
+
"diabetic_retinopathy": [
|
| 1695 |
+
"no diabetic retinopathy",
|
| 1696 |
+
"mild diabetic retinopathy",
|
| 1697 |
+
"moderate diabetic retinopathy",
|
| 1698 |
+
"severe diabetic retinopathy",
|
| 1699 |
+
"proliferative diabetic retinopathy"
|
| 1700 |
+
]
|
| 1701 |
+
}
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/en_zeroshot_classification_templates.json
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cifar10": [
|
| 3 |
+
"a photo of a {c}.",
|
| 4 |
+
"a blurry photo of a {c}.",
|
| 5 |
+
"a black and white photo of a {c}.",
|
| 6 |
+
"a low contrast photo of a {c}.",
|
| 7 |
+
"a high contrast photo of a {c}.",
|
| 8 |
+
"a bad photo of a {c}.",
|
| 9 |
+
"a good photo of a {c}.",
|
| 10 |
+
"a photo of a small {c}.",
|
| 11 |
+
"a photo of a big {c}.",
|
| 12 |
+
"a photo of the {c}.",
|
| 13 |
+
"a blurry photo of the {c}.",
|
| 14 |
+
"a black and white photo of the {c}.",
|
| 15 |
+
"a low contrast photo of the {c}.",
|
| 16 |
+
"a high contrast photo of the {c}.",
|
| 17 |
+
"a bad photo of the {c}.",
|
| 18 |
+
"a good photo of the {c}.",
|
| 19 |
+
"a photo of the small {c}.",
|
| 20 |
+
"a photo of the big {c}."
|
| 21 |
+
],
|
| 22 |
+
"cifar100": [
|
| 23 |
+
"a photo of a {c}.",
|
| 24 |
+
"a blurry photo of a {c}.",
|
| 25 |
+
"a black and white photo of a {c}.",
|
| 26 |
+
"a low contrast photo of a {c}.",
|
| 27 |
+
"a high contrast photo of a {c}.",
|
| 28 |
+
"a bad photo of a {c}.",
|
| 29 |
+
"a good photo of a {c}.",
|
| 30 |
+
"a photo of a small {c}.",
|
| 31 |
+
"a photo of a big {c}.",
|
| 32 |
+
"a photo of the {c}.",
|
| 33 |
+
"a blurry photo of the {c}.",
|
| 34 |
+
"a black and white photo of the {c}.",
|
| 35 |
+
"a low contrast photo of the {c}.",
|
| 36 |
+
"a high contrast photo of the {c}.",
|
| 37 |
+
"a bad photo of the {c}.",
|
| 38 |
+
"a good photo of the {c}.",
|
| 39 |
+
"a photo of the small {c}.",
|
| 40 |
+
"a photo of the big {c}."
|
| 41 |
+
],
|
| 42 |
+
"imagenet1k": [
|
| 43 |
+
"a bad photo of a {c}.",
|
| 44 |
+
"a photo of many {c}.",
|
| 45 |
+
"a sculpture of a {c}.",
|
| 46 |
+
"a photo of the hard to see {c}.",
|
| 47 |
+
"a low resolution photo of the {c}.",
|
| 48 |
+
"a rendering of a {c}.",
|
| 49 |
+
"graffiti of a {c}.",
|
| 50 |
+
"a bad photo of the {c}.",
|
| 51 |
+
"a cropped photo of the {c}.",
|
| 52 |
+
"a tattoo of a {c}.",
|
| 53 |
+
"the embroidered {c}.",
|
| 54 |
+
"a photo of a hard to see {c}.",
|
| 55 |
+
"a bright photo of a {c}.",
|
| 56 |
+
"a photo of a clean {c}.",
|
| 57 |
+
"a photo of a dirty {c}.",
|
| 58 |
+
"a dark photo of the {c}.",
|
| 59 |
+
"a drawing of a {c}.",
|
| 60 |
+
"a photo of my {c}.",
|
| 61 |
+
"the plastic {c}.",
|
| 62 |
+
"a photo of the cool {c}.",
|
| 63 |
+
"a close-up photo of a {c}.",
|
| 64 |
+
"a black and white photo of the {c}.",
|
| 65 |
+
"a painting of the {c}.",
|
| 66 |
+
"a painting of a {c}.",
|
| 67 |
+
"a pixelated photo of the {c}.",
|
| 68 |
+
"a sculpture of the {c}.",
|
| 69 |
+
"a bright photo of the {c}.",
|
| 70 |
+
"a cropped photo of a {c}.",
|
| 71 |
+
"a plastic {c}.",
|
| 72 |
+
"a photo of the dirty {c}.",
|
| 73 |
+
"a jpeg corrupted photo of a {c}.",
|
| 74 |
+
"a blurry photo of the {c}.",
|
| 75 |
+
"a photo of the {c}.",
|
| 76 |
+
"a good photo of the {c}.",
|
| 77 |
+
"a rendering of the {c}.",
|
| 78 |
+
"a {c} in a video game.",
|
| 79 |
+
"a photo of one {c}.",
|
| 80 |
+
"a doodle of a {c}.",
|
| 81 |
+
"a close-up photo of the {c}.",
|
| 82 |
+
"a photo of a {c}.",
|
| 83 |
+
"the origami {c}.",
|
| 84 |
+
"the {c} in a video game.",
|
| 85 |
+
"a sketch of a {c}.",
|
| 86 |
+
"a doodle of the {c}.",
|
| 87 |
+
"a origami {c}.",
|
| 88 |
+
"a low resolution photo of a {c}.",
|
| 89 |
+
"the toy {c}.",
|
| 90 |
+
"a rendition of the {c}.",
|
| 91 |
+
"a photo of the clean {c}.",
|
| 92 |
+
"a photo of a large {c}.",
|
| 93 |
+
"a rendition of a {c}.",
|
| 94 |
+
"a photo of a nice {c}.",
|
| 95 |
+
"a photo of a weird {c}.",
|
| 96 |
+
"a blurry photo of a {c}.",
|
| 97 |
+
"a cartoon {c}.",
|
| 98 |
+
"art of a {c}.",
|
| 99 |
+
"a sketch of the {c}.",
|
| 100 |
+
"a embroidered {c}.",
|
| 101 |
+
"a pixelated photo of a {c}.",
|
| 102 |
+
"itap of the {c}.",
|
| 103 |
+
"a jpeg corrupted photo of the {c}.",
|
| 104 |
+
"a good photo of a {c}.",
|
| 105 |
+
"a plushie {c}.",
|
| 106 |
+
"a photo of the nice {c}.",
|
| 107 |
+
"a photo of the small {c}.",
|
| 108 |
+
"a photo of the weird {c}.",
|
| 109 |
+
"the cartoon {c}.",
|
| 110 |
+
"art of the {c}.",
|
| 111 |
+
"a drawing of the {c}.",
|
| 112 |
+
"a photo of the large {c}.",
|
| 113 |
+
"a black and white photo of a {c}.",
|
| 114 |
+
"the plushie {c}.",
|
| 115 |
+
"a dark photo of a {c}.",
|
| 116 |
+
"itap of a {c}.",
|
| 117 |
+
"graffiti of the {c}.",
|
| 118 |
+
"a toy {c}.",
|
| 119 |
+
"itap of my {c}.",
|
| 120 |
+
"a photo of a cool {c}.",
|
| 121 |
+
"a photo of a small {c}.",
|
| 122 |
+
"a tattoo of the {c}."
|
| 123 |
+
],
|
| 124 |
+
"food101": [
|
| 125 |
+
"a photo of {c}, a type of food."
|
| 126 |
+
],
|
| 127 |
+
"sun397": [
|
| 128 |
+
"a photo of a {c}.",
|
| 129 |
+
"a photo of the {c}."
|
| 130 |
+
],
|
| 131 |
+
"cars": [
|
| 132 |
+
"a photo of a {c}.",
|
| 133 |
+
"a photo of the {c}.",
|
| 134 |
+
"a photo of my {c}.",
|
| 135 |
+
"i love my {c}!",
|
| 136 |
+
"a photo of my dirty {c}.",
|
| 137 |
+
"a photo of my clean {c}.",
|
| 138 |
+
"a photo of my new {c}.",
|
| 139 |
+
"a photo of my old {c}."
|
| 140 |
+
],
|
| 141 |
+
"fgvc_aircraft": [
|
| 142 |
+
"a photo of a {c}, a type of aircraft.",
|
| 143 |
+
"a photo of the {c}, a type of aircraft."
|
| 144 |
+
],
|
| 145 |
+
"dtd": [
|
| 146 |
+
"a photo of a {c} texture.",
|
| 147 |
+
"a photo of a {c} pattern.",
|
| 148 |
+
"a photo of a {c} thing.",
|
| 149 |
+
"a photo of a {c} object.",
|
| 150 |
+
"a photo of the {c} texture.",
|
| 151 |
+
"a photo of the {c} pattern.",
|
| 152 |
+
"a photo of the {c} thing.",
|
| 153 |
+
"a photo of the {c} object."
|
| 154 |
+
],
|
| 155 |
+
"pets": [
|
| 156 |
+
"a photo of a {c}, a type of pet."
|
| 157 |
+
],
|
| 158 |
+
"birdsnap": [
|
| 159 |
+
"a photo of a {c}, a type of bird."
|
| 160 |
+
],
|
| 161 |
+
"caltech101": [
|
| 162 |
+
"a photo of a {c}.",
|
| 163 |
+
"a painting of a {c}.",
|
| 164 |
+
"a plastic {c}.",
|
| 165 |
+
"a sculpture of a {c}.",
|
| 166 |
+
"a sketch of a {c}.",
|
| 167 |
+
"a tattoo of a {c}.",
|
| 168 |
+
"a toy {c}.",
|
| 169 |
+
"a rendition of a {c}.",
|
| 170 |
+
"a embroidered {c}.",
|
| 171 |
+
"a cartoon {c}.",
|
| 172 |
+
"a {c} in a video game.",
|
| 173 |
+
"a plushie {c}.",
|
| 174 |
+
"a origami {c}.",
|
| 175 |
+
"art of a {c}.",
|
| 176 |
+
"graffiti of a {c}.",
|
| 177 |
+
"a drawing of a {c}.",
|
| 178 |
+
"a doodle of a {c}.",
|
| 179 |
+
"a photo of the {c}.",
|
| 180 |
+
"a painting of the {c}.",
|
| 181 |
+
"the plastic {c}.",
|
| 182 |
+
"a sculpture of the {c}.",
|
| 183 |
+
"a sketch of the {c}.",
|
| 184 |
+
"a tattoo of the {c}.",
|
| 185 |
+
"the toy {c}.",
|
| 186 |
+
"a rendition of the {c}.",
|
| 187 |
+
"the embroidered {c}.",
|
| 188 |
+
"the cartoon {c}.",
|
| 189 |
+
"the {c} in a video game.",
|
| 190 |
+
"the plushie {c}.",
|
| 191 |
+
"the origami {c}.",
|
| 192 |
+
"art of the {c}.",
|
| 193 |
+
"graffiti of the {c}.",
|
| 194 |
+
"a drawing of the {c}.",
|
| 195 |
+
"a doodle of the {c}."
|
| 196 |
+
],
|
| 197 |
+
"flowers": [
|
| 198 |
+
"a photo of a {c}, a type of flower."
|
| 199 |
+
],
|
| 200 |
+
"mnist": [
|
| 201 |
+
"a photo of the number: \"{c}\"."
|
| 202 |
+
],
|
| 203 |
+
"stl10": [
|
| 204 |
+
"a photo of a {c}.",
|
| 205 |
+
"a photo of the {c}."
|
| 206 |
+
],
|
| 207 |
+
"eurosat": [
|
| 208 |
+
"a centered satellite photo of {c}.",
|
| 209 |
+
"a centered satellite photo of a {c}.",
|
| 210 |
+
"a centered satellite photo of the {c}."
|
| 211 |
+
],
|
| 212 |
+
"gtsrb": [
|
| 213 |
+
"a zoomed in photo of a \"{c}\" traffic sign.",
|
| 214 |
+
"a centered photo of a \"{c}\" traffic sign.",
|
| 215 |
+
"a close up photo of a \"{c}\" traffic sign."
|
| 216 |
+
],
|
| 217 |
+
"country211": [
|
| 218 |
+
"a photo i took in {c}.",
|
| 219 |
+
"a photo i took while visiting {c}.",
|
| 220 |
+
"a photo from my home country of {c}.",
|
| 221 |
+
"a photo from my visit to {c}.",
|
| 222 |
+
"a photo showing the country of {c}."
|
| 223 |
+
],
|
| 224 |
+
"renderedsst2": [
|
| 225 |
+
"a {c} review of a movie."
|
| 226 |
+
],
|
| 227 |
+
"voc2007": [
|
| 228 |
+
"a photo of a {c}."
|
| 229 |
+
],
|
| 230 |
+
"voc2007_multilabel": [
|
| 231 |
+
"a photo of a {c}."
|
| 232 |
+
],
|
| 233 |
+
"fer2013": [
|
| 234 |
+
"a photo of a {c} looking face.",
|
| 235 |
+
"a photo of a face showing the emotion: {c}.",
|
| 236 |
+
"a photo of a face looking {c}.",
|
| 237 |
+
"a face that looks {c}.",
|
| 238 |
+
"they look {c}.",
|
| 239 |
+
"look at how {c} they are."
|
| 240 |
+
],
|
| 241 |
+
"clevr_count_all": [
|
| 242 |
+
"a picture of {c} objects"
|
| 243 |
+
],
|
| 244 |
+
"clevr_closest_object_distance": [
|
| 245 |
+
"{c} shapes."
|
| 246 |
+
],
|
| 247 |
+
"pcam": [
|
| 248 |
+
"a histopathology slide showing {c}",
|
| 249 |
+
"histopathology image of {c}"
|
| 250 |
+
],
|
| 251 |
+
"svhn": [
|
| 252 |
+
"a photo of the number {c} written on a sign",
|
| 253 |
+
"an outdoor house number {c}",
|
| 254 |
+
"the number {c} in the center of the image",
|
| 255 |
+
"an outdoor number {c} writte on a sign",
|
| 256 |
+
"an outdoor number {c}",
|
| 257 |
+
"a centered image of the number {c}"
|
| 258 |
+
],
|
| 259 |
+
"resisc45": [
|
| 260 |
+
"a sattelite image of {c}",
|
| 261 |
+
"an aerial view of {c}",
|
| 262 |
+
"a sattelite photo of {c}",
|
| 263 |
+
"{c} from above"
|
| 264 |
+
],
|
| 265 |
+
"kitti_closest_vehicle_distance": [
|
| 266 |
+
"{c}"
|
| 267 |
+
],
|
| 268 |
+
"smallnorb_label_azimuth": [
|
| 269 |
+
"an object rotated at {c}",
|
| 270 |
+
"something rotated at {c}",
|
| 271 |
+
"{c} rotation",
|
| 272 |
+
"something at a {c} angle"
|
| 273 |
+
],
|
| 274 |
+
"smallnorb_label_elevation": [
|
| 275 |
+
"an object rotated at {c}",
|
| 276 |
+
"something rotated at {c}",
|
| 277 |
+
"{c} rotation",
|
| 278 |
+
"something at a {c} angle"
|
| 279 |
+
],
|
| 280 |
+
"dsprites_label_x_position": [
|
| 281 |
+
"an object located at position {c}% on the horizontal axis"
|
| 282 |
+
],
|
| 283 |
+
"dsprites_label_orientation": [
|
| 284 |
+
"an object rotated at {c}",
|
| 285 |
+
"something rotated at {c}",
|
| 286 |
+
"{c} rotation",
|
| 287 |
+
"something at a {c} angle"
|
| 288 |
+
],
|
| 289 |
+
"dmlab": [
|
| 290 |
+
"{c}"
|
| 291 |
+
],
|
| 292 |
+
"diabetic_retinopathy": [
|
| 293 |
+
"a retinal image with {c}"
|
| 294 |
+
],
|
| 295 |
+
"dummy": [
|
| 296 |
+
"a photo of a {c}"
|
| 297 |
+
]
|
| 298 |
+
}
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/flickr.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Adapted from https://github.com/pytorch/vision/blob/main/torchvision/datasets/flickr.py
|
| 3 |
+
Thanks to the authors of torchvision
|
| 4 |
+
"""
|
| 5 |
+
import os
|
| 6 |
+
from collections import defaultdict
|
| 7 |
+
from typing import Any, Callable, Optional, Tuple
|
| 8 |
+
|
| 9 |
+
from PIL import Image
|
| 10 |
+
from torchvision.datasets import VisionDataset
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class Flickr(VisionDataset):
|
| 14 |
+
|
| 15 |
+
def __init__(
|
| 16 |
+
self,
|
| 17 |
+
root: str,
|
| 18 |
+
ann_file: str,
|
| 19 |
+
transform: Optional[Callable] = None,
|
| 20 |
+
target_transform: Optional[Callable] = None,
|
| 21 |
+
) -> None:
|
| 22 |
+
super().__init__(root, transform=transform, target_transform=target_transform)
|
| 23 |
+
self.ann_file = os.path.expanduser(ann_file)
|
| 24 |
+
data = defaultdict(list)
|
| 25 |
+
with open(ann_file) as fd:
|
| 26 |
+
fd.readline()
|
| 27 |
+
for line in fd:
|
| 28 |
+
line = line.strip()
|
| 29 |
+
if line:
|
| 30 |
+
# some lines have comma in the caption, se we make sure we do the split correctly
|
| 31 |
+
img, caption = line.strip().split('.jpg,')
|
| 32 |
+
img = img + '.jpg'
|
| 33 |
+
data[img].append(caption)
|
| 34 |
+
self.data = list(data.items())
|
| 35 |
+
|
| 36 |
+
def __getitem__(self, index: int) -> Tuple[Any, Any]:
|
| 37 |
+
"""
|
| 38 |
+
Args:
|
| 39 |
+
index (int): Index
|
| 40 |
+
|
| 41 |
+
Returns:
|
| 42 |
+
tuple: Tuple (image, target). target is a list of captions for the image.
|
| 43 |
+
"""
|
| 44 |
+
img, captions = self.data[index]
|
| 45 |
+
|
| 46 |
+
# Image
|
| 47 |
+
img = Image.open(os.path.join(self.root, img)).convert('RGB')
|
| 48 |
+
if self.transform is not None:
|
| 49 |
+
img = self.transform(img)
|
| 50 |
+
|
| 51 |
+
# Captions
|
| 52 |
+
target = captions
|
| 53 |
+
if self.target_transform is not None:
|
| 54 |
+
target = self.target_transform(target)
|
| 55 |
+
|
| 56 |
+
return img, target
|
| 57 |
+
|
| 58 |
+
def __len__(self) -> int:
|
| 59 |
+
return len(self.data)
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/imagenetv2.py
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Code from https://github.com/mlfoundations/wise-ft/blob/master/src/datasets/imagenetv2.py
|
| 3 |
+
Thanks to the authors of wise-ft
|
| 4 |
+
"""
|
| 5 |
+
import pathlib
|
| 6 |
+
import shutil
|
| 7 |
+
import tarfile
|
| 8 |
+
|
| 9 |
+
import requests
|
| 10 |
+
from PIL import Image
|
| 11 |
+
from torch.utils.data import Dataset
|
| 12 |
+
from torchvision.datasets import ImageFolder
|
| 13 |
+
from tqdm import tqdm
|
| 14 |
+
|
| 15 |
+
URLS = {'matched-frequency': 'https://imagenetv2public.s3-us-west-2.amazonaws.com/imagenetv2-matched-frequency.tar.gz',
|
| 16 |
+
'threshold-0.7': 'https://imagenetv2public.s3-us-west-2.amazonaws.com/imagenetv2-threshold0.7.tar.gz',
|
| 17 |
+
'top-images': 'https://imagenetv2public.s3-us-west-2.amazonaws.com/imagenetv2-top-images.tar.gz',
|
| 18 |
+
'val': 'https://imagenetv2public.s3-us-west-2.amazonaws.com/imagenet_validation.tar.gz'}
|
| 19 |
+
|
| 20 |
+
FNAMES = {'matched-frequency': 'imagenetv2-matched-frequency-format-val',
|
| 21 |
+
'threshold-0.7': 'imagenetv2-threshold0.7-format-val',
|
| 22 |
+
'top-images': 'imagenetv2-top-images-format-val',
|
| 23 |
+
'val': 'imagenet_validation'}
|
| 24 |
+
|
| 25 |
+
V2_DATASET_SIZE = 10000
|
| 26 |
+
VAL_DATASET_SIZE = 50000
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
class ImageNetValDataset(Dataset):
|
| 30 |
+
def __init__(self, transform=None, location='.'):
|
| 31 |
+
self.dataset_root = pathlib.Path(f'{location}/imagenet_validation/')
|
| 32 |
+
self.tar_root = pathlib.Path(f'{location}/imagenet_validation.tar.gz')
|
| 33 |
+
self.fnames = list(self.dataset_root.glob('**/*.JPEG'))
|
| 34 |
+
self.transform = transform
|
| 35 |
+
if not self.dataset_root.exists() or len(self.fnames) != VAL_DATASET_SIZE:
|
| 36 |
+
if not self.tar_root.exists():
|
| 37 |
+
print(f'Dataset imagenet-val not found on disk, downloading....')
|
| 38 |
+
response = requests.get(URLS['val'], stream=True)
|
| 39 |
+
total_size_in_bytes = int(response.headers.get('content-length', 0))
|
| 40 |
+
block_size = 1024 # 1 Kibibyte
|
| 41 |
+
progress_bar = tqdm(total=total_size_in_bytes, unit='iB', unit_scale=True)
|
| 42 |
+
with open(self.tar_root, 'wb') as f:
|
| 43 |
+
for data in response.iter_content(block_size):
|
| 44 |
+
progress_bar.update(len(data))
|
| 45 |
+
f.write(data)
|
| 46 |
+
progress_bar.close()
|
| 47 |
+
if total_size_in_bytes != 0 and progress_bar.n != total_size_in_bytes:
|
| 48 |
+
assert False, f'Downloading from {URLS[variant]} failed'
|
| 49 |
+
print('Extracting....')
|
| 50 |
+
tarfile.open(self.tar_root).extractall(f'{location}')
|
| 51 |
+
shutil.move(f"{location}/{FNAMES['val']}", self.dataset_root)
|
| 52 |
+
|
| 53 |
+
self.dataset = ImageFolder(self.dataset_root)
|
| 54 |
+
|
| 55 |
+
def __len__(self):
|
| 56 |
+
return len(self.dataset)
|
| 57 |
+
|
| 58 |
+
def __getitem__(self, i):
|
| 59 |
+
img, label = self.dataset[i]
|
| 60 |
+
if self.transform is not None:
|
| 61 |
+
img = self.transform(img)
|
| 62 |
+
return img, label
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
class ImageNetV2Dataset(Dataset):
|
| 66 |
+
def __init__(self, variant='matched-frequency', transform=None, location='.'):
|
| 67 |
+
self.dataset_root = pathlib.Path(f'{location}/ImageNetV2-{variant}/')
|
| 68 |
+
self.tar_root = pathlib.Path(f'{location}/ImageNetV2-{variant}.tar.gz')
|
| 69 |
+
self.fnames = list(self.dataset_root.glob('**/*.jpeg'))
|
| 70 |
+
self.transform = transform
|
| 71 |
+
assert variant in URLS, f'unknown V2 Variant: {variant}'
|
| 72 |
+
if not self.dataset_root.exists() or len(self.fnames) != V2_DATASET_SIZE:
|
| 73 |
+
if not self.tar_root.exists():
|
| 74 |
+
print(f'Dataset {variant} not found on disk, downloading....')
|
| 75 |
+
response = requests.get(URLS[variant], stream=True)
|
| 76 |
+
total_size_in_bytes = int(response.headers.get('content-length', 0))
|
| 77 |
+
block_size = 1024 # 1 Kibibyte
|
| 78 |
+
progress_bar = tqdm(total=total_size_in_bytes, unit='iB', unit_scale=True)
|
| 79 |
+
with open(self.tar_root, 'wb') as f:
|
| 80 |
+
for data in response.iter_content(block_size):
|
| 81 |
+
progress_bar.update(len(data))
|
| 82 |
+
f.write(data)
|
| 83 |
+
progress_bar.close()
|
| 84 |
+
if total_size_in_bytes != 0 and progress_bar.n != total_size_in_bytes:
|
| 85 |
+
assert False, f'Downloading from {URLS[variant]} failed'
|
| 86 |
+
print('Extracting....')
|
| 87 |
+
tarfile.open(self.tar_root).extractall(f'{location}')
|
| 88 |
+
shutil.move(f'{location}/{FNAMES[variant]}', self.dataset_root)
|
| 89 |
+
self.fnames = list(self.dataset_root.glob('**/*.jpeg'))
|
| 90 |
+
|
| 91 |
+
def __len__(self):
|
| 92 |
+
return len(self.fnames)
|
| 93 |
+
|
| 94 |
+
def __getitem__(self, i):
|
| 95 |
+
img, label = Image.open(self.fnames[i]), int(self.fnames[i].parent.name)
|
| 96 |
+
if self.transform is not None:
|
| 97 |
+
img = self.transform(img)
|
| 98 |
+
return img, label
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/it_classnames.json
ADDED
|
@@ -0,0 +1,1004 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"imagenet1k": [
|
| 3 |
+
"una tinca",
|
| 4 |
+
"un pesce rosso",
|
| 5 |
+
"un grande squalo bianco",
|
| 6 |
+
"uno squalo tigre",
|
| 7 |
+
"un pesce martello",
|
| 8 |
+
"un raggio elettrico",
|
| 9 |
+
"una pastinaca",
|
| 10 |
+
"un gallo",
|
| 11 |
+
"una gallina",
|
| 12 |
+
"uno struzzo",
|
| 13 |
+
"un rovo",
|
| 14 |
+
"un cardellino",
|
| 15 |
+
"un fringuello di casa",
|
| 16 |
+
"un giunco",
|
| 17 |
+
"uno zigolo indaco",
|
| 18 |
+
"un pettirosso",
|
| 19 |
+
"un bulbul",
|
| 20 |
+
"una ghiandaia",
|
| 21 |
+
"una gazza",
|
| 22 |
+
"una cinciallegra",
|
| 23 |
+
"un'ouzel d'acqua",
|
| 24 |
+
"un aquilone",
|
| 25 |
+
"un'aquila calva",
|
| 26 |
+
"un avvoltoio",
|
| 27 |
+
"un grande gufo grigio",
|
| 28 |
+
"una salamandra da fuoco europea",
|
| 29 |
+
"un tritone comune",
|
| 30 |
+
"a eft",
|
| 31 |
+
"una salamandra pezzata",
|
| 32 |
+
"un axolotl",
|
| 33 |
+
"una rana toro",
|
| 34 |
+
"una raganella",
|
| 35 |
+
"una rana con la coda",
|
| 36 |
+
"una testa di toro",
|
| 37 |
+
"una tartaruga di cuoio",
|
| 38 |
+
"una tartaruga di fango",
|
| 39 |
+
"una tartaruga",
|
| 40 |
+
"una tartaruga di scatola",
|
| 41 |
+
"un geco a bande",
|
| 42 |
+
"un'iguana comune",
|
| 43 |
+
"un camaleonte americano",
|
| 44 |
+
"una coda di frusta",
|
| 45 |
+
"a agama",
|
| 46 |
+
"una lucertola con le ali",
|
| 47 |
+
"una lucertola alligatore",
|
| 48 |
+
"un mostro di Gila",
|
| 49 |
+
"una lucertola verde",
|
| 50 |
+
"un camaleonte africano",
|
| 51 |
+
"un drago di Komodo",
|
| 52 |
+
"un coccodrillo africano",
|
| 53 |
+
"un alligatore americano",
|
| 54 |
+
"un triceratopo",
|
| 55 |
+
"un serpente di tuono",
|
| 56 |
+
"un serpente ringneck",
|
| 57 |
+
"un serpente hognose",
|
| 58 |
+
"un serpente verde",
|
| 59 |
+
"un serpente re",
|
| 60 |
+
"un serpente giarrettiera",
|
| 61 |
+
"un serpente d'acqua",
|
| 62 |
+
"un serpente a forma di vite",
|
| 63 |
+
"un serpente notturno",
|
| 64 |
+
"un boa constrictor",
|
| 65 |
+
"un pitone delle rocce",
|
| 66 |
+
"un cobra indiano",
|
| 67 |
+
"un mamba verde",
|
| 68 |
+
"un serpente di mare",
|
| 69 |
+
"una vipera cornuta",
|
| 70 |
+
"un diamondback",
|
| 71 |
+
"un sidewinder",
|
| 72 |
+
"un trilobite",
|
| 73 |
+
"un raccoglitore",
|
| 74 |
+
"uno scorpione",
|
| 75 |
+
"un ragno da giardino nero e oro",
|
| 76 |
+
"un ragno da fienile",
|
| 77 |
+
"un ragno del giardino",
|
| 78 |
+
"una vedova nera",
|
| 79 |
+
"una tarantola",
|
| 80 |
+
"un ragno lupo",
|
| 81 |
+
"un segno di spunta",
|
| 82 |
+
"un millepiedi",
|
| 83 |
+
"un fagiano di monte",
|
| 84 |
+
"pernice bianca",
|
| 85 |
+
"un gallo cedrone",
|
| 86 |
+
"un pollo della prateria",
|
| 87 |
+
"un pavone",
|
| 88 |
+
"una quaglia",
|
| 89 |
+
"una pernice",
|
| 90 |
+
"un grigio africano",
|
| 91 |
+
"un'ara",
|
| 92 |
+
"un cacatua dalla cresta sulfurea",
|
| 93 |
+
"un lorichetto",
|
| 94 |
+
"una coucal",
|
| 95 |
+
"un mangiatore di api",
|
| 96 |
+
"un bucerotide",
|
| 97 |
+
"un colibr\u00ec",
|
| 98 |
+
"un jacamar",
|
| 99 |
+
"un tucano",
|
| 100 |
+
"un drake",
|
| 101 |
+
"un merganser dal petto rosso",
|
| 102 |
+
"un'oca",
|
| 103 |
+
"un cigno nero",
|
| 104 |
+
"un tusker",
|
| 105 |
+
"un echidna",
|
| 106 |
+
"un ornitorinco",
|
| 107 |
+
"un wallaby",
|
| 108 |
+
"un koala",
|
| 109 |
+
"un vombato",
|
| 110 |
+
"una medusa",
|
| 111 |
+
"un anemone di mare",
|
| 112 |
+
"un corallo del cervello",
|
| 113 |
+
"un verme piatto",
|
| 114 |
+
"un nematode",
|
| 115 |
+
"uno strombo",
|
| 116 |
+
"una lumaca",
|
| 117 |
+
"una lumaca",
|
| 118 |
+
"una lumaca di mare",
|
| 119 |
+
"un chitone",
|
| 120 |
+
"un nautilus a camera",
|
| 121 |
+
"un granchio di Dungeness",
|
| 122 |
+
"un granchio di roccia",
|
| 123 |
+
"un granchio violinista",
|
| 124 |
+
"un granchio reale",
|
| 125 |
+
"un'aragosta americana",
|
| 126 |
+
"un'aragosta spinosa",
|
| 127 |
+
"un gambero di fiume",
|
| 128 |
+
"un paguro",
|
| 129 |
+
"un isopode",
|
| 130 |
+
"una cicogna bianca",
|
| 131 |
+
"una cicogna nera",
|
| 132 |
+
"una spatola",
|
| 133 |
+
"un fenicottero",
|
| 134 |
+
"un piccolo airone blu",
|
| 135 |
+
"una garzetta americana",
|
| 136 |
+
"un tarabuso",
|
| 137 |
+
"una gru",
|
| 138 |
+
"un moscerino",
|
| 139 |
+
"un gallinaccio europeo",
|
| 140 |
+
"una folaga americana",
|
| 141 |
+
"un'otarda",
|
| 142 |
+
"una pietra focaia rubiconda",
|
| 143 |
+
"un piovanello dal dorso rosso",
|
| 144 |
+
"una pettegola",
|
| 145 |
+
"una dowitcher",
|
| 146 |
+
"una beccaccia di mare",
|
| 147 |
+
"un pellicano",
|
| 148 |
+
"un pinguino reale",
|
| 149 |
+
"un albatros",
|
| 150 |
+
"una balena grigia",
|
| 151 |
+
"un'orca assassina",
|
| 152 |
+
"un dugongo",
|
| 153 |
+
"un leone marino",
|
| 154 |
+
"un chihuahua",
|
| 155 |
+
"uno spaniel giapponese",
|
| 156 |
+
"un cane maltese",
|
| 157 |
+
"un pechinese",
|
| 158 |
+
"uno Shih-Tzu",
|
| 159 |
+
"uno spaniel Blenheim",
|
| 160 |
+
"un papillon",
|
| 161 |
+
"un terrier giocattolo",
|
| 162 |
+
"un Rhodesian ridgeback",
|
| 163 |
+
"un segugio afgano",
|
| 164 |
+
"un bassotto",
|
| 165 |
+
"un beagle",
|
| 166 |
+
"un segugio",
|
| 167 |
+
"un bluetick",
|
| 168 |
+
"un coonhound nero e marrone",
|
| 169 |
+
"un segugio Walker",
|
| 170 |
+
"un foxhound inglese",
|
| 171 |
+
"un osso rosso",
|
| 172 |
+
"un borzoi",
|
| 173 |
+
"un cane lupo irlandese",
|
| 174 |
+
"un levriero italiano",
|
| 175 |
+
"un whippet",
|
| 176 |
+
"un segugio ibizenco",
|
| 177 |
+
"un elkhound norvegese",
|
| 178 |
+
"una lontra",
|
| 179 |
+
"un Saluki",
|
| 180 |
+
"un deerhound scozzese",
|
| 181 |
+
"un Weimaraner",
|
| 182 |
+
"uno Staffordshire bullterrier",
|
| 183 |
+
"un American Staffordshire terrier",
|
| 184 |
+
"un Bedlington terrier",
|
| 185 |
+
"un Border terrier",
|
| 186 |
+
"un Kerry blue terrier",
|
| 187 |
+
"un terrier irlandese",
|
| 188 |
+
"un Norfolk terrier",
|
| 189 |
+
"un Norwich terrier",
|
| 190 |
+
"uno Yorkshire terrier",
|
| 191 |
+
"un fox terrier a pelo corto",
|
| 192 |
+
"un Lakeland terrier",
|
| 193 |
+
"un Sealyham terrier",
|
| 194 |
+
"un Airedale",
|
| 195 |
+
"un tumulo",
|
| 196 |
+
"un terrier australiano",
|
| 197 |
+
"un Dandie Dinmont",
|
| 198 |
+
"un toro di Boston",
|
| 199 |
+
"uno schnauzer in miniatura",
|
| 200 |
+
"uno schnauzer gigante",
|
| 201 |
+
"uno schnauzer standard",
|
| 202 |
+
"un terrier scozzese",
|
| 203 |
+
"un terrier tibetano",
|
| 204 |
+
"un terrier di seta",
|
| 205 |
+
"un wheaten terrier a pelo morbido",
|
| 206 |
+
"un West Highland white terrier",
|
| 207 |
+
"a Lhasa",
|
| 208 |
+
"un flat-coated retriever",
|
| 209 |
+
"un retriever a pelo riccio",
|
| 210 |
+
"un golden retriever",
|
| 211 |
+
"un Labrador retriever",
|
| 212 |
+
"un Chesapeake Bay retriever",
|
| 213 |
+
"un pointer tedesco a pelo corto",
|
| 214 |
+
"un vizsla",
|
| 215 |
+
"un setter inglese",
|
| 216 |
+
"un setter irlandese",
|
| 217 |
+
"un setter Gordon",
|
| 218 |
+
"un Brittany spaniel",
|
| 219 |
+
"un idraulico",
|
| 220 |
+
"uno springer inglese",
|
| 221 |
+
"uno springer spaniel gallese",
|
| 222 |
+
"un cocker spaniel",
|
| 223 |
+
"uno spaniel del Sussex",
|
| 224 |
+
"uno spaniel d'acqua irlandese",
|
| 225 |
+
"un kuvasz",
|
| 226 |
+
"uno schipperke",
|
| 227 |
+
"una groenendael",
|
| 228 |
+
"un malinois",
|
| 229 |
+
"una briarda",
|
| 230 |
+
"un kelpie",
|
| 231 |
+
"un komondor",
|
| 232 |
+
"un vecchio cane da pastore inglese",
|
| 233 |
+
"un cane da pastore Shetland",
|
| 234 |
+
"un collie",
|
| 235 |
+
"un Border collie",
|
| 236 |
+
"un Bouvier des Flandres",
|
| 237 |
+
"un Rottweiler",
|
| 238 |
+
"un pastore tedesco",
|
| 239 |
+
"un dobermann",
|
| 240 |
+
"un pinscher in miniatura",
|
| 241 |
+
"un cane da montagna svizzero maggiore",
|
| 242 |
+
"un cane di montagna bernese",
|
| 243 |
+
"un Appenzeller",
|
| 244 |
+
"a EntleBucher",
|
| 245 |
+
"un pugile",
|
| 246 |
+
"un mastino toro",
|
| 247 |
+
"un mastino tibetano",
|
| 248 |
+
"un bulldog francese",
|
| 249 |
+
"un alano",
|
| 250 |
+
"un San Bernardo",
|
| 251 |
+
"un cane eschimese",
|
| 252 |
+
"un malamute",
|
| 253 |
+
"un Siberian husky",
|
| 254 |
+
"un dalmata",
|
| 255 |
+
"un affenpinscher",
|
| 256 |
+
"un basenji",
|
| 257 |
+
"un carlino",
|
| 258 |
+
"a Leonberg",
|
| 259 |
+
"un Terranova",
|
| 260 |
+
"un Grande Pireneo",
|
| 261 |
+
"un samoiedo",
|
| 262 |
+
"un Pomerania",
|
| 263 |
+
"un chow",
|
| 264 |
+
"un keeshond",
|
| 265 |
+
"un grifone di Brabancon",
|
| 266 |
+
"un Pembroke",
|
| 267 |
+
"un cardigan",
|
| 268 |
+
"un barboncino giocattolo",
|
| 269 |
+
"un barboncino in miniatura",
|
| 270 |
+
"un barboncino standard",
|
| 271 |
+
"un messicano senza capelli",
|
| 272 |
+
"un lupo di legno",
|
| 273 |
+
"un lupo bianco",
|
| 274 |
+
"un lupo rosso",
|
| 275 |
+
"un coyote",
|
| 276 |
+
"un dingo",
|
| 277 |
+
"un dhole",
|
| 278 |
+
"un cane da caccia africano",
|
| 279 |
+
"una iena",
|
| 280 |
+
"una volpe rossa",
|
| 281 |
+
"una volpe di kit",
|
| 282 |
+
"una volpe artica",
|
| 283 |
+
"una volpe grigia",
|
| 284 |
+
"un soriano",
|
| 285 |
+
"un gatto tigrato",
|
| 286 |
+
"un gatto persiano",
|
| 287 |
+
"un gatto siamese",
|
| 288 |
+
"un gatto egiziano",
|
| 289 |
+
"un puma",
|
| 290 |
+
"una lince",
|
| 291 |
+
"un leopardo",
|
| 292 |
+
"un leopardo delle nevi",
|
| 293 |
+
"un giaguaro",
|
| 294 |
+
"un leone",
|
| 295 |
+
"una tigre",
|
| 296 |
+
"un ghepardo",
|
| 297 |
+
"un orso bruno",
|
| 298 |
+
"un orso nero americano",
|
| 299 |
+
"un orso di ghiaccio",
|
| 300 |
+
"un orso bradipo",
|
| 301 |
+
"una mangusta",
|
| 302 |
+
"un suricato",
|
| 303 |
+
"uno scarabeo tigre",
|
| 304 |
+
"una coccinella",
|
| 305 |
+
"uno scarabeo di terra",
|
| 306 |
+
"uno scarabeo dalle lunghe corna",
|
| 307 |
+
"uno scarabeo delle foglie",
|
| 308 |
+
"uno scarabeo stercorario",
|
| 309 |
+
"uno scarabeo rinoceronte",
|
| 310 |
+
"un tonchio",
|
| 311 |
+
"una mosca",
|
| 312 |
+
"un'ape",
|
| 313 |
+
"una formica",
|
| 314 |
+
"una cavalletta",
|
| 315 |
+
"un grillo",
|
| 316 |
+
"un bastone da passeggio",
|
| 317 |
+
"uno scarafaggio",
|
| 318 |
+
"una mantide",
|
| 319 |
+
"una cicala",
|
| 320 |
+
"una cavalletta",
|
| 321 |
+
"un pizzo",
|
| 322 |
+
"una libellula",
|
| 323 |
+
"una damigella",
|
| 324 |
+
"un ammiraglio",
|
| 325 |
+
"un ricciolo",
|
| 326 |
+
"un monarca",
|
| 327 |
+
"una farfalla cavolo",
|
| 328 |
+
"una farfalla sulfurea",
|
| 329 |
+
"un licaenide",
|
| 330 |
+
"una stella marina",
|
| 331 |
+
"un riccio di mare",
|
| 332 |
+
"un cetriolo di mare",
|
| 333 |
+
"un coniglio di legno",
|
| 334 |
+
"una lepre",
|
| 335 |
+
"un angora",
|
| 336 |
+
"un criceto",
|
| 337 |
+
"un porcospino",
|
| 338 |
+
"uno scoiattolo volpe",
|
| 339 |
+
"una marmotta",
|
| 340 |
+
"un castoro",
|
| 341 |
+
"un porcellino d'India",
|
| 342 |
+
"un'acetosa",
|
| 343 |
+
"una zebra",
|
| 344 |
+
"un maiale",
|
| 345 |
+
"un cinghiale",
|
| 346 |
+
"un facocero",
|
| 347 |
+
"un ippopotamo",
|
| 348 |
+
"un bue",
|
| 349 |
+
"un bufalo d'acqua",
|
| 350 |
+
"un bisonte",
|
| 351 |
+
"ariete",
|
| 352 |
+
"un bighorn",
|
| 353 |
+
"uno stambecco",
|
| 354 |
+
"un alcefalo",
|
| 355 |
+
"un impala",
|
| 356 |
+
"una gazzella",
|
| 357 |
+
"un cammello arabo",
|
| 358 |
+
"un lama",
|
| 359 |
+
"una donnola",
|
| 360 |
+
"un visone",
|
| 361 |
+
"una puzzola",
|
| 362 |
+
"un furetto dai piedi neri",
|
| 363 |
+
"una lontra",
|
| 364 |
+
"una puzzola",
|
| 365 |
+
"un tasso",
|
| 366 |
+
"un armadillo",
|
| 367 |
+
"un bradipo a tre dita",
|
| 368 |
+
"un orango",
|
| 369 |
+
"un gorilla",
|
| 370 |
+
"uno scimpanz\u00e9",
|
| 371 |
+
"un gibbone",
|
| 372 |
+
"un siamang",
|
| 373 |
+
"un cercopiteco",
|
| 374 |
+
"un patas",
|
| 375 |
+
"un babbuino",
|
| 376 |
+
"un macaco",
|
| 377 |
+
"un langur",
|
| 378 |
+
"un colobo",
|
| 379 |
+
"una scimmia proboscide",
|
| 380 |
+
"uno uistit\u00ec",
|
| 381 |
+
"un cappuccino",
|
| 382 |
+
"una scimmia urlatrice",
|
| 383 |
+
"un titi",
|
| 384 |
+
"una scimmia ragno",
|
| 385 |
+
"una scimmia scoiattolo",
|
| 386 |
+
"un gatto del Madagascar",
|
| 387 |
+
"un indri",
|
| 388 |
+
"un elefante indiano",
|
| 389 |
+
"un elefante africano",
|
| 390 |
+
"un panda minore",
|
| 391 |
+
"un panda gigante",
|
| 392 |
+
"un barracuda",
|
| 393 |
+
"un'anguilla",
|
| 394 |
+
"un coho",
|
| 395 |
+
"una bellezza di roccia",
|
| 396 |
+
"un pesce anemone",
|
| 397 |
+
"uno storione",
|
| 398 |
+
"un capo d'abbigliamento",
|
| 399 |
+
"un pesce leone",
|
| 400 |
+
"un puffer",
|
| 401 |
+
"un abaco",
|
| 402 |
+
"un abaya",
|
| 403 |
+
"un abito accademico",
|
| 404 |
+
"una fisarmonica",
|
| 405 |
+
"una chitarra acustica",
|
| 406 |
+
"una portaerei",
|
| 407 |
+
"un aereo di linea",
|
| 408 |
+
"un dirigibile",
|
| 409 |
+
"un altare",
|
| 410 |
+
"un'ambulanza",
|
| 411 |
+
"un anfibio",
|
| 412 |
+
"un orologio analogico",
|
| 413 |
+
"un apiario",
|
| 414 |
+
"un grembiule",
|
| 415 |
+
"un frassino",
|
| 416 |
+
"un fucile d'assalto",
|
| 417 |
+
"uno zaino",
|
| 418 |
+
"un panificio",
|
| 419 |
+
"una trave di equilibrio",
|
| 420 |
+
"un pallone",
|
| 421 |
+
"una penna a sfera",
|
| 422 |
+
"un cerotto",
|
| 423 |
+
"un banjo",
|
| 424 |
+
"una balaustra",
|
| 425 |
+
"un bilanciere",
|
| 426 |
+
"una sedia da barbiere",
|
| 427 |
+
"un barbiere",
|
| 428 |
+
"un fienile",
|
| 429 |
+
"un barometro",
|
| 430 |
+
"un barile",
|
| 431 |
+
"un carretto",
|
| 432 |
+
"una palla da baseball",
|
| 433 |
+
"una pallacanestro",
|
| 434 |
+
"una culla",
|
| 435 |
+
"un fagotto",
|
| 436 |
+
"un berretto da bagno",
|
| 437 |
+
"un asciugamano da bagno",
|
| 438 |
+
"una vasca da bagno",
|
| 439 |
+
"un carro da spiaggia",
|
| 440 |
+
"un faro",
|
| 441 |
+
"un bicchiere",
|
| 442 |
+
"una pelle d'orso",
|
| 443 |
+
"una bottiglia di birra",
|
| 444 |
+
"un bicchiere di birra",
|
| 445 |
+
"un campanile",
|
| 446 |
+
"un bavaglino",
|
| 447 |
+
"una bicicletta costruita per due",
|
| 448 |
+
"un bikini",
|
| 449 |
+
"un raccoglitore",
|
| 450 |
+
"un binocolo",
|
| 451 |
+
"una casetta per uccelli",
|
| 452 |
+
"una rimessa per barche",
|
| 453 |
+
"un bob",
|
| 454 |
+
"una cravatta bolo",
|
| 455 |
+
"un cofano",
|
| 456 |
+
"una libreria",
|
| 457 |
+
"una libreria",
|
| 458 |
+
"un tappo di bottiglia",
|
| 459 |
+
"un arco",
|
| 460 |
+
"un papillon",
|
| 461 |
+
"un ottone",
|
| 462 |
+
"un reggiseno",
|
| 463 |
+
"un frangiflutti",
|
| 464 |
+
"una corazza",
|
| 465 |
+
"una scopa",
|
| 466 |
+
"un secchio",
|
| 467 |
+
"una fibbia",
|
| 468 |
+
"un giubbotto antiproiettile",
|
| 469 |
+
"un treno proiettile",
|
| 470 |
+
"una macelleria",
|
| 471 |
+
"un taxi",
|
| 472 |
+
"un calderone",
|
| 473 |
+
"una candela",
|
| 474 |
+
"un cannone",
|
| 475 |
+
"una canoa",
|
| 476 |
+
"un apriscatole",
|
| 477 |
+
"un cardigan",
|
| 478 |
+
"uno specchio per auto",
|
| 479 |
+
"una giostra",
|
| 480 |
+
"un kit da falegname",
|
| 481 |
+
"un cartone",
|
| 482 |
+
"una ruota di automobile",
|
| 483 |
+
"un bancomat",
|
| 484 |
+
"una cassetta",
|
| 485 |
+
"un lettore di cassette",
|
| 486 |
+
"un castello",
|
| 487 |
+
"un catamarano",
|
| 488 |
+
"un lettore CD",
|
| 489 |
+
"un violoncello",
|
| 490 |
+
"un telefono cellulare",
|
| 491 |
+
"una catena",
|
| 492 |
+
"una recinzione di rete metallica",
|
| 493 |
+
"una cotta di maglia",
|
| 494 |
+
"una motosega",
|
| 495 |
+
"un petto",
|
| 496 |
+
"una chiffoniera",
|
| 497 |
+
"una suoneria",
|
| 498 |
+
"una vetrina per porcellane",
|
| 499 |
+
"una calza di Natale",
|
| 500 |
+
"una chiesa",
|
| 501 |
+
"un cinema",
|
| 502 |
+
"una mannaia",
|
| 503 |
+
"una dimora sulla scogliera",
|
| 504 |
+
"un mantello",
|
| 505 |
+
"un intasamento",
|
| 506 |
+
"uno shaker da cocktail",
|
| 507 |
+
"una tazza da caff\u00e8",
|
| 508 |
+
"una caffettiera",
|
| 509 |
+
"una bobina",
|
| 510 |
+
"una serratura a combinazione",
|
| 511 |
+
"una tastiera di computer",
|
| 512 |
+
"una pasticceria",
|
| 513 |
+
"una nave container",
|
| 514 |
+
"una convertibile",
|
| 515 |
+
"un cavatappi",
|
| 516 |
+
"una cornetta",
|
| 517 |
+
"uno stivale da cowboy",
|
| 518 |
+
"un cappello da cowboy",
|
| 519 |
+
"una culla",
|
| 520 |
+
"una gru",
|
| 521 |
+
"un casco di protezione",
|
| 522 |
+
"una cassa",
|
| 523 |
+
"una culla",
|
| 524 |
+
"una pentola di coccio",
|
| 525 |
+
"una palla da croquet",
|
| 526 |
+
"una stampella",
|
| 527 |
+
"una corazza",
|
| 528 |
+
"una diga",
|
| 529 |
+
"una scrivania",
|
| 530 |
+
"un computer da tavolo",
|
| 531 |
+
"un telefono a selezione",
|
| 532 |
+
"un pannolino",
|
| 533 |
+
"un orologio digitale",
|
| 534 |
+
"un orologio digitale",
|
| 535 |
+
"un tavolo da pranzo",
|
| 536 |
+
"uno strofinaccio",
|
| 537 |
+
"una lavastoviglie",
|
| 538 |
+
"un freno a disco",
|
| 539 |
+
"un molo",
|
| 540 |
+
"una slitta trainata da cani",
|
| 541 |
+
"una cupola",
|
| 542 |
+
"uno zerbino",
|
| 543 |
+
"una piattaforma di perforazione",
|
| 544 |
+
"un tamburo",
|
| 545 |
+
"una bacchetta",
|
| 546 |
+
"un manubrio",
|
| 547 |
+
"un forno olandese",
|
| 548 |
+
"un ventilatore elettrico",
|
| 549 |
+
"una chitarra elettrica",
|
| 550 |
+
"una locomotiva elettrica",
|
| 551 |
+
"un centro di intrattenimento",
|
| 552 |
+
"una busta",
|
| 553 |
+
"una macchina per il caff\u00e8 espresso",
|
| 554 |
+
"una polvere per il viso",
|
| 555 |
+
"un boa di piume",
|
| 556 |
+
"un file",
|
| 557 |
+
"una barca antincendio",
|
| 558 |
+
"un'autopompa",
|
| 559 |
+
"uno schermo per il fuoco",
|
| 560 |
+
"un pennone",
|
| 561 |
+
"un flauto",
|
| 562 |
+
"una sedia pieghevole",
|
| 563 |
+
"un casco da calcio",
|
| 564 |
+
"un carrello elevatore",
|
| 565 |
+
"una fontana",
|
| 566 |
+
"una penna stilografica",
|
| 567 |
+
"un baldacchino",
|
| 568 |
+
"un vagone merci",
|
| 569 |
+
"un corno francese",
|
| 570 |
+
"una padella",
|
| 571 |
+
"una pelliccia",
|
| 572 |
+
"un camion della spazzatura",
|
| 573 |
+
"una maschera antigas",
|
| 574 |
+
"una pompa di benzina",
|
| 575 |
+
"un calice",
|
| 576 |
+
"un go-kart",
|
| 577 |
+
"una pallina da golf",
|
| 578 |
+
"un golfcart",
|
| 579 |
+
"una gondola",
|
| 580 |
+
"un gong",
|
| 581 |
+
"un abito",
|
| 582 |
+
"un pianoforte a coda",
|
| 583 |
+
"una serra",
|
| 584 |
+
"una griglia",
|
| 585 |
+
"un negozio di alimentari",
|
| 586 |
+
"una ghigliottina",
|
| 587 |
+
"uno scivolo per capelli",
|
| 588 |
+
"una lacca per capelli",
|
| 589 |
+
"una mezza traccia",
|
| 590 |
+
"un martello",
|
| 591 |
+
"un cesto regalo",
|
| 592 |
+
"un soffiatore a mano",
|
| 593 |
+
"un computer portatile",
|
| 594 |
+
"un fazzoletto",
|
| 595 |
+
"un disco rigido",
|
| 596 |
+
"un'armonica",
|
| 597 |
+
"un'arpa",
|
| 598 |
+
"una mietitrice",
|
| 599 |
+
"un'accetta",
|
| 600 |
+
"una fondina",
|
| 601 |
+
"un home theater",
|
| 602 |
+
"un nido d'ape",
|
| 603 |
+
"un gancio",
|
| 604 |
+
"una gonna a cerchio",
|
| 605 |
+
"una barra orizzontale",
|
| 606 |
+
"un carro di cavalli",
|
| 607 |
+
"una clessidra",
|
| 608 |
+
"un iPod",
|
| 609 |
+
"un ferro da stiro",
|
| 610 |
+
"una zucca",
|
| 611 |
+
"un jeans",
|
| 612 |
+
"una jeep",
|
| 613 |
+
"una maglia",
|
| 614 |
+
"un puzzle",
|
| 615 |
+
"a jinrikisha",
|
| 616 |
+
"un joystick",
|
| 617 |
+
"un kimono",
|
| 618 |
+
"una ginocchiera",
|
| 619 |
+
"un nodo",
|
| 620 |
+
"un camice da laboratorio",
|
| 621 |
+
"un mestolo",
|
| 622 |
+
"un paralume",
|
| 623 |
+
"un computer portatile",
|
| 624 |
+
"un tosaerba",
|
| 625 |
+
"un copriobiettivo",
|
| 626 |
+
"un tagliacarte",
|
| 627 |
+
"una biblioteca",
|
| 628 |
+
"una scialuppa di salvataggio",
|
| 629 |
+
"un accendino",
|
| 630 |
+
"una limousine",
|
| 631 |
+
"una fodera",
|
| 632 |
+
"un rossetto",
|
| 633 |
+
"un mocassino",
|
| 634 |
+
"una lozione",
|
| 635 |
+
"un altoparlante",
|
| 636 |
+
"una lente d'ingrandimento",
|
| 637 |
+
"una segheria",
|
| 638 |
+
"una bussola magnetica",
|
| 639 |
+
"una borsa della posta",
|
| 640 |
+
"una cassetta postale",
|
| 641 |
+
"un maillot",
|
| 642 |
+
"un maillot",
|
| 643 |
+
"un tombino",
|
| 644 |
+
"una maraca",
|
| 645 |
+
"una marimba",
|
| 646 |
+
"una maschera",
|
| 647 |
+
"un fiammifero",
|
| 648 |
+
"un palo di maggio",
|
| 649 |
+
"un labirinto",
|
| 650 |
+
"un misurino",
|
| 651 |
+
"una cassetta dei medicinali",
|
| 652 |
+
"un megalite",
|
| 653 |
+
"un microfono",
|
| 654 |
+
"un microonde",
|
| 655 |
+
"un'uniforme militare",
|
| 656 |
+
"una lattina di latte",
|
| 657 |
+
"un minibus",
|
| 658 |
+
"una minigonna",
|
| 659 |
+
"un minivan",
|
| 660 |
+
"un missile",
|
| 661 |
+
"un guanto",
|
| 662 |
+
"una ciotola di miscelazione",
|
| 663 |
+
"una casa mobile",
|
| 664 |
+
"un Modello T",
|
| 665 |
+
"un modem",
|
| 666 |
+
"un monastero",
|
| 667 |
+
"un monitor",
|
| 668 |
+
"un ciclomotore",
|
| 669 |
+
"un mortaio",
|
| 670 |
+
"una mortarboard",
|
| 671 |
+
"una moschea",
|
| 672 |
+
"una zanzariera",
|
| 673 |
+
"uno scooter",
|
| 674 |
+
"una bicicletta di montagna",
|
| 675 |
+
"una tenda di montagna",
|
| 676 |
+
"un topo",
|
| 677 |
+
"una trappola per topi",
|
| 678 |
+
"un furgone per traslochi",
|
| 679 |
+
"una museruola",
|
| 680 |
+
"un chiodo",
|
| 681 |
+
"un tutore per il collo",
|
| 682 |
+
"una collana",
|
| 683 |
+
"un capezzolo",
|
| 684 |
+
"un quaderno",
|
| 685 |
+
"un obelisco",
|
| 686 |
+
"un oboe",
|
| 687 |
+
"un'ocarina",
|
| 688 |
+
"un contachilometri",
|
| 689 |
+
"un filtro dell'olio",
|
| 690 |
+
"un organo",
|
| 691 |
+
"un oscilloscopio",
|
| 692 |
+
"una sopragonna",
|
| 693 |
+
"un carro da buoi",
|
| 694 |
+
"una maschera di ossigeno",
|
| 695 |
+
"un pacchetto",
|
| 696 |
+
"una pagaia",
|
| 697 |
+
"una ruota a pale",
|
| 698 |
+
"un lucchetto",
|
| 699 |
+
"un pennello",
|
| 700 |
+
"un pigiama",
|
| 701 |
+
"un palazzo",
|
| 702 |
+
"una panpipe",
|
| 703 |
+
"un tovagliolo di carta",
|
| 704 |
+
"un paracadute",
|
| 705 |
+
"una barra parallela",
|
| 706 |
+
"una panchina del parco",
|
| 707 |
+
"un parchimetro",
|
| 708 |
+
"un'autovettura",
|
| 709 |
+
"un patio",
|
| 710 |
+
"un telefono a pagamento",
|
| 711 |
+
"un piedistallo",
|
| 712 |
+
"una scatola di matite",
|
| 713 |
+
"un temperamatite",
|
| 714 |
+
"un profumo",
|
| 715 |
+
"una capsula di Petri",
|
| 716 |
+
"una fotocopiatrice",
|
| 717 |
+
"un grimaldello",
|
| 718 |
+
"un picconatore",
|
| 719 |
+
"una staccionata",
|
| 720 |
+
"un prelievo",
|
| 721 |
+
"un molo",
|
| 722 |
+
"un salvadanaio",
|
| 723 |
+
"una bottiglia di pillole",
|
| 724 |
+
"un cuscino",
|
| 725 |
+
"una pallina da ping-pong",
|
| 726 |
+
"una girandola",
|
| 727 |
+
"un pirata",
|
| 728 |
+
"un lanciatore",
|
| 729 |
+
"un aereo",
|
| 730 |
+
"un planetario",
|
| 731 |
+
"un sacchetto di plastica",
|
| 732 |
+
"un portapiatti",
|
| 733 |
+
"un aratro",
|
| 734 |
+
"uno stantuffo",
|
| 735 |
+
"una macchina fotografica Polaroid",
|
| 736 |
+
"un palo",
|
| 737 |
+
"un furgone della polizia",
|
| 738 |
+
"un poncho",
|
| 739 |
+
"un tavolo da biliardo",
|
| 740 |
+
"una bottiglia pop",
|
| 741 |
+
"una pentola",
|
| 742 |
+
"un tornio da vasaio",
|
| 743 |
+
"un trapano elettrico",
|
| 744 |
+
"un tappeto di preghiera",
|
| 745 |
+
"una stampante",
|
| 746 |
+
"una prigione",
|
| 747 |
+
"un proiettile",
|
| 748 |
+
"un proiettore",
|
| 749 |
+
"un disco",
|
| 750 |
+
"un sacco da boxe",
|
| 751 |
+
"una borsa",
|
| 752 |
+
"una penna d'oca",
|
| 753 |
+
"una trapunta",
|
| 754 |
+
"un corridore",
|
| 755 |
+
"una racchetta",
|
| 756 |
+
"un radiatore",
|
| 757 |
+
"una radio",
|
| 758 |
+
"un radiotelescopio",
|
| 759 |
+
"un barile per la pioggia",
|
| 760 |
+
"un veicolo ricreativo",
|
| 761 |
+
"una bobina",
|
| 762 |
+
"una macchina fotografica reflex",
|
| 763 |
+
"un frigorifero",
|
| 764 |
+
"un telecomando",
|
| 765 |
+
"un ristorante",
|
| 766 |
+
"un revolver",
|
| 767 |
+
"un fucile",
|
| 768 |
+
"una sedia a dondolo",
|
| 769 |
+
"un girarrosto",
|
| 770 |
+
"una gomma da cancellare",
|
| 771 |
+
"un pallone da rugby",
|
| 772 |
+
"una regola",
|
| 773 |
+
"una scarpa da corsa",
|
| 774 |
+
"una cassaforte",
|
| 775 |
+
"una spilla da balia",
|
| 776 |
+
"una saliera",
|
| 777 |
+
"un sandalo",
|
| 778 |
+
"un sarong",
|
| 779 |
+
"un sassofono",
|
| 780 |
+
"un fodero",
|
| 781 |
+
"una scala",
|
| 782 |
+
"uno scuolabus",
|
| 783 |
+
"una goletta",
|
| 784 |
+
"un tabellone segnapunti",
|
| 785 |
+
"uno schermo",
|
| 786 |
+
"una vite",
|
| 787 |
+
"un cacciavite",
|
| 788 |
+
"una cintura di sicurezza",
|
| 789 |
+
"una macchina da cucire",
|
| 790 |
+
"uno scudo",
|
| 791 |
+
"un negozio di scarpe",
|
| 792 |
+
"uno shoji",
|
| 793 |
+
"un cestino della spesa",
|
| 794 |
+
"un carrello della spesa",
|
| 795 |
+
"una pala",
|
| 796 |
+
"una cuffia da doccia",
|
| 797 |
+
"una tenda da doccia",
|
| 798 |
+
"uno sci",
|
| 799 |
+
"un passamontagna",
|
| 800 |
+
"un sacco a pelo",
|
| 801 |
+
"un regolo calcolatore",
|
| 802 |
+
"una porta scorrevole",
|
| 803 |
+
"una fessura",
|
| 804 |
+
"un boccaglio",
|
| 805 |
+
"una motoslitta",
|
| 806 |
+
"uno spazzaneve",
|
| 807 |
+
"un distributore di sapone",
|
| 808 |
+
"un pallone da calcio",
|
| 809 |
+
"un calzino",
|
| 810 |
+
"un piatto solare",
|
| 811 |
+
"un sombrero",
|
| 812 |
+
"una ciotola per la zuppa",
|
| 813 |
+
"una barra spaziatrice",
|
| 814 |
+
"una stufa per ambienti",
|
| 815 |
+
"una navetta spaziale",
|
| 816 |
+
"una spatola",
|
| 817 |
+
"un motoscafo",
|
| 818 |
+
"una ragnatela",
|
| 819 |
+
"un mandrino",
|
| 820 |
+
"un'auto sportiva",
|
| 821 |
+
"un riflettore",
|
| 822 |
+
"una fase",
|
| 823 |
+
"una locomotiva a vapore",
|
| 824 |
+
"un ponte ad arco in acciaio",
|
| 825 |
+
"un tamburo d'acciaio",
|
| 826 |
+
"uno stetoscopio",
|
| 827 |
+
"una stola",
|
| 828 |
+
"un muro di pietra",
|
| 829 |
+
"un cronometro",
|
| 830 |
+
"una stufa",
|
| 831 |
+
"un colino",
|
| 832 |
+
"un tram",
|
| 833 |
+
"una barella",
|
| 834 |
+
"un divano da studio",
|
| 835 |
+
"uno stupa",
|
| 836 |
+
"un sottomarino",
|
| 837 |
+
"un vestito",
|
| 838 |
+
"una meridiana",
|
| 839 |
+
"un occhiale da sole",
|
| 840 |
+
"occhiali da sole",
|
| 841 |
+
"una protezione solare",
|
| 842 |
+
"un ponte sospeso",
|
| 843 |
+
"un tampone",
|
| 844 |
+
"una felpa",
|
| 845 |
+
"un costume da bagno",
|
| 846 |
+
"un'altalena",
|
| 847 |
+
"un interruttore",
|
| 848 |
+
"una siringa",
|
| 849 |
+
"una lampada da tavolo",
|
| 850 |
+
"un carro armato",
|
| 851 |
+
"un lettore di nastri",
|
| 852 |
+
"una teiera",
|
| 853 |
+
"un orsacchiotto",
|
| 854 |
+
"una televisione",
|
| 855 |
+
"una palla da tennis",
|
| 856 |
+
"una paglia",
|
| 857 |
+
"un sipario teatrale",
|
| 858 |
+
"un ditale",
|
| 859 |
+
"una trebbiatrice",
|
| 860 |
+
"un trono",
|
| 861 |
+
"un tetto di tegole",
|
| 862 |
+
"un tostapane",
|
| 863 |
+
"un negozio di tabacco",
|
| 864 |
+
"un sedile del water",
|
| 865 |
+
"una torcia",
|
| 866 |
+
"un totem",
|
| 867 |
+
"un carro attrezzi",
|
| 868 |
+
"un negozio di giocattoli",
|
| 869 |
+
"un trattore",
|
| 870 |
+
"un camion con rimorchio",
|
| 871 |
+
"un vassoio",
|
| 872 |
+
"un trench",
|
| 873 |
+
"un triciclo",
|
| 874 |
+
"un trimarano",
|
| 875 |
+
"un treppiede",
|
| 876 |
+
"un arco di trionfo",
|
| 877 |
+
"un filobus",
|
| 878 |
+
"un trombone",
|
| 879 |
+
"una vasca da bagno",
|
| 880 |
+
"un tornello",
|
| 881 |
+
"una tastiera per macchina da scrivere",
|
| 882 |
+
"un ombrello",
|
| 883 |
+
"un monociclo",
|
| 884 |
+
"un montante",
|
| 885 |
+
"un vuoto",
|
| 886 |
+
"un vaso",
|
| 887 |
+
"una volta",
|
| 888 |
+
"un velluto",
|
| 889 |
+
"un distributore automatico",
|
| 890 |
+
"un paramento",
|
| 891 |
+
"un viadotto",
|
| 892 |
+
"un violino",
|
| 893 |
+
"una pallavolo",
|
| 894 |
+
"una piastra per cialde",
|
| 895 |
+
"un orologio da parete",
|
| 896 |
+
"un portafoglio",
|
| 897 |
+
"un armadio",
|
| 898 |
+
"un aereo da guerra",
|
| 899 |
+
"un lavandino",
|
| 900 |
+
"una rondella",
|
| 901 |
+
"una bottiglia d'acqua",
|
| 902 |
+
"una brocca d'acqua",
|
| 903 |
+
"una torre d'acqua",
|
| 904 |
+
"una brocca di whisky",
|
| 905 |
+
"un fischio",
|
| 906 |
+
"una parrucca",
|
| 907 |
+
"uno schermo per finestre",
|
| 908 |
+
"una tenda per finestre",
|
| 909 |
+
"una cravatta Windsor",
|
| 910 |
+
"una bottiglia di vino",
|
| 911 |
+
"un'ala",
|
| 912 |
+
"un wok",
|
| 913 |
+
"un cucchiaio di legno",
|
| 914 |
+
"una lana",
|
| 915 |
+
"un recinto di vermi",
|
| 916 |
+
"un relitto",
|
| 917 |
+
"uno yawl",
|
| 918 |
+
"una yurta",
|
| 919 |
+
"un sito web",
|
| 920 |
+
"un fumetto",
|
| 921 |
+
"un cruciverba",
|
| 922 |
+
"un cartello stradale",
|
| 923 |
+
"un semaforo",
|
| 924 |
+
"una giacca del libro",
|
| 925 |
+
"un menu",
|
| 926 |
+
"un piatto",
|
| 927 |
+
"un guacamole",
|
| 928 |
+
"un consomme",
|
| 929 |
+
"una pentola calda",
|
| 930 |
+
"un'inezia",
|
| 931 |
+
"un gelato",
|
| 932 |
+
"un ghiacciolo",
|
| 933 |
+
"una pagnotta francese",
|
| 934 |
+
"un bagel",
|
| 935 |
+
"un pretzel",
|
| 936 |
+
"un cheeseburger",
|
| 937 |
+
"un hotdog",
|
| 938 |
+
"un pur\u00e8 di patate",
|
| 939 |
+
"una testa di cavolo",
|
| 940 |
+
"un broccolo",
|
| 941 |
+
"un cavolfiore",
|
| 942 |
+
"una zucchina",
|
| 943 |
+
"una zucca per spaghetti",
|
| 944 |
+
"una zucca",
|
| 945 |
+
"una zucca butternut",
|
| 946 |
+
"un cetriolo",
|
| 947 |
+
"un carciofo",
|
| 948 |
+
"un peperone",
|
| 949 |
+
"un cardo",
|
| 950 |
+
"un fungo",
|
| 951 |
+
"una Granny Smith",
|
| 952 |
+
"una fragola",
|
| 953 |
+
"un'arancia",
|
| 954 |
+
"un limone",
|
| 955 |
+
"un fico",
|
| 956 |
+
"un ananas",
|
| 957 |
+
"una banana",
|
| 958 |
+
"un jackfruit",
|
| 959 |
+
"una mela custard",
|
| 960 |
+
"un melograno",
|
| 961 |
+
"un fieno",
|
| 962 |
+
"una carbonara",
|
| 963 |
+
"una salsa al cioccolato",
|
| 964 |
+
"un impasto",
|
| 965 |
+
"un polpettone",
|
| 966 |
+
"una pizza",
|
| 967 |
+
"una torta salata",
|
| 968 |
+
"un burrito",
|
| 969 |
+
"un vino rosso",
|
| 970 |
+
"un espresso",
|
| 971 |
+
"una tazza",
|
| 972 |
+
"uno zabaione",
|
| 973 |
+
"a alpe",
|
| 974 |
+
"una bolla",
|
| 975 |
+
"una scogliera",
|
| 976 |
+
"una barriera corallina",
|
| 977 |
+
"un geyser",
|
| 978 |
+
"un lago",
|
| 979 |
+
"un promontorio",
|
| 980 |
+
"un banco di sabbia",
|
| 981 |
+
"una riva del mare",
|
| 982 |
+
"una valle",
|
| 983 |
+
"un vulcano",
|
| 984 |
+
"un giocatore di pallone",
|
| 985 |
+
"uno sposo",
|
| 986 |
+
"un subacqueo",
|
| 987 |
+
"un seme di colza",
|
| 988 |
+
"una margherita",
|
| 989 |
+
"una pantofola gialla da donna",
|
| 990 |
+
"un mais",
|
| 991 |
+
"una ghianda",
|
| 992 |
+
"un'anca",
|
| 993 |
+
"un buckeye",
|
| 994 |
+
"un fungo corallino",
|
| 995 |
+
"un agarico",
|
| 996 |
+
"un gyromitra",
|
| 997 |
+
"una spina dorsale",
|
| 998 |
+
"una stella di terra",
|
| 999 |
+
"una gallina dei boschi",
|
| 1000 |
+
"un boleto",
|
| 1001 |
+
"un orecchio",
|
| 1002 |
+
"una carta igienica"
|
| 1003 |
+
]
|
| 1004 |
+
}
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/it_zeroshot_classification_templates.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"imagenet1k": [
|
| 3 |
+
"una brutta foto di {c}",
|
| 4 |
+
"una scultura di {c}",
|
| 5 |
+
"una foto di {c} difficilmente visibile",
|
| 6 |
+
"una foto a bassa risoluzione di {c}",
|
| 7 |
+
"un rendering di {c}",
|
| 8 |
+
"graffiti di {c}",
|
| 9 |
+
"una pessima foto di {c}",
|
| 10 |
+
"una foto ritagliata di {c}",
|
| 11 |
+
"un tatuaggio di {c}",
|
| 12 |
+
"{c} ricamato",
|
| 13 |
+
"{c} ricamata",
|
| 14 |
+
"una foto luminosa di {c}",
|
| 15 |
+
"una foto di {c} pulito",
|
| 16 |
+
"una foto di {c} pulita",
|
| 17 |
+
"una foto di {c} sporco",
|
| 18 |
+
"una foto di {c} sporca",
|
| 19 |
+
"una foto di {c}\u00a0carino",
|
| 20 |
+
"una foto di {c} carina",
|
| 21 |
+
"una foto di {c} strano",
|
| 22 |
+
"una foto di {c} strana",
|
| 23 |
+
"una foto di {c} piccolo",
|
| 24 |
+
"una foto di {c} piccola",
|
| 25 |
+
"una foto di {c} largo",
|
| 26 |
+
"una foto di {c} larga",
|
| 27 |
+
"una foto di {c} grande",
|
| 28 |
+
"una foto scura di {c}",
|
| 29 |
+
"un disegno di {c}",
|
| 30 |
+
"{c} di plastica",
|
| 31 |
+
"una foto del {c} bella",
|
| 32 |
+
"una foto ravvicinata di {c}",
|
| 33 |
+
"una foto in bianco e nero di {c}",
|
| 34 |
+
"un dipinto di {c}",
|
| 35 |
+
"una foto sgranata di {c}",
|
| 36 |
+
"una foto ritagliata di {c}",
|
| 37 |
+
"una foto sfocata di {c}",
|
| 38 |
+
"una buona foto di {c}",
|
| 39 |
+
"una riproduzione di {c}",
|
| 40 |
+
"un rendering di {c}",
|
| 41 |
+
"{c} in un video gioco",
|
| 42 |
+
"uno scarabocchio di {c}",
|
| 43 |
+
"un origami di {c}",
|
| 44 |
+
"uno sketch di {c}",
|
| 45 |
+
"una bozza di {c}",
|
| 46 |
+
"una foto a bassa risoluzione di {c}",
|
| 47 |
+
"un giocattolo di {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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"imagenet1k": [
|
| 3 |
+
"\u30c6\u30f3\u30c1",
|
| 4 |
+
"\u91d1\u9b5a",
|
| 5 |
+
"\u30db\u30db\u30b8\u30ed\u30b6\u30e1",
|
| 6 |
+
"\u30a4\u30bf\u30c1\u30b6\u30e1",
|
| 7 |
+
"\u30cf\u30f3\u30de\u30fc\u30d8\u30c3\u30c9",
|
| 8 |
+
"\u30b7\u30d3\u30ec\u30a8\u30a4",
|
| 9 |
+
"\u30a2\u30ab\u30a8\u30a4",
|
| 10 |
+
"\u30b3\u30c3\u30af",
|
| 11 |
+
"\u3081\u3093\u3069\u308a",
|
| 12 |
+
"\u30c0\u30c1\u30e7\u30a6",
|
| 13 |
+
"\u30a2\u30c8\u30ea",
|
| 14 |
+
"\u30b4\u30b7\u30ad\u30d2\u30ef",
|
| 15 |
+
"\u30cf\u30a6\u30b9\u30d5\u30a3\u30f3\u30c1",
|
| 16 |
+
"\u30e6\u30ad\u30d2\u30e1\u30c9\u30ea",
|
| 17 |
+
"\u30a4\u30f3\u30c7\u30a3\u30b4\u30db\u30aa\u30b8\u30ed",
|
| 18 |
+
"\u30ed\u30d3\u30f3",
|
| 19 |
+
"\u30d6\u30eb\u30d6\u30eb",
|
| 20 |
+
"\u30ab\u30b1\u30b9",
|
| 21 |
+
"\u30ab\u30b5\u30b5\u30ae",
|
| 22 |
+
"\u56db\u5341\u96c0",
|
| 23 |
+
"\u6c34\u30af\u30ed\u30a6\u30bf\u30c9\u30ea",
|
| 24 |
+
"\u51e7",
|
| 25 |
+
"\u767d\u982d\u30ef\u30b7",
|
| 26 |
+
"\u30cf\u30b2\u30ef\u30b7",
|
| 27 |
+
"\u30ab\u30e9\u30d5\u30c8\u30d5\u30af\u30ed\u30a6",
|
| 28 |
+
"\u6b27\u5dde\u30d5\u30a1\u30a4\u30a2\u30b5\u30e9\u30de\u30f3\u30c0\u30fc",
|
| 29 |
+
"\u5171\u901a\u30a4\u30e2\u30ea",
|
| 30 |
+
"\u30a4\u30e2\u30ea",
|
| 31 |
+
"\u30b5\u30f3\u30b7\u30e7\u30a6\u30a6\u30aa\u3092\u767a\u898b",
|
| 32 |
+
"\u30a2\u30db\u30ed\u30fc\u30c8\u30eb",
|
| 33 |
+
"\u30a6\u30b7\u30ac\u30a8\u30eb",
|
| 34 |
+
"\u30a2\u30de\u30ac\u30a8\u30eb",
|
| 35 |
+
"\u3064\u304b\u308c\u305f\u30ab\u30a8\u30eb",
|
| 36 |
+
"\u3068\u3093\u3061\u304d",
|
| 37 |
+
"\u30aa\u30b5\u30ac\u30e1",
|
| 38 |
+
"\u9f08",
|
| 39 |
+
"\u30c6\u30e9\u30d4\u30f3",
|
| 40 |
+
"\u30cf\u30b3\u30ac\u30e1",
|
| 41 |
+
"\u7e1e\u6a21\u69d8\u306e\u30e4\u30e2\u30ea",
|
| 42 |
+
"\u5171\u901a\u30a4\u30b0\u30a2\u30ca",
|
| 43 |
+
"\u30a2\u30e1\u30ea\u30ab\u30f3\u30ab\u30e1\u30ec\u30aa\u30f3",
|
| 44 |
+
"\u30a6\u30a3\u30c3\u30da\u30a4\u30eb",
|
| 45 |
+
"\u30a2\u30ac\u30de\u30c8\u30ab\u30b2",
|
| 46 |
+
"\u30d5\u30ea\u30eb\u30c8\u30ab\u30b2",
|
| 47 |
+
"\u30a2\u30ea\u30b2\u30fc\u30bf\u30fc\u30c8\u30ab\u30b2",
|
| 48 |
+
"\u30a2\u30e1\u30ea\u30ab\u30c9\u30af\u30c8\u30ab\u30b2",
|
| 49 |
+
"\u7dd1\u306e\u30c8\u30ab\u30b2",
|
| 50 |
+
"\u30a2\u30d5\u30ea\u30ab\u306e\u30ab\u30e1\u30ec\u30aa\u30f3",
|
| 51 |
+
"\u30b3\u30e2\u30c9\u30c9\u30e9\u30b4\u30f3",
|
| 52 |
+
"\u30a2\u30d5\u30ea\u30ab\u306e\u30ef\u30cb",
|
| 53 |
+
"\u30a2\u30e1\u30ea\u30ab\u30ef\u30cb",
|
| 54 |
+
"\u30c8\u30ea\u30b1\u30e9\u30c8\u30d7\u30b9",
|
| 55 |
+
"\u96f7\u306e\u30d8\u30d3",
|
| 56 |
+
"\u30ea\u30f3\u30b0\u30cd\u30c3\u30af\u30b9\u30cd\u30fc\u30af",
|
| 57 |
+
"\u30db\u30fc\u30ce\u30fc\u30b9\u30d8\u30d3",
|
| 58 |
+
"\u7dd1\u306e\u30d8\u30d3",
|
| 59 |
+
"\u30ad\u30f3\u30b0\u30b9\u30cd\u30fc\u30af",
|
| 60 |
+
"\u30ac\u30fc\u30bf\u30fc\u30b9\u30cd\u30fc\u30af",
|
| 61 |
+
"\u6c34\u86c7",
|
| 62 |
+
"\u3064\u308b\u30d8\u30d3",
|
| 63 |
+
"\u591c\u306e\u30d8\u30d3",
|
| 64 |
+
"\u30dc\u30a2\u30fb\u30b3\u30f3\u30b9\u30c8\u30ea\u30af\u30bf\u30fc",
|
| 65 |
+
"\u30ed\u30c3\u30af\u30d1\u30a4\u30bd\u30f3",
|
| 66 |
+
"\u30a4\u30f3\u30c9\u30b3\u30d6\u30e9",
|
| 67 |
+
"\u30b0\u30ea\u30fc\u30f3\u30de\u30f3\u30d0",
|
| 68 |
+
"\u30a6\u30df\u30d8\u30d3",
|
| 69 |
+
"\u30c4\u30ce\u30af\u30b5\u30ea\u30d8\u30d3",
|
| 70 |
+
"\u30c0\u30a4\u30e4",
|
| 71 |
+
"\u30b5\u30a4\u30c9\u30ef\u30a4\u30f3\u30c0\u30fc",
|
| 72 |
+
"\u4e09\u8449\u866b",
|
| 73 |
+
"\u5208\u308a\u5165\u308c\u4f5c\u696d\u8005",
|
| 74 |
+
"\u30b5\u30bd\u30ea",
|
| 75 |
+
"\u9ed2\u3068\u91d1\u306e\u5ead\u30af\u30e2",
|
| 76 |
+
"\u7d0d\u5c4b\u30af\u30e2",
|
| 77 |
+
"\u5ead\u30af\u30e2",
|
| 78 |
+
"\u30af\u30ed\u30b4\u30b1\u30b0\u30e2",
|
| 79 |
+
"\u30bf\u30e9\u30f3\u30c1\u30e5\u30e9",
|
| 80 |
+
"\u30aa\u30aa\u30ab\u30df\u306e\u30af\u30e2",
|
| 81 |
+
"\u30c0\u30cb",
|
| 82 |
+
"\u767e\u8db3",
|
| 83 |
+
"\u30af\u30ed\u30e9\u30a4\u30c1\u30e7\u30a6",
|
| 84 |
+
"\u96f7\u9ce5",
|
| 85 |
+
"\u3072\u3060\u3048\u308a\u306e\u4ed8\u3044\u305f\u30e9\u30a4\u30c1\u30e7\u30a6",
|
| 86 |
+
"\u8349\u539f\u30c1\u30ad\u30f3",
|
| 87 |
+
"\u5b54\u96c0",
|
| 88 |
+
"\u30a6\u30ba\u30e9",
|
| 89 |
+
"\u30e4\u30de\u30a6\u30ba\u30e9",
|
| 90 |
+
"\u30a2\u30d5\u30ea\u30ab\u306e\u7070\u8272",
|
| 91 |
+
"\u30b3\u30f3\u30b4\u30a6\u30a4\u30f3\u30b3",
|
| 92 |
+
"\u786b\u9ec4\u30c8\u30ad\u30aa\u30a6\u30e0",
|
| 93 |
+
"\u30a4\u30f3\u30b3",
|
| 94 |
+
"\u30d0\u30f3\u30b1\u30f3",
|
| 95 |
+
"\u8702\u98df\u3079\u308b\u4eba",
|
| 96 |
+
"\u30b5\u30a4\u30c1\u30e7\u30a6",
|
| 97 |
+
"\u30cf\u30c1\u30c9\u30ea",
|
| 98 |
+
"\u9310\u5634",
|
| 99 |
+
"\u30aa\u30aa\u30cf\u30b7",
|
| 100 |
+
"\u30c9\u30ec\u30a4\u30af",
|
| 101 |
+
"\u8d64\u30d6\u30ec\u30b9\u30c8\u30a2\u30a4\u30b5\u5c5e\u306e\u30ac\u30e2",
|
| 102 |
+
"\u30ac\u30c1\u30e7\u30a6",
|
| 103 |
+
"\u9ed2\u3044\u767d\u9ce5",
|
| 104 |
+
"\u30bf\u30b9\u30ab\u30fc\u30d3\u30fc\u30eb",
|
| 105 |
+
"\u30cf\u30ea\u30e2\u30b0\u30e9",
|
| 106 |
+
"\u30ab\u30e2\u30ce\u30cf\u30b7",
|
| 107 |
+
"\u30ef\u30e9\u30d3\u30fc",
|
| 108 |
+
"\u30b3\u30a2\u30e9",
|
| 109 |
+
"\u30a6\u30a9\u30f3\u30d0\u30c3\u30c8",
|
| 110 |
+
"\u30af\u30e9\u30b2",
|
| 111 |
+
"\u30a4\u30bd\u30ae\u30f3\u30c1\u30e3\u30af",
|
| 112 |
+
"\u8133\u30b5\u30f3\u30b4",
|
| 113 |
+
"\u6241\u5f62\u52d5\u7269",
|
| 114 |
+
"\u7dda\u866b",
|
| 115 |
+
"\u5dfb\u304d\u8c9d",
|
| 116 |
+
"\u30ab\u30bf\u30c4\u30e0\u30ea",
|
| 117 |
+
"\u30ca\u30e1\u30af\u30b8",
|
| 118 |
+
"\u30a6\u30df\u30a6\u30b7",
|
| 119 |
+
"\u30ad\u30c8\u30f3",
|
| 120 |
+
"\u30aa\u30a6\u30e0\u30ac\u30a4",
|
| 121 |
+
"\u30a2\u30e1\u30ea\u30ab\u30a4\u30c1\u30e7\u30a6\u30ac\u30cb",
|
| 122 |
+
"\u5ca9\u30ab\u30cb",
|
| 123 |
+
"\u30b7\u30aa\u30de\u30cd\u30ad",
|
| 124 |
+
"\u30bf\u30e9\u30d0\u30ac\u30cb",
|
| 125 |
+
"\u30a2\u30e1\u30ea\u30ab\u30f3\u30ed\u30d6\u30b9\u30bf\u30fc",
|
| 126 |
+
"\u4f0a\u52e2\u30a8\u30d3",
|
| 127 |
+
"\u30b6\u30ea\u30ac\u30cb",
|
| 128 |
+
"\u30e4\u30c9\u30ab\u30ea",
|
| 129 |
+
"\u7b49\u811a\u985e",
|
| 130 |
+
"\u30b3\u30a6\u30ce\u30c8\u30ea",
|
| 131 |
+
"\u30ca\u30d9\u30b3\u30a6",
|
| 132 |
+
"\u30d8\u30e9\u30b5\u30ae",
|
| 133 |
+
"\u30d5\u30e9\u30df\u30f3\u30b4",
|
| 134 |
+
"\u5c0f\u3055\u306a\u9752\u3044\u30b5\u30ae",
|
| 135 |
+
"\u30a2\u30e1\u30ea\u30ab\u30f3\u767d\u9dfa",
|
| 136 |
+
"\u306b\u304c\u308a",
|
| 137 |
+
"\u30af\u30ec\u30fc\u30f3",
|
| 138 |
+
"\u30c4\u30eb\u30e2\u30c9\u30ad\u79d1\u306e\u9ce5",
|
| 139 |
+
"\u30e8\u30fc\u30ed\u30d4\u30a2\u30f3\u6c34\u9ce5",
|
| 140 |
+
"\u30a2\u30e1\u30ea\u30ab\u30aa\u30aa\u30d0\u30f3",
|
| 141 |
+
"\u30ce\u30ac\u30f3",
|
| 142 |
+
"\u30ad\u30e7\u30a6\u30b8\u30e7\u30b7\u30ae",
|
| 143 |
+
"\u8d64\u62c5\u4fdd\u30b7\u30ae",
|
| 144 |
+
"\u30a2\u30ab\u30a2\u30b7\u30b7\u30ae",
|
| 145 |
+
"\u30aa\u30aa\u30cf\u30b7\u30b7\u30ae",
|
| 146 |
+
"\u30df\u30e4\u30b3\u30c9\u30ea",
|
| 147 |
+
"\u30da\u30ea\u30ab\u30f3",
|
| 148 |
+
"\u30ad\u30f3\u30b0\u30da\u30f3\u30ae\u30f3",
|
| 149 |
+
"\u30a2\u30eb\u30d0\u30c8\u30ed\u30b9",
|
| 150 |
+
"\u30b3\u30af\u30af\u30b8\u30e9",
|
| 151 |
+
"\u30b7\u30e3\u30c1",
|
| 152 |
+
"\u30b8\u30e5\u30b4\u30f3",
|
| 153 |
+
"\u30a2\u30b7\u30ab",
|
| 154 |
+
"\u30c1\u30ef\u30ef",
|
| 155 |
+
"\u72c6",
|
| 156 |
+
"\u30de\u30eb\u30c1\u30fc\u30ba\u72ac",
|
| 157 |
+
"\u72c6",
|
| 158 |
+
"\u30b7\u30fc\u30ba\u30fc\u3001\u30b7\u30fc\u30ba\u30fc",
|
| 159 |
+
"\u30d6\u30ec\u30ca\u30e0\u30b9\u30d1\u30cb\u30a8\u30eb",
|
| 160 |
+
"\u30d1\u30d4\u30e8\u30f3",
|
| 161 |
+
"\u30c8\u30a4\u30c6\u30ea\u30a2",
|
| 162 |
+
"\u30ed\u30fc\u30c7\u30b7\u30a2\u30f3\u30fb\u30ea\u30c3\u30b8\u30d0\u30c3\u30af",
|
| 163 |
+
"\u30a2\u30d5\u30ac\u30f3\u30cf\u30a6\u30f3\u30c9",
|
| 164 |
+
"\u30d0\u30bb\u30c3\u30c8\u72ac",
|
| 165 |
+
"\u30d3\u30fc\u30b0\u30eb",
|
| 166 |
+
"\u30d6\u30e9\u30c3\u30c9\u30cf\u30a6\u30f3\u30c9",
|
| 167 |
+
"\u30d6\u30eb\u30fc\u30c6\u30a3\u30c3\u30af",
|
| 168 |
+
"\u9ed2\u3068\u9ec4\u8910\u8272\u306e\u731f\u72ac",
|
| 169 |
+
"\u30a6\u30a9\u30fc\u30ab\u30fc\u30cf\u30a6\u30f3\u30c9",
|
| 170 |
+
"\u30a4\u30f3\u30b0\u30ea\u30c3\u30b7\u30e5\u30d5\u30a9\u30c3\u30af\u30b9\u30cf\u30a6\u30f3\u30c9",
|
| 171 |
+
"\u30ec\u30c3\u30c9\u30dc\u30fc\u30f3",
|
| 172 |
+
"\u30dc\u30eb\u30be\u30a4",
|
| 173 |
+
"\u30a2\u30a4\u30ea\u30c3\u30b7\u30e5\u30fb\u30a6\u30eb\u30d5\u30cf\u30a6\u30f3\u30c9",
|
| 174 |
+
"\u30a4\u30bf\u30ea\u30a2\u30f3\u30b0\u30ec\u30fc\u30cf\u30a6\u30f3\u30c9",
|
| 175 |
+
"\u30a6\u30a3\u30da\u30c3\u30c8",
|
| 176 |
+
"\u30a4\u30d3\u30b5\u30cf\u30a6\u30f3\u30c9",
|
| 177 |
+
"\u30ce\u30eb\u30a6\u30a7\u30fc\u30a8\u30eb\u30af\u30cf\u30a6\u30f3\u30c9",
|
| 178 |
+
"\u30aa\u30c3\u30bf\u30fc\u30cf\u30a6\u30f3\u30c9",
|
| 179 |
+
"\u30b5\u30eb\u30fc\u30ad",
|
| 180 |
+
"\u30b9\u30b3\u30c6\u30a3\u30c3\u30b7\u30e5\u30fb\u30c7\u30a3\u30a2\u30cf\u30a6\u30f3\u30c9",
|
| 181 |
+
"\u30ef\u30a4\u30de\u30e9\u30ca\u30fc",
|
| 182 |
+
"\u30b9\u30bf\u30d5\u30a9\u30fc\u30c9\u30b7\u30e3\u30fc\u30d6\u30eb\u30c6\u30ea\u30a2",
|
| 183 |
+
"\u30a2\u30e1\u30ea\u30ab\u30f3\u30fb\u30b9\u30bf\u30c3\u30d5\u30a9\u30fc\u30c9\u30b7\u30e3\u30fc\u30fb\u30c6\u30ea\u30a2",
|
| 184 |
+
"\u30d9\u30c9\u30ea\u30f3\u30c8\u30f3\u30c6\u30ea\u30a2",
|
| 185 |
+
"\u30dc\u30fc\u30c0\u30fc\u30c6\u30ea\u30a2",
|
| 186 |
+
"\u30b1\u30ea\u30fc\u30d6\u30eb\u30fc\u30c6\u30ea\u30a2",
|
| 187 |
+
"\u30a2\u30a4\u30ea\u30c3\u30b7\u30e5\u30c6\u30ea\u30a2",
|
| 188 |
+
"\u30ce\u30fc\u30d5\u30a9\u30fc\u30af\u30c6\u30ea\u30a2",
|
| 189 |
+
"\u30ce\u30fc\u30ea\u30c3\u30c1\u30fb\u30c6\u30ea\u30a2",
|
| 190 |
+
"\u30e8\u30fc\u30af\u30b7\u30e3\u30fc\u30c6\u30ea\u30a2",
|
| 191 |
+
"\u30ef\u30a4\u30e4\u30fc\u30d8\u30a2\u30fc\u30fb\u30d5\u30a9\u30c3\u30af\u30b9\u30c6\u30ea\u30a2",
|
| 192 |
+
"\u30ec\u30fc\u30af\u30e9\u30f3\u30c9\u30c6\u30ea\u30a2",
|
| 193 |
+
"\u30b7\u30fc\u30ea\u30fc\u30cf\u30e0\u30c6\u30ea\u30a2",
|
| 194 |
+
"\u30a8\u30a2\u30c7\u30fc\u30eb",
|
| 195 |
+
"\u30b1\u30eb\u30f3",
|
| 196 |
+
"\u30aa\u30fc\u30b9\u30c8\u30e9\u30ea\u30a2\u30c6\u30ea\u30a2",
|
| 197 |
+
"\u30c0\u30f3\u30c7\u30a3\u30c7\u30a3\u30f3\u30e2\u30f3\u30c8\u30c6\u30ea\u30a2",
|
| 198 |
+
"\u30dc\u30b9\u30c8\u30f3\u30d6\u30eb",
|
| 199 |
+
"\u30df\u30cb\u30c1\u30e5\u30a2\u30b7\u30e5\u30ca\u30a6\u30b6\u30fc",
|
| 200 |
+
"\u30b8\u30e3\u30a4\u30a2\u30f3\u30c8\u30b7\u30e5\u30ca\u30a6\u30b6\u30fc",
|
| 201 |
+
"\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u30b7\u30e5\u30ca\u30a6\u30b6\u30fc",
|
| 202 |
+
"\u30b9\u30b3\u30c3\u30c1\u30c6\u30ea\u30a2",
|
| 203 |
+
"\u30c1\u30d9\u30bf\u30f3\u30c6\u30ea\u30a2",
|
| 204 |
+
"\u30b7\u30eb\u30ad\u30fc\u30c6\u30ea\u30a2",
|
| 205 |
+
"\u30bd\u30d5\u30c8\u30b3\u30fc\u30c6\u30c3\u30c9\u30fb\u30a6\u30a3\u30fc\u30c8\u30f3\u30fb\u30c6\u30ea\u30a2",
|
| 206 |
+
"\u30a6\u30a7\u30b9\u30c8\u30cf\u30a4\u30e9\u30f3\u30c9\u30db\u30ef\u30a4\u30c8\u30c6\u30ea\u30a2",
|
| 207 |
+
"\u30e9\u30b5",
|
| 208 |
+
"\u30d5\u30e9\u30c3\u30c8\u30b3\u30fc\u30c6\u30c3\u30c9\u30fb\u30ec\u30c8\u30ea\u30fc\u30d0\u30fc",
|
| 209 |
+
"\u30ab\u30fc\u30ea\u30fc\u30b3\u30fc\u30c6\u30a3\u30f3\u30b0\u3055\u308c\u305f\u30ec\u30c8\u30ea\u30fc\u30d0\u30fc",
|
| 210 |
+
"\u30b4\u30fc\u30eb\u30c7\u30f3\u30ec\u30c8\u30ea\u30d0\u30fc",
|
| 211 |
+
"\u30e9\u30d6\u30e9\u30c9\u30eb\u30fb\u30ec\u30c8\u30ea\u30fc\u30d0\u30fc\u72ac",
|
| 212 |
+
"\u30c1\u30a7\u30b5\u30d4\u30fc\u30af\u6e7e\u30ec\u30c8\u30ea\u30fc\u30d0\u30fc",
|
| 213 |
+
"\u30b8\u30e3\u30fc\u30de\u30f3\u30fb\u30b7\u30e7\u30fc\u30c8\u30d8\u30a2\u30fb\u30dd\u30a4\u30f3\u30bf",
|
| 214 |
+
"\u30d3\u30ba\u30e9",
|
| 215 |
+
"\u30a4\u30f3\u30b0\u30ea\u30c3\u30b7\u30e5\u30bb\u30c3\u30bf\u30fc",
|
| 216 |
+
"\u30a2\u30a4\u30ea\u30c3\u30b7\u30e5\u30bb\u30c3\u30bf\u30fc",
|
| 217 |
+
"\u30b4\u30fc\u30c9\u30f3\u30bb\u30c3\u30bf\u30fc",
|
| 218 |
+
"\u30d6\u30ea\u30bf\u30cb\u30fc\u30b9\u30d1\u30cb\u30a8\u30eb",
|
| 219 |
+
"\u30af\u30e9\u30f3\u30d0\u30fc",
|
| 220 |
+
"\u30a4\u30f3\u30b0\u30ea\u30c3\u30b7\u30e5\u30b9\u30d7\u30ea\u30f3\u30ac\u30fc",
|
| 221 |
+
"\u30a6\u30a7\u30eb\u30b7\u30e5\u30b9\u30d7\u30ea\u30f3\u30ac\u30fc\u30b9\u30d1\u30cb\u30a8\u30eb",
|
| 222 |
+
"\u30b3\u30c3\u30ab\u30fc\u30b9\u30d1\u30cb\u30a8\u30eb",
|
| 223 |
+
"\u30b5\u30bb\u30c3\u30af\u30b9\u30b9\u30d1\u30cb\u30a8\u30eb",
|
| 224 |
+
"\u30a2\u30a4\u30eb\u30e9\u30f3\u30c9\u306e\u30a6\u30a9\u30fc\u30bf\u30fc\u30b9\u30d1\u30cb\u30a8\u30eb",
|
| 225 |
+
"\u30af\u30d0\u30fc\u30b9\u72ac",
|
| 226 |
+
"\u30b9\u30ad\u30c3\u30d1\u30fc\u30ad\u30fc",
|
| 227 |
+
"\u30d9\u30eb\u30b8\u30a2\u30f3\u30fb\u30b7\u30a7\u30d1\u30fc\u30c9\u30fb\u30c9\u30c3\u30b0\u30fb\u30b0\u30ed\u30fc\u30cd\u30f3\u30c0\u30fc\u30eb",
|
| 228 |
+
"\u30de\u30ea\u30ce\u30a2",
|
| 229 |
+
"\u30d6\u30ea\u30a2\u30fc\u30eb",
|
| 230 |
+
"\u30b1\u30eb\u30d4\u30fc",
|
| 231 |
+
"\u30b3\u30e2\u30f3\u30c9\u30fc\u30eb",
|
| 232 |
+
"\u30aa\u30fc\u30eb\u30c9\u30a4\u30f3\u30b0\u30ea\u30c3\u30b7\u30e5\u30b7\u30fc\u30d7\u30c9\u30c3\u30b0",
|
| 233 |
+
"\u30b7\u30a7\u30c8\u30e9\u30f3\u30c9\u30b7\u30fc\u30d7\u30c9\u30c3\u30b0",
|
| 234 |
+
"\u30b3\u30ea\u30fc",
|
| 235 |
+
"\u30dc\u30fc\u30c0\u30fc\u30b3\u30ea\u30fc",
|
| 236 |
+
"\u30d6\u30fc\u30f4\u30a3\u30a8\u30fb\u30c7\u30fb\u30d5\u30e9\u30f3\u30c9\u30eb",
|
| 237 |
+
"\u30ed\u30c3\u30c8\u30ef\u30a4\u30e9\u30fc",
|
| 238 |
+
"\u30b8\u30e3\u30fc\u30de\u30f3\u30b7\u30a7\u30d1\u30fc\u30c9",
|
| 239 |
+
"\u30c9\u30fc\u30d9\u30eb\u30de\u30f3\u72ac",
|
| 240 |
+
"\u30df\u30cb\u30c1\u30e5\u30a2\u30d4\u30f3\u30b7\u30e3\u30fc",
|
| 241 |
+
"\u30b0\u30ec\u30fc\u30bf\u30fc\u30b9\u30a4\u30b9\u30de\u30a6\u30f3\u30c6\u30f3\u30c9\u30c3\u30b0",
|
| 242 |
+
"\u30d0\u30fc\u30cd\u30fc\u30ba\u30de\u30a6\u30f3\u30c6\u30f3\u30c9\u30c3\u30b0",
|
| 243 |
+
"\u30a2\u30c3\u30da\u30f3\u30c4\u30a7\u30eb",
|
| 244 |
+
"\u30a8\u30f3\u30c8\u30ec\u30d6\u30c3\u30b7\u30e3\u30fc",
|
| 245 |
+
"\u30dc\u30af\u30b5\u30fc",
|
| 246 |
+
"\u30d6\u30eb\u30de\u30b9\u30c1\u30d5",
|
| 247 |
+
"\u30c1\u30d9\u30c3\u30c8\u30de\u30b9\u30c1\u30d5",
|
| 248 |
+
"\u30d5\u30ec\u30f3\u30c1\u30d6\u30eb\u30c9\u30c3\u30b0",
|
| 249 |
+
"\u30b0\u30ec\u30fc\u30c8\u30c7\u30fc\u30f3",
|
| 250 |
+
"\u30bb\u30f3\u30c8\u30d0\u30fc\u30ca\u30fc\u30c9",
|
| 251 |
+
"\u30a8\u30b9\u30ad\u30e2\u30fc\u72ac",
|
| 252 |
+
"\u30de\u30e9\u30df\u30e5\u30fc\u30c8",
|
| 253 |
+
"\u30b7\u30d9\u30ea\u30a2\u30f3\u30cf\u30b9\u30ad\u30fc",
|
| 254 |
+
"\u30c0\u30eb\u30e1\u30b7\u30a2\u30f3",
|
| 255 |
+
"\u30a2\u30fc\u30d5\u30a7\u30f3\u30d4\u30f3\u30b7\u30e3\u30fc",
|
| 256 |
+
"\u30d0\u30bb\u30f3\u30b8\u30fc",
|
| 257 |
+
"\u30d1\u30b0",
|
| 258 |
+
"\u30ec\u30aa\u30f3\u30d0\u30fc\u30b0",
|
| 259 |
+
"\u30cb\u30e5\u30fc\u30d5\u30a1\u30f3\u30c9\u30e9\u30f3\u30c9\u5cf6",
|
| 260 |
+
"\u30b0\u30ec\u30fc\u30c8\u30d4\u30ec\u30cb\u30fc\u30ba",
|
| 261 |
+
"\u30b5\u30e2\u30a8\u30c9",
|
| 262 |
+
"\u30dd\u30e1\u30e9\u30cb\u30a2\u30f3",
|
| 263 |
+
"\u30c1\u30e3\u30a6",
|
| 264 |
+
"\u30ad\u30fc\u30b9\u30db\u30f3\u30c9",
|
| 265 |
+
"\u30d6\u30e9\u30d0\u30f3\u30bd\u30f3\u30b0\u30ea\u30d5\u30a9\u30f3",
|
| 266 |
+
"\u30da\u30f3\u30d6\u30ed\u30fc\u30af",
|
| 267 |
+
"\u30ab\u30fc\u30c7\u30a3\u30ac\u30f3",
|
| 268 |
+
"\u30c8\u30a4\u30d7\u30fc\u30c9\u30eb",
|
| 269 |
+
"\u30df\u30cb\u30c1\u30e5\u30a2\u30d7\u30fc\u30c9\u30eb",
|
| 270 |
+
"\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u30d7\u30fc\u30c9\u30eb",
|
| 271 |
+
"\u30e1\u30ad\u30b7\u30ab\u30f3\u30fb\u30d8\u30a2\u30fc\u30ec\u30b9",
|
| 272 |
+
"\u30b7\u30f3\u30ea\u30f3\u30aa\u30aa\u30ab\u30df",
|
| 273 |
+
"\u767d\u3044\u30aa\u30aa\u30ab\u30df",
|
| 274 |
+
"\u30ec\u30c3\u30c9\u30a6\u30eb\u30d5",
|
| 275 |
+
"\u30b3\u30e8\u30fc\u30c6",
|
| 276 |
+
"\u30c7\u30a3\u30f3\u30b4",
|
| 277 |
+
"\u30c9\u30fc\u30eb",
|
| 278 |
+
"\u30ea\u30ab\u30aa\u30f3",
|
| 279 |
+
"\u30cf\u30a4\u30a8\u30ca",
|
| 280 |
+
"\u30a2\u30ab\u30ae\u30c4\u30cd",
|
| 281 |
+
"\u30ad\u30c3\u30c8\u30ad\u30c4\u30cd",
|
| 282 |
+
"\u30db\u30c3\u30ad\u30e7\u30af\u30ae\u30c4\u30cd",
|
| 283 |
+
"\u7070\u8272\u306e\u30ad\u30c4\u30cd",
|
| 284 |
+
"\u30bf\u30d3\u30fc",
|
| 285 |
+
"\u864e\u732b",
|
| 286 |
+
"\u30da\u30eb\u30b7\u30e3\u732b",
|
| 287 |
+
"\u30b7\u30e3\u30e0\u732b",
|
| 288 |
+
"\u30a8\u30b8\u30d7\u30c8\u306e\u732b",
|
| 289 |
+
"\u30af\u30fc\u30ac\u30fc",
|
| 290 |
+
"\u30aa\u30aa\u30e4\u30de\u30cd\u30b3",
|
| 291 |
+
"\u30d2\u30e7\u30a6",
|
| 292 |
+
"\u30e6\u30ad\u30d2\u30e7\u30a6",
|
| 293 |
+
"\u30b8\u30e3\u30ac\u30fc",
|
| 294 |
+
"\u30e9\u30a4\u30aa\u30f3",
|
| 295 |
+
"\u864e",
|
| 296 |
+
"\u30c1\u30fc\u30bf\u30fc",
|
| 297 |
+
"\u30d2\u30b0\u30de",
|
| 298 |
+
"\u30a2\u30e1\u30ea\u30ab\u30af\u30ed\u30af\u30de",
|
| 299 |
+
"\u6c37\u306e\u30af\u30de",
|
| 300 |
+
"\u30ca\u30de\u30b1\u30b0\u30de",
|
| 301 |
+
"\u30de\u30f3\u30b0\u30fc\u30b9",
|
| 302 |
+
"\u30df\u30fc\u30a2\u30ad\u30e3\u30c3\u30c8",
|
| 303 |
+
"\u30cf\u30f3\u30df\u30e7\u30a6",
|
| 304 |
+
"\u3066\u3093\u3068\u3046\u866b",
|
| 305 |
+
"\u30b0\u30e9\u30f3\u30c9\u30d3\u30fc\u30c8\u30eb",
|
| 306 |
+
"\u30ab\u30df\u30ad\u30ea\u30e0\u30b7",
|
| 307 |
+
"\u30cf\u30e0\u30b7",
|
| 308 |
+
"\u30d5\u30f3\u30b3\u30ed\u30ac\u30b7",
|
| 309 |
+
"\u30b5\u30a4\u30cf\u30e0\u30b7",
|
| 310 |
+
"\u30be\u30a6\u30e0\u30b7",
|
| 311 |
+
"\u30cf\u30a8",
|
| 312 |
+
"\u8702",
|
| 313 |
+
"\u87fb",
|
| 314 |
+
"\u30d0\u30c3\u30bf",
|
| 315 |
+
"\u30af\u30ea\u30b1\u30c3\u30c8",
|
| 316 |
+
"\u6756",
|
| 317 |
+
"\u30b4\u30ad\u30d6\u30ea",
|
| 318 |
+
"\u30ab\u30de\u30ad\u30ea",
|
| 319 |
+
"\u8749",
|
| 320 |
+
"\u30e8\u30b3\u30d0\u30a4",
|
| 321 |
+
"\u30af\u30b5\u30ab\u30b2\u30ed\u30a6",
|
| 322 |
+
"\u30c8\u30f3\u30dc",
|
| 323 |
+
"\u30a4\u30c8\u30c8\u30f3\u30dc",
|
| 324 |
+
"\u63d0\u7763",
|
| 325 |
+
"\u30ea\u30f3\u30b0\u30ec\u30c3\u30c8",
|
| 326 |
+
"\u541b\u4e3b",
|
| 327 |
+
"\u30e2\u30f3\u30b7\u30ed\u30c1\u30e7\u30a6",
|
| 328 |
+
"\u786b\u9ec4\u8776",
|
| 329 |
+
"\u30b7\u30b8\u30df\u30c1\u30e7\u30a6",
|
| 330 |
+
"\u30d2\u30c8\u30c7",
|
| 331 |
+
"\u3046\u306b",
|
| 332 |
+
"\u30ca\u30de\u30b3",
|
| 333 |
+
"\u6728\u306e\u30a6\u30b5\u30ae",
|
| 334 |
+
"\u91ce\u30a6\u30b5\u30ae",
|
| 335 |
+
"\u30a2\u30f3\u30b4\u30e9",
|
| 336 |
+
"\u30cf\u30e0\u30b9\u30bf\u30fc",
|
| 337 |
+
"\u30e4\u30de\u30a2\u30e9\u30b7",
|
| 338 |
+
"\u30ad\u30c4\u30cd\u30ea\u30b9",
|
| 339 |
+
"\u30de\u30fc\u30e2\u30c3\u30c8",
|
| 340 |
+
"\u30d3\u30fc\u30d0\u30fc",
|
| 341 |
+
"\u30e2\u30eb\u30e2\u30c3\u30c8",
|
| 342 |
+
"\u6817\u8272",
|
| 343 |
+
"\u30b7\u30de\u30a6\u30de",
|
| 344 |
+
"\u8c5a",
|
| 345 |
+
"\u30a4\u30ce\u30b7\u30b7",
|
| 346 |
+
"\u30a4\u30dc\u30a4\u30ce\u30b7\u30b7",
|
| 347 |
+
"\u30ab\u30d0",
|
| 348 |
+
"\u96c4\u725b",
|
| 349 |
+
"\u6c34\u725b",
|
| 350 |
+
"\u30d0\u30a4\u30bd\u30f3",
|
| 351 |
+
"\u30e9\u30e0",
|
| 352 |
+
"\u30d3\u30c3\u30b0\u30db\u30fc\u30f3",
|
| 353 |
+
"\u30a2\u30a4\u30d9\u30c3\u30af\u30b9",
|
| 354 |
+
"\u30cf\u30fc\u30c6\u30d3\u30fc\u30b9\u30c8",
|
| 355 |
+
"\u30a4\u30f3\u30d1\u30e9",
|
| 356 |
+
"\u30ac\u30bc\u30eb",
|
| 357 |
+
"\u30a2\u30e9\u30d3\u30a2\u30e9\u30af\u30c0",
|
| 358 |
+
"\u30e9\u30de",
|
| 359 |
+
"\u30a4\u30bf\u30c1",
|
| 360 |
+
"\u30df\u30f3\u30af",
|
| 361 |
+
"\u30b1\u30ca\u30ac\u30a4\u30bf\u30c1",
|
| 362 |
+
"\u30af\u30ed\u30a2\u30b7\u30a4\u30bf\u30c1",
|
| 363 |
+
"\u30ab\u30ef\u30a6\u30bd",
|
| 364 |
+
"\u30b9\u30ab\u30f3\u30af",
|
| 365 |
+
"\u72f8",
|
| 366 |
+
"\u30a2\u30eb\u30de\u30b8\u30ed",
|
| 367 |
+
"\u30df\u30e6\u30d3\u30ca\u30de\u30b1\u30e2\u30ce",
|
| 368 |
+
"\u30aa\u30e9\u30f3\u30a6\u30fc\u30bf\u30f3",
|
| 369 |
+
"\u30b4\u30ea\u30e9",
|
| 370 |
+
"\u30c1\u30f3\u30d1\u30f3\u30b8\u30fc",
|
| 371 |
+
"\u30c6\u30ca\u30ac\u30b6\u30eb",
|
| 372 |
+
"\u30d5\u30af\u30ed\u30c6\u30ca\u30ac\u30b6\u30eb",
|
| 373 |
+
"\u30aa\u30ca\u30ac\u30b6\u30eb",
|
| 374 |
+
"\u30d1\u30bf\u30b9",
|
| 375 |
+
"\u30d2\u30d2",
|
| 376 |
+
"\u30de\u30ab\u30af",
|
| 377 |
+
"\u30e4\u30bb\u30b6\u30eb",
|
| 378 |
+
"\u30b3\u30ed\u30d6\u30b9\u5c5e",
|
| 379 |
+
"\u30c6\u30f3\u30b0\u30b6\u30eb",
|
| 380 |
+
"\u30de\u30fc\u30e2\u30bb\u30c3\u30c8",
|
| 381 |
+
"\u30aa\u30de\u30ad\u30b6\u30eb",
|
| 382 |
+
"\u30db\u30a8\u30b6\u30eb",
|
| 383 |
+
"\u30c6\u30a3\u30c6\u30a3",
|
| 384 |
+
"\u30af\u30e2\u30b6\u30eb",
|
| 385 |
+
"\u30ea\u30b9\u30b6\u30eb",
|
| 386 |
+
"\u30de\u30c0\u30ac\u30b9\u30ab\u30eb\u732b",
|
| 387 |
+
"\u30a4\u30f3\u30c9\u30ea",
|
| 388 |
+
"\u30a4\u30f3\u30c9\u30be\u30a6",
|
| 389 |
+
"\u30a2\u30d5\u30ea\u30ab\u30be\u30a6",
|
| 390 |
+
"\u30ec\u30c3\u30b5\u30fc\u30d1\u30f3\u30c0",
|
| 391 |
+
"\u30b8\u30e3\u30a4\u30a2\u30f3\u30c8\u30d1\u30f3\u30c0",
|
| 392 |
+
"\u30d0\u30e9\u30af\u30fc\u30bf",
|
| 393 |
+
"\u30a6\u30ca\u30ae",
|
| 394 |
+
"\u30ae\u30f3\u30b6\u30b1",
|
| 395 |
+
"\u5ca9\u306e\u7f8e\u3057\u3055",
|
| 396 |
+
"\u30af\u30de\u30ce\u30df",
|
| 397 |
+
"\u30c1\u30e7\u30a6\u30b6\u30e1",
|
| 398 |
+
"\u30ac\u30fc",
|
| 399 |
+
"\u30df\u30ce\u30ab\u30b5\u30b4",
|
| 400 |
+
"\u30d5\u30b0",
|
| 401 |
+
"\u305d\u308d\u3070\u3093",
|
| 402 |
+
"\u30a2\u30d0\u30e4",
|
| 403 |
+
"\u30a2\u30ab\u30c7\u30df\u30c3\u30af\u30ac\u30a6\u30f3",
|
| 404 |
+
"\u30a2\u30b3\u30fc\u30c7\u30a3\u30aa\u30f3",
|
| 405 |
+
"\u30a2\u30b3\u30fc\u30b9\u30c6\u30a3\u30c3\u30af\u30ae\u30bf\u30fc",
|
| 406 |
+
"\u7a7a\u6bcd",
|
| 407 |
+
"\u65c5\u5ba2\u6a5f",
|
| 408 |
+
"\u98db\u884c\u8239",
|
| 409 |
+
"\u796d\u58c7",
|
| 410 |
+
"\u6551\u6025\u8eca",
|
| 411 |
+
"\u4e21\u751f\u985e",
|
| 412 |
+
"\u30a2\u30ca\u30ed\u30b0\u6642\u8a08",
|
| 413 |
+
"\u990a\u8702\u5834",
|
| 414 |
+
"\u30a8\u30d7\u30ed\u30f3",
|
| 415 |
+
"\u3054\u307f\u5165\u308c",
|
| 416 |
+
"\u30a2\u30b5\u30eb\u30c8\u30e9\u30a4\u30d5\u30eb",
|
| 417 |
+
"\u30d0\u30c3\u30af\u30d1\u30c3\u30af",
|
| 418 |
+
"\u30d9\u30fc\u30ab\u30ea\u30fc",
|
| 419 |
+
"\u5e73\u5747\u53f0",
|
| 420 |
+
"\u30d0\u30eb\u30fc\u30f3",
|
| 421 |
+
"\u30dc\u30fc\u30eb\u30da\u30f3",
|
| 422 |
+
"\u30d0\u30f3\u30c9\u30a8\u30a4\u30c9",
|
| 423 |
+
"\u30d0\u30f3\u30b8\u30e7\u30fc",
|
| 424 |
+
"\u30d0\u30cb\u30b9\u30bf\u30fc",
|
| 425 |
+
"\u30d0\u30fc\u30d9\u30eb",
|
| 426 |
+
"\u7406\u9aea\u5e97\u306e\u6905\u5b50",
|
| 427 |
+
"\u7406\u9aea\u5e97",
|
| 428 |
+
"\u7d0d\u5c4b",
|
| 429 |
+
"\u30d0\u30ed\u30e1\u30fc\u30bf\u30fc",
|
| 430 |
+
"\u30d0\u30ec\u30eb",
|
| 431 |
+
"\u30d0\u30ed\u30fc",
|
| 432 |
+
"\u91ce\u7403",
|
| 433 |
+
"\u30d0\u30b9\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb",
|
| 434 |
+
"\u30d0\u30b7\u30cd\u30c3\u30c8",
|
| 435 |
+
"\u30d5\u30a1\u30b4\u30c3\u30c8",
|
| 436 |
+
"\u6c34\u6cf3\u5e3d",
|
| 437 |
+
"\u30d0\u30b9\u30bf\u30aa\u30eb",
|
| 438 |
+
"\u30d0\u30b9\u30bf\u30d6",
|
| 439 |
+
"\u30d3\u30fc\u30c1\u30ef\u30b4\u30f3",
|
| 440 |
+
"\u30d3\u30fc\u30b3\u30f3",
|
| 441 |
+
"\u30d3\u30fc\u30ab\u30fc",
|
| 442 |
+
"\u30d9\u30a2\u30b9\u30ad\u30f3",
|
| 443 |
+
"\u30d3\u30fc\u30eb\u74f6",
|
| 444 |
+
"\u30d3\u30fc\u30eb\u30b0\u30e9\u30b9",
|
| 445 |
+
"\u30d9\u30eb\u30b3\u30fc\u30c8",
|
| 446 |
+
"\u30d3\u30d6",
|
| 447 |
+
"\u81ea\u8ee2\u8eca",
|
| 448 |
+
"\u30d3\u30ad\u30cb",
|
| 449 |
+
"\u30d0\u30a4\u30f3\u30c0\u30fc",
|
| 450 |
+
"\u53cc\u773c\u93e1",
|
| 451 |
+
"\u5de3\u7bb1",
|
| 452 |
+
"\u30dc\u30fc\u30c8\u30cf\u30a6\u30b9",
|
| 453 |
+
"\u30dc\u30d6\u30b9\u30ec\u30fc",
|
| 454 |
+
"\u30eb\u30fc\u30d7\u30bf\u30a4",
|
| 455 |
+
"\u30dc\u30f3\u30cd\u30c3\u30c8",
|
| 456 |
+
"\u672c\u68da",
|
| 457 |
+
"\u66f8\u5e97",
|
| 458 |
+
"\u74f6\u306e\u30ad\u30e3\u30c3\u30d7",
|
| 459 |
+
"\u5f13",
|
| 460 |
+
"\u3061\u3087\u3046\u30cd\u30af\u30bf\u30a4",
|
| 461 |
+
"\u771f\u936e",
|
| 462 |
+
"\u30d6\u30e9\u30b8\u30e3\u30fc",
|
| 463 |
+
"\u9632\u6ce2\u5824",
|
| 464 |
+
"\u80f8\u5f53\u3066",
|
| 465 |
+
"\u307b\u3046\u304d",
|
| 466 |
+
"\u30d0\u30b1\u30c4",
|
| 467 |
+
"\u30d0\u30c3\u30af\u30eb",
|
| 468 |
+
"\u9632\u5f3e\u30c1\u30e7\u30c3\u30ad",
|
| 469 |
+
"\u65b0\u5e79\u7dda",
|
| 470 |
+
"\u7cbe\u8089\u5e97",
|
| 471 |
+
"\u30bf\u30af\u30b7\u30fc",
|
| 472 |
+
"\u5927\u91dc",
|
| 473 |
+
"\u30ad\u30e3\u30f3\u30c9\u30eb",
|
| 474 |
+
"\u5927\u7832",
|
| 475 |
+
"\u30ab\u30cc\u30fc",
|
| 476 |
+
"\u7f36\u5207\u308a",
|
| 477 |
+
"\u30ab\u30fc\u30c7\u30a3\u30ac\u30f3",
|
| 478 |
+
"\u8eca\u306e\u30df\u30e9\u30fc",
|
| 479 |
+
"\u56de\u8ee2\u6728\u99ac",
|
| 480 |
+
"\u5927\u5de5\u306e\u30ad\u30c3\u30c8",
|
| 481 |
+
"\u30ab\u30fc\u30c8\u30f3",
|
| 482 |
+
"\u8eca\u306e\u30db\u30a4\u30fc\u30eb",
|
| 483 |
+
"\u73fe\u91d1\u81ea\u52d5\u9810\u3051\u6255\u3044\u6a5f",
|
| 484 |
+
"\u30ab\u30bb\u30c3\u30c8",
|
| 485 |
+
"\u30ab\u30bb\u30c3\u30c8\u30fb\u30d7\u30ec\u30fc\u30e4\u30fc",
|
| 486 |
+
"\u57ce",
|
| 487 |
+
"\u30ab\u30bf\u30de\u30e9\u30f3",
|
| 488 |
+
"CD\u30d7\u30ec\u30fc\u30e4\u30fc",
|
| 489 |
+
"\u30c1\u30a7\u30ed",
|
| 490 |
+
"\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3",
|
| 491 |
+
"\u9396",
|
| 492 |
+
"\u30c1\u30a7\u30fc\u30f3\u30ea\u30f3\u30af\u30d5\u30a7\u30f3\u30b9",
|
| 493 |
+
"\u30c1\u30a7\u30fc\u30f3\u30e1\u30fc\u30eb",
|
| 494 |
+
"\u30c1\u30a7\u30fc\u30f3\u30bd\u30fc",
|
| 495 |
+
"\u80f8",
|
| 496 |
+
"\u30b7\u30d5\u30a9\u30cb\u30a2",
|
| 497 |
+
"\u30c1\u30e3\u30a4\u30e0",
|
| 498 |
+
"\u4e2d\u56fd\u30ad\u30e3\u30d3\u30cd\u30c3\u30c8",
|
| 499 |
+
"\u30af\u30ea\u30b9\u30de\u30b9\u306e\u9774\u4e0b",
|
| 500 |
+
"\u6559\u4f1a",
|
| 501 |
+
"\u6620\u753b",
|
| 502 |
+
"\u30af\u30ea\u30fc\u30d0\u30fc",
|
| 503 |
+
"\u5d16\u306e\u4f4f\u5c45",
|
| 504 |
+
"\u30de\u30f3\u30c8",
|
| 505 |
+
"\u30af\u30ed\u30c3\u30b0",
|
| 506 |
+
"\u30ab\u30af\u30c6\u30eb\u30b7\u30a7\u30fc\u30ab\u30fc",
|
| 507 |
+
"\u30b3\u30fc\u30d2\u30fc\u30de\u30b0",
|
| 508 |
+
"\u30b3\u30fc\u30d2\u30fc\u30dd\u30c3\u30c8",
|
| 509 |
+
"\u30b3\u30a4\u30eb",
|
| 510 |
+
"\u30c0\u30a4\u30e4\u30eb\u9320",
|
| 511 |
+
"\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u30ad\u30fc\u30dc\u30fc\u30c9",
|
| 512 |
+
"\u88fd\u83d3",
|
| 513 |
+
"\u30b3\u30f3\u30c6\u30ca\u8239",
|
| 514 |
+
"\u30b3\u30f3\u30d0\u30fc\u30c1\u30d6\u30eb",
|
| 515 |
+
"\u30b3\u30fc\u30af\u30b9\u30af\u30ea\u30e5\u30fc",
|
| 516 |
+
"\u30b3\u30eb\u30cd\u30c3\u30c8",
|
| 517 |
+
"\u30ab\u30a6\u30dc\u30fc\u30a4\u30d6\u30fc\u30c4",
|
| 518 |
+
"\u30ab\u30a6\u30dc\u30fc\u30a4\u30cf\u30c3\u30c8",
|
| 519 |
+
"\u30af\u30ec\u30fc\u30c9\u30eb",
|
| 520 |
+
"\u30af\u30ec\u30fc\u30f3",
|
| 521 |
+
"\u30af\u30e9\u30c3\u30b7\u30e5\u30d8\u30eb\u30e1\u30c3\u30c8",
|
| 522 |
+
"\u6728\u7bb1",
|
| 523 |
+
"\u30d9\u30d3\u30fc\u30d9\u30c3\u30c9",
|
| 524 |
+
"\u30af\u30ed\u30fc\u30af\u30dd\u30c3\u30c8",
|
| 525 |
+
"\u30af\u30ed\u30b1\u30c3\u30c8\u30dc\u30fc\u30eb",
|
| 526 |
+
"\u677e\u8449\u6756",
|
| 527 |
+
"\u80f8\u5f53\u3066",
|
| 528 |
+
"\u30c0\u30e0",
|
| 529 |
+
"\u673a",
|
| 530 |
+
"\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc",
|
| 531 |
+
"\u30c0\u30a4\u30e4\u30eb\u96fb\u8a71",
|
| 532 |
+
"\u304a\u3080\u3064",
|
| 533 |
+
"\u30c7\u30b8\u30bf\u30eb\u6642\u8a08",
|
| 534 |
+
"\u30c7\u30b8\u30bf\u30eb\u8155\u6642\u8a08",
|
| 535 |
+
"\u30c0\u30a4\u30cb\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb",
|
| 536 |
+
"\u610f\u6c17\u5730\u306a\u3057",
|
| 537 |
+
"\u98df\u5668\u6d17\u3044\u6a5f",
|
| 538 |
+
"\u30c7\u30a3\u30b9\u30af\u30d6\u30ec\u30fc\u30ad",
|
| 539 |
+
"\u30c9\u30c3\u30af",
|
| 540 |
+
"\u72ac\u305e\u308a",
|
| 541 |
+
"\u30c9\u30fc\u30e0",
|
| 542 |
+
"\u7384\u95a2\u30de\u30c3\u30c8",
|
| 543 |
+
"\u6398\u524a\u57fa\u5730",
|
| 544 |
+
"\u30c9\u30e9\u30e0",
|
| 545 |
+
"\u30c9\u30e9\u30e0\u30b9\u30c6\u30a3\u30c3\u30af",
|
| 546 |
+
"\u30c0\u30f3\u30d9\u30eb",
|
| 547 |
+
"\u30c0\u30c3\u30c1\u30aa\u30fc\u30d6\u30f3",
|
| 548 |
+
"\u6247\u98a8\u6a5f",
|
| 549 |
+
"\u30a8\u30ec\u30ad\u30ae\u30bf\u30fc",
|
| 550 |
+
"\u96fb\u6c17\u6a5f\u95a2\u8eca",
|
| 551 |
+
"\u5a2f\u697d\u65bd\u8a2d",
|
| 552 |
+
"\u5c01\u7b52",
|
| 553 |
+
"\u30a8\u30b9\u30d7\u30ec\u30c3\u30bd\u30de\u30b7\u30fc\u30f3",
|
| 554 |
+
"\u30d5\u30a7\u30fc\u30b9\u30d1\u30a6\u30c0\u30fc",
|
| 555 |
+
"\u30d5\u30a7\u30b6\u30fc\u30dc\u30a2",
|
| 556 |
+
"\u30d5\u30a1\u30a4\u30eb",
|
| 557 |
+
"\u6d88\u9632\u8247",
|
| 558 |
+
"\u6d88\u9632\u8eca",
|
| 559 |
+
"\u30d5\u30a1\u30a4\u30a2\u30fc\u30b9\u30af\u30ea\u30fc\u30f3",
|
| 560 |
+
"\u65d7\u7aff",
|
| 561 |
+
"\u30d5\u30eb\u30fc\u30c8",
|
| 562 |
+
"\u6298\u308a\u7573\u307f\u5f0f\u6905\u5b50",
|
| 563 |
+
"\u30d5\u30c3\u30c8\u30dc\u30fc\u30eb\u30d8\u30eb\u30e1\u30c3\u30c8",
|
| 564 |
+
"\u30d5\u30a9\u30fc\u30af\u30ea\u30d5\u30c8",
|
| 565 |
+
"\u5674\u6c34",
|
| 566 |
+
"\u4e07\u5e74\u7b46",
|
| 567 |
+
"\u56db\u67f1",
|
| 568 |
+
"\u8ca8\u8eca",
|
| 569 |
+
"\u30d5\u30ec\u30f3\u30c1\u30db\u30eb\u30f3",
|
| 570 |
+
"\u30d5\u30e9\u30a4\u30d1\u30f3",
|
| 571 |
+
"\u6bdb\u76ae\u306e\u30b3\u30fc\u30c8",
|
| 572 |
+
"\u3054\u307f\u53ce\u96c6\u8eca",
|
| 573 |
+
"\u30ac\u30b9\u30de\u30b9\u30af",
|
| 574 |
+
"\u30ac\u30bd\u30ea\u30f3\u30dd\u30f3\u30d7",
|
| 575 |
+
"\u30b4\u30d6\u30ec\u30c3\u30c8",
|
| 576 |
+
"\u30b4\u30fc\u30ab\u30fc\u30c8",
|
| 577 |
+
"\u30b4\u30eb\u30d5\u30dc\u30fc\u30eb",
|
| 578 |
+
"\u30b4\u30eb\u30d5\u30ab\u30fc\u30c8",
|
| 579 |
+
"\u30b4\u30f3\u30c9\u30e9",
|
| 580 |
+
"\u30b4\u30f3\u30b0",
|
| 581 |
+
"\u30ac\u30a6\u30f3",
|
| 582 |
+
"\u30b0\u30e9\u30f3\u30c9\u30d4\u30a2\u30ce",
|
| 583 |
+
"\u6e29\u5ba4",
|
| 584 |
+
"\u30b0\u30ea\u30eb",
|
| 585 |
+
"\u98df\u6599\u54c1\u5e97",
|
| 586 |
+
"\u30ae\u30ed\u30c1\u30f3",
|
| 587 |
+
"\u30d8\u30a2\u30b9\u30e9\u30a4\u30c9",
|
| 588 |
+
"\u30d8\u30a2\u30b9\u30d7\u30ec\u30fc",
|
| 589 |
+
"\u534a\u30c8\u30e9\u30c3\u30af",
|
| 590 |
+
"\u30cf\u30f3\u30de\u30fc",
|
| 591 |
+
"\u59a8\u3052\u307e\u3059",
|
| 592 |
+
"\u30cf\u30f3\u30c9\u30d6\u30ed\u30ef\u30fc",
|
| 593 |
+
"\u30bf\u30d6\u30ec\u30c3\u30c8",
|
| 594 |
+
"\u30cf\u30f3\u30ab\u30c1",
|
| 595 |
+
"\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af",
|
| 596 |
+
"\u30cf\u30fc\u30e2\u30cb\u30ab",
|
| 597 |
+
"\u30cf\u30fc\u30d7",
|
| 598 |
+
"\u30cf\u30fc\u30d9\u30b9\u30bf",
|
| 599 |
+
"\u65a7",
|
| 600 |
+
"\u30db\u30eb\u30b9\u30bf\u30fc",
|
| 601 |
+
"\u30db\u30fc\u30e0\u30b7\u30a2\u30bf\u30fc",
|
| 602 |
+
"\u30cf\u30cb\u30ab\u30e0",
|
| 603 |
+
"\u30d5\u30c3\u30af",
|
| 604 |
+
"\u30d5\u30fc\u30d7\u30b9\u30ab\u30fc\u30c8",
|
| 605 |
+
"\u6c34\u5e73\u30d0\u30fc",
|
| 606 |
+
"\u99ac\u8eca",
|
| 607 |
+
"\u7802\u6642\u8a08",
|
| 608 |
+
"\u30a2\u30a4\u30d5\u30a9\u30fc\u30f3",
|
| 609 |
+
"\u9244",
|
| 610 |
+
"\u30b8\u30e3\u30c3\u30af\u30aa\u30fc\u30e9\u30f3\u30bf\u30f3",
|
| 611 |
+
"\u30b8\u30fc\u30f3\u30ba",
|
| 612 |
+
"\u30b8\u30fc\u30d7",
|
| 613 |
+
"\u30b8\u30e3\u30fc\u30b8\u30fc",
|
| 614 |
+
"\u30b8\u30b0\u30bd\u30fc\u30d1\u30ba\u30eb",
|
| 615 |
+
"\u4eba\u529b\u8eca",
|
| 616 |
+
"\u30b8\u30e7\u30a4\u30b9\u30c6\u30a3\u30c3\u30af",
|
| 617 |
+
"\u7740\u7269",
|
| 618 |
+
"\u819d\u30d1\u30c3\u30c9",
|
| 619 |
+
"\u7d50\u3073\u76ee",
|
| 620 |
+
"\u767d\u8863",
|
| 621 |
+
"\u3072\u3057\u3083\u304f",
|
| 622 |
+
"\u30e9\u30f3\u30d7\u306e\u304b\u3055",
|
| 623 |
+
"\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3",
|
| 624 |
+
"\u829d\u5208\u308a\u6a5f",
|
| 625 |
+
"\u30ec\u30f3\u30ba\u30ad\u30e3\u30c3\u30d7",
|
| 626 |
+
"\u30ec\u30bf\u30fc\u30aa\u30fc\u30d7\u30ca\u30fc",
|
| 627 |
+
"\u30e9\u30a4\u30d6\u30e9\u30ea",
|
| 628 |
+
"\u6551\u547d\u30dc\u30fc\u30c8",
|
| 629 |
+
"\u30e9\u30a4\u30bf\u30fc",
|
| 630 |
+
"\u30ea\u30e0\u30b8\u30f3",
|
| 631 |
+
"\u30e9\u30a4\u30ca\u30fc",
|
| 632 |
+
"\u53e3\u7d05",
|
| 633 |
+
"\u30ed\u30fc\u30d5\u30a1\u30fc",
|
| 634 |
+
"\u30ed\u30fc\u30b7\u30e7\u30f3",
|
| 635 |
+
"\u30b9\u30d4\u30fc\u30ab\u30fc",
|
| 636 |
+
"\u30eb\u30fc\u30da",
|
| 637 |
+
"\u88fd\u6750\u6240",
|
| 638 |
+
"\u78c1\u6c17\u30b3\u30f3\u30d1\u30b9",
|
| 639 |
+
"\u90f5\u888b",
|
| 640 |
+
"\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9",
|
| 641 |
+
"\u30de\u30a4\u30e8",
|
| 642 |
+
"\u30de\u30a4\u30e8",
|
| 643 |
+
"\u30de\u30f3\u30db\u30fc\u30eb\u306e\u84cb",
|
| 644 |
+
"\u30de\u30e9\u30ab\u30b9",
|
| 645 |
+
"\u30de\u30ea\u30f3\u30d0",
|
| 646 |
+
"\u30de\u30b9\u30af",
|
| 647 |
+
"\u30de\u30c3\u30c1\u68d2",
|
| 648 |
+
"\u30e1\u30a4\u30dd\u30fc\u30eb",
|
| 649 |
+
"\u8ff7\u8def",
|
| 650 |
+
"\u8a08\u91cf\u30ab\u30c3\u30d7",
|
| 651 |
+
"\u85ac\u7bb1",
|
| 652 |
+
"\u5de8\u77f3",
|
| 653 |
+
"\u30de\u30a4\u30af",
|
| 654 |
+
"\u30de\u30a4\u30af\u30ed\u6ce2",
|
| 655 |
+
"\u8ecd\u670d",
|
| 656 |
+
"\u30df\u30eb\u30af\u7f36",
|
| 657 |
+
"\u30df\u30cb\u30d0\u30b9",
|
| 658 |
+
"\u30df\u30cb\u30b9\u30ab\u30fc\u30c8",
|
| 659 |
+
"\u30df\u30cb\u30d0\u30f3",
|
| 660 |
+
"\u30df\u30b5\u30a4\u30eb",
|
| 661 |
+
"\u30df\u30c8\u30f3",
|
| 662 |
+
"\u30df\u30ad\u30b7\u30f3\u30b0\u30dc\u30a6\u30eb",
|
| 663 |
+
"\u79fb\u52d5\u4f4f\u5b85",
|
| 664 |
+
"\u30e2\u30c7\u30ebT",
|
| 665 |
+
"\u30e2\u30c7\u30e0",
|
| 666 |
+
"\u4fee\u9053\u9662",
|
| 667 |
+
"\u30e2\u30cb\u30bf\u30fc",
|
| 668 |
+
"\u30e2\u30da\u30c3\u30c8",
|
| 669 |
+
"\u30e2\u30eb\u30bf\u30eb",
|
| 670 |
+
"\u30e2\u30eb\u30bf\u30eb\u30dc\u30fc\u30c9",
|
| 671 |
+
"\u30e2\u30b9\u30af",
|
| 672 |
+
"\u868a\u5e33",
|
| 673 |
+
"\u30b9\u30af\u30fc\u30bf\u30fc",
|
| 674 |
+
"\u30de\u30a6\u30f3\u30c6\u30f3\u30d0\u30a4\u30af",
|
| 675 |
+
"\u5c71\u306e\u30c6\u30f3\u30c8",
|
| 676 |
+
"\u30de\u30a6\u30b9",
|
| 677 |
+
"\u30cd\u30ba\u30df\u6355\u308a",
|
| 678 |
+
"\u5f15\u3063\u8d8a\u3057\u30c8\u30e9\u30c3\u30af",
|
| 679 |
+
"\u9283\u53e3",
|
| 680 |
+
"\u30cd\u30a4\u30eb",
|
| 681 |
+
"\u30cd\u30c3\u30af\u30d6\u30ec\u30fc\u30b9",
|
| 682 |
+
"\u30cd\u30c3\u30af\u30ec\u30b9",
|
| 683 |
+
"\u4e73\u9996",
|
| 684 |
+
"\u30ce\u30fc\u30c8",
|
| 685 |
+
"\u30aa\u30d9\u30ea\u30b9\u30af",
|
| 686 |
+
"\u30aa\u30fc\u30dc\u30a8",
|
| 687 |
+
"\u30aa\u30ab\u30ea\u30ca",
|
| 688 |
+
"\u30aa\u30c9\u30e1\u30fc\u30bf\u30fc",
|
| 689 |
+
"\u30aa\u30a4\u30eb\u30d5\u30a3\u30eb\u30bf\u30fc",
|
| 690 |
+
"\u5668\u5b98",
|
| 691 |
+
"\u30aa\u30b7\u30ed\u30b9\u30b3\u30fc\u30d7",
|
| 692 |
+
"\u30aa\u30fc\u30d0\u30fc\u30b9\u30ab\u30fc\u30c8",
|
| 693 |
+
"\u725b\u8eca",
|
| 694 |
+
"\u9178\u7d20\u30de\u30b9\u30af",
|
| 695 |
+
"\u30d1\u30b1\u30c3\u30c8",
|
| 696 |
+
"\u30d1\u30c9\u30eb",
|
| 697 |
+
"\u30d1\u30c9\u30eb\u30db\u30a4\u30fc\u30eb",
|
| 698 |
+
"\u5357\u4eac\u9320",
|
| 699 |
+
"\u7d75\u7b46",
|
| 700 |
+
"\u30d1\u30b8\u30e3\u30de",
|
| 701 |
+
"\u5bae\u6bbf",
|
| 702 |
+
"\u30d1\u30f3\u30d1\u30a4\u30d7",
|
| 703 |
+
"\u30da\u30fc\u30d1\u30fc\u30bf\u30aa\u30eb",
|
| 704 |
+
"\u30d1\u30e9\u30b7\u30e5\u30fc\u30c8",
|
| 705 |
+
"\u5e73\u884c\u68d2",
|
| 706 |
+
"\u516c\u5712\u306e\u30d9\u30f3\u30c1",
|
| 707 |
+
"\u30d1\u30fc\u30ad\u30f3\u30b0\u30e1\u30fc\u30bf\u30fc",
|
| 708 |
+
"\u4e57\u7528\u8eca",
|
| 709 |
+
"\u30d1\u30c6\u30a3\u30aa",
|
| 710 |
+
"\u6709\u6599\u96fb\u8a71",
|
| 711 |
+
"\u53f0\u5ea7",
|
| 712 |
+
"\u7b46\u7bb1",
|
| 713 |
+
"\u925b\u7b46\u524a\u308a",
|
| 714 |
+
"\u9999\u6c34",
|
| 715 |
+
"\u30da\u30c8\u30ea\u76bf",
|
| 716 |
+
"\u30b3\u30d4\u30fc\u6a5f",
|
| 717 |
+
"\u9078\u3076",
|
| 718 |
+
"\u30b9\u30d1\u30a4\u30af\u4ed8\u304d\u9244\u304b\u3076\u3068",
|
| 719 |
+
"\u676d\u67f5",
|
| 720 |
+
"\u62fe\u3046",
|
| 721 |
+
"\u685f\u6a4b",
|
| 722 |
+
"\u8caf\u91d1\u7bb1",
|
| 723 |
+
"\u9320\u5264\u74f6",
|
| 724 |
+
"\u6795",
|
| 725 |
+
"\u30d4\u30f3\u30dd\u30f3\u7403",
|
| 726 |
+
"\u98a8\u8eca",
|
| 727 |
+
"\u6d77\u8cca",
|
| 728 |
+
"\u30d4\u30c3\u30c1\u30e3\u30fc",
|
| 729 |
+
"\u98db\u884c\u6a5f",
|
| 730 |
+
"\u30d7\u30e9\u30cd\u30bf\u30ea\u30a6\u30e0",
|
| 731 |
+
"\u30d3\u30cb\u30fc\u30eb\u888b",
|
| 732 |
+
"\u76bf\u7acb\u3066",
|
| 733 |
+
"\u30d7\u30e9\u30a6",
|
| 734 |
+
"\u30d7\u30e9\u30f3\u30b8\u30e3\u30fc",
|
| 735 |
+
"\u30dd\u30e9\u30ed\u30a4\u30c9\u30ab\u30e1\u30e9",
|
| 736 |
+
"\u30dd\u30fc\u30eb",
|
| 737 |
+
"\u8b66\u5bdf\u8eca",
|
| 738 |
+
"\u30dd\u30f3\u30c1\u30e7",
|
| 739 |
+
"\u30d3\u30ea\u30e4\u30fc\u30c9\u53f0",
|
| 740 |
+
"\u30dd\u30c3\u30d7\u30fb\u30dc\u30c8\u30eb",
|
| 741 |
+
"\u30dd\u30c3\u30c8",
|
| 742 |
+
"\u308d\u304f\u308d",
|
| 743 |
+
"\u30d1\u30ef\u30fc\u30c9\u30ea\u30eb",
|
| 744 |
+
"\u793c\u62dd\u7528\u6577\u7269",
|
| 745 |
+
"\u30d7\u30ea\u30f3\u30bf",
|
| 746 |
+
"\u5211\u52d9\u6240",
|
| 747 |
+
"\u767a\u5c04\u4f53",
|
| 748 |
+
"\u30d7\u30ed\u30b8\u30a7\u30af\u30bf\u30fc",
|
| 749 |
+
"\u30d1\u30c3\u30af",
|
| 750 |
+
"\u30b5\u30f3\u30c9\u30d0\u30c3\u30b0",
|
| 751 |
+
"\u8ca1\u5e03",
|
| 752 |
+
"\u30af\u30a4\u30eb",
|
| 753 |
+
"\u30ad\u30eb\u30c8",
|
| 754 |
+
"\u30ec\u30fc\u30b5\u30fc",
|
| 755 |
+
"\u30e9\u30b1\u30c3\u30c8",
|
| 756 |
+
"\u30e9\u30b8\u30a8\u30fc\u30bf\u30fc",
|
| 757 |
+
"\u7121\u7dda",
|
| 758 |
+
"\u96fb\u6ce2\u671b\u9060\u93e1",
|
| 759 |
+
"\u5929\u6c34\u6876",
|
| 760 |
+
"RV\u8eca",
|
| 761 |
+
"\u30ea\u30fc\u30eb",
|
| 762 |
+
"\u30ec\u30d5\u30ec\u30c3\u30af\u30b9\u30ab\u30e1\u30e9",
|
| 763 |
+
"\u51b7\u8535\u5eab",
|
| 764 |
+
"\u30ea\u30e2\u30b3\u30f3",
|
| 765 |
+
"\u30ec\u30b9\u30c8\u30e9\u30f3",
|
| 766 |
+
"\u30ea\u30dc\u30eb\u30d0\u30fc",
|
| 767 |
+
"\u30e9\u30a4\u30d5\u30eb",
|
| 768 |
+
"\u30ed\u30c3\u30ad\u30f3\u30b0\u30c1\u30a7\u30a2",
|
| 769 |
+
"\u713c\u8089\u6599\u7406\u5e97",
|
| 770 |
+
"\u6d88\u3057\u30b4\u30e0",
|
| 771 |
+
"\u30e9\u30b0\u30d3\u30fc\u30dc\u30fc\u30eb",
|
| 772 |
+
"\u30eb\u30fc\u30eb",
|
| 773 |
+
"\u30e9\u30f3\u30cb\u30f3\u30b0\u30b7\u30e5\u30fc\u30ba",
|
| 774 |
+
"\u5b89\u5168",
|
| 775 |
+
"\u5b89\u5168\u30d4\u30f3",
|
| 776 |
+
"\u5869\u306e\u5165\u308c\u7269",
|
| 777 |
+
"\u30b5\u30f3\u30c0\u30eb",
|
| 778 |
+
"\u30b5\u30ed\u30f3",
|
| 779 |
+
"\u30b5\u30c3\u30af\u30b9",
|
| 780 |
+
"\u9798",
|
| 781 |
+
"\u898f\u6a21",
|
| 782 |
+
"\u30b9\u30af\u30fc\u30eb\u30d0\u30b9",
|
| 783 |
+
"\u30b9\u30af\u30fc\u30ca\u30fc",
|
| 784 |
+
"\u30b9\u30b3\u30a2\u30dc\u30fc\u30c9",
|
| 785 |
+
"\u753b\u9762",
|
| 786 |
+
"\u30b9\u30af\u30ea\u30e5\u30fc",
|
| 787 |
+
"\u30c9\u30e9\u30a4\u30d0\u30fc",
|
| 788 |
+
"\u30b7\u30fc\u30c8\u30d9\u30eb\u30c8",
|
| 789 |
+
"\u30df\u30b7\u30f3",
|
| 790 |
+
"\u30b7\u30fc\u30eb\u30c9",
|
| 791 |
+
"\u9774\u5c4b",
|
| 792 |
+
"\u969c\u5b50",
|
| 793 |
+
"\u8cb7\u3044\u7269\u304b\u3054",
|
| 794 |
+
"\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30ab\u30fc\u30c8",
|
| 795 |
+
"\u30b7\u30e3\u30d9\u30eb",
|
| 796 |
+
"\u30b7\u30e3\u30ef\u30fc\u30ad\u30e3\u30c3\u30d7",
|
| 797 |
+
"\u30b7\u30e3\u30ef\u30fc\u30ab\u30fc\u30c6\u30f3",
|
| 798 |
+
"\u30b9\u30ad\u30fc",
|
| 799 |
+
"\u30b9\u30ad\u30fc\u30de\u30b9\u30af",
|
| 800 |
+
"\u5bdd\u888b",
|
| 801 |
+
"\u8a08\u7b97\u5c3a",
|
| 802 |
+
"\u5f15\u304d\u6238",
|
| 803 |
+
"\u30b9\u30ed\u30c3\u30c8",
|
| 804 |
+
"\u30b9\u30ce\u30fc\u30b1\u30eb",
|
| 805 |
+
"\u30b9\u30ce\u30fc\u30e2\u30fc\u30d3\u30eb",
|
| 806 |
+
"\u9664\u96ea\u6a5f",
|
| 807 |
+
"\u30bd\u30fc\u30d7\u30c7\u30a3\u30b9\u30da\u30f3\u30b5\u30fc",
|
| 808 |
+
"\u30b5\u30c3\u30ab\u30fc\u30dc\u30fc\u30eb",
|
| 809 |
+
"\u9774\u4e0b",
|
| 810 |
+
"\u592a\u967d\u306e\u76bf",
|
| 811 |
+
"\u30bd\u30f3\u30d6\u30ec\u30ed",
|
| 812 |
+
"\u30b9\u30fc\u30d7\u76bf",
|
| 813 |
+
"\u30b9\u30da\u30fc\u30b9\u30ad\u30fc",
|
| 814 |
+
"\u30b9\u30da\u30fc\u30b9\u30d2\u30fc\u30bf\u30fc",
|
| 815 |
+
"\u30b9\u30da\u30fc\u30b9\u30b7\u30e3\u30c8\u30eb",
|
| 816 |
+
"\u3078\u3089",
|
| 817 |
+
"\u30b9\u30d4\u30fc\u30c9\u30dc\u30fc\u30c8",
|
| 818 |
+
"\u30af\u30e2\u306e\u5de3",
|
| 819 |
+
"\u30b9\u30d4\u30f3\u30c9\u30eb",
|
| 820 |
+
"\u30b9\u30dd\u30fc\u30c4\u30ab\u30fc",
|
| 821 |
+
"\u30b9\u30dd\u30c3\u30c8\u30e9\u30a4\u30c8",
|
| 822 |
+
"\u30b9\u30c6\u30fc\u30b8",
|
| 823 |
+
"\u84b8\u6c17\u6a5f\u95a2\u8eca",
|
| 824 |
+
"\u92fc\u30a2\u30fc\u30c1\u6a4b",
|
| 825 |
+
"\u30b9\u30c1\u30fc\u30eb\u30c9\u30e9\u30e0",
|
| 826 |
+
"\u8074\u8a3a\u5668",
|
| 827 |
+
"\u30b9\u30c8\u30fc\u30eb",
|
| 828 |
+
"\u77f3\u57a3",
|
| 829 |
+
"\u30b9\u30c8\u30c3\u30d7\u30a6\u30a9\u30c3\u30c1",
|
| 830 |
+
"\u30ec\u30f3\u30b8",
|
| 831 |
+
"\u30b9\u30c8\u30ec\u30fc\u30ca\u30fc",
|
| 832 |
+
"\u8def\u9762\u96fb\u8eca",
|
| 833 |
+
"\u30b9\u30c8\u30ec\u30c3\u30c1\u30e3\u30fc",
|
| 834 |
+
"\u30b9\u30bf\u30b8\u30aa\u30bd\u30d5\u30a1",
|
| 835 |
+
"\u4ecf\u820e\u5229\u5854",
|
| 836 |
+
"\u6f5c\u6c34\u8266",
|
| 837 |
+
"\u30b9\u30fc\u30c4",
|
| 838 |
+
"\u65e5\u6642\u8a08",
|
| 839 |
+
"\u30b5\u30f3\u30b0\u30e9\u30b9",
|
| 840 |
+
"\u30b5\u30f3\u30b0\u30e9\u30b9",
|
| 841 |
+
"\u65e5\u713c\u3051\u6b62\u3081\u5264",
|
| 842 |
+
"\u3064\u308a\u6a4b",
|
| 843 |
+
"\u7dbf\u68d2",
|
| 844 |
+
"\u30c8\u30ec\u30fc\u30ca\u30fc",
|
| 845 |
+
"\u6d77\u30d1\u30f3",
|
| 846 |
+
"\u30b9\u30a4\u30f3\u30b0",
|
| 847 |
+
"\u30b9\u30a4\u30c3\u30c1",
|
| 848 |
+
"\u6ce8\u5c04\u5668",
|
| 849 |
+
"\u96fb\u6c17\u30b9\u30bf\u30f3\u30c9",
|
| 850 |
+
"\u30bf\u30f3\u30af",
|
| 851 |
+
"\u30c6\u30fc\u30d7\u30d7\u30ec\u30fc\u30e4\u30fc",
|
| 852 |
+
"\u30c6\u30a3\u30fc\u30dd\u30c3\u30c8",
|
| 853 |
+
"\u30c6\u30c7\u30a3",
|
| 854 |
+
"\u30c6\u30ec\u30d3",
|
| 855 |
+
"\u30c6\u30cb\u30b9\u30dc\u30fc\u30eb",
|
| 856 |
+
"\u30b5\u30c3\u30c1",
|
| 857 |
+
"\u5287\u5834\u306e\u30ab\u30fc\u30c6\u30f3",
|
| 858 |
+
"\u6307\u306c\u304d",
|
| 859 |
+
"\u8131\u7a40\u6a5f",
|
| 860 |
+
"\u738b\u4f4d",
|
| 861 |
+
"\u74e6\u5c4b\u6839",
|
| 862 |
+
"\u30c8\u30fc\u30b9\u30bf\u30fc",
|
| 863 |
+
"\u30bf\u30d0\u30b3\u5c4b",
|
| 864 |
+
"\u4fbf\u5ea7",
|
| 865 |
+
"\u30c8\u30fc\u30c1",
|
| 866 |
+
"\u30c8\u30fc\u30c6\u30e0\u30dd\u30fc\u30eb",
|
| 867 |
+
"\u30ec\u30c3\u30ab\u30fc\u8eca",
|
| 868 |
+
"\u73a9\u5177\u5c4b",
|
| 869 |
+
"\u30c8\u30e9\u30af\u30bf\u30fc",
|
| 870 |
+
"\u30c8\u30ec\u30fc\u30e9\u30fc\u30c8\u30e9\u30c3\u30af",
|
| 871 |
+
"\u30c8\u30ec\u30a4",
|
| 872 |
+
"\u30c8\u30ec\u30f3\u30c1\u30b3\u30fc\u30c8",
|
| 873 |
+
"\u4e09\u8f2a\u8eca",
|
| 874 |
+
"\u4e09\u80f4\u8239",
|
| 875 |
+
"\u4e09\u811a",
|
| 876 |
+
"\u51f1\u65cb\u9580",
|
| 877 |
+
"\u30c8\u30ed\u30ea\u30fc\u30d0\u30b9",
|
| 878 |
+
"\u30c8\u30ed\u30f3\u30dc\u30fc\u30f3",
|
| 879 |
+
"\u30d0\u30b9\u30bf\u30d6",
|
| 880 |
+
"\u56de\u8ee2\u30c9\u30a2",
|
| 881 |
+
"\u30bf\u30a4\u30d7\u30e9\u30a4\u30bf\u30fc\u306e\u30ad\u30fc\u30dc\u30fc\u30c9",
|
| 882 |
+
"\u5098",
|
| 883 |
+
"\u4e00\u8f2a\u8eca",
|
| 884 |
+
"\u76f4\u7acb",
|
| 885 |
+
"\u771f\u7a7a",
|
| 886 |
+
"\u82b1\u74f6",
|
| 887 |
+
"\u30dc\u30fc\u30eb\u30c8",
|
| 888 |
+
"\u30d9\u30eb\u30d9\u30c3\u30c8",
|
| 889 |
+
"\u81ea\u52d5\u8ca9\u58f2\u6a5f",
|
| 890 |
+
"\u796d\u670d",
|
| 891 |
+
"\u9ad8\u67b6\u6a4b",
|
| 892 |
+
"\u30d0\u30a4\u30aa\u30ea\u30f3",
|
| 893 |
+
"\u30d0\u30ec\u30fc\u30dc\u30fc\u30eb",
|
| 894 |
+
"\u30ef\u30c3\u30d5\u30eb\u713c\u304d\u578b",
|
| 895 |
+
"\u58c1\u6642\u8a08",
|
| 896 |
+
"\u8ca1\u5e03",
|
| 897 |
+
"\u30ef\u30fc\u30c9\u30ed\u30fc\u30d6",
|
| 898 |
+
"\u6226\u95d8\u6a5f",
|
| 899 |
+
"\u6d17\u9762\u5668",
|
| 900 |
+
"\u30ef\u30c3\u30b7\u30e3\u30fc",
|
| 901 |
+
"\u6c34\u7b52",
|
| 902 |
+
"\u6c34\u5dee\u3057",
|
| 903 |
+
"\u7d66\u6c34\u5854",
|
| 904 |
+
"\u30a6\u30a4\u30b9\u30ad\u30fc\u30b8\u30e3\u30b0",
|
| 905 |
+
"\u30db\u30a4\u30c3\u30b9\u30eb",
|
| 906 |
+
"\u304b\u3064\u3089",
|
| 907 |
+
"\u7a93\u7db2\u6238",
|
| 908 |
+
"\u30d6\u30e9\u30a4\u30f3\u30c9",
|
| 909 |
+
"\u30a6\u30a3\u30f3\u30b6\u30fc\u30cd\u30af\u30bf\u30a4",
|
| 910 |
+
"\u30ef\u30a4\u30f3\u30dc\u30c8\u30eb",
|
| 911 |
+
"\u7ffc",
|
| 912 |
+
"\u4e2d\u83ef\u934b",
|
| 913 |
+
"\u6728\u88fd\u30b9\u30d7\u30fc\u30f3",
|
| 914 |
+
"\u30a6\u30fc\u30eb",
|
| 915 |
+
"\u30ef\u30fc\u30e0\u30d5\u30a7\u30f3\u30b9",
|
| 916 |
+
"\u96e3\u7834\u8239",
|
| 917 |
+
"\u30e8\u30fc\u30eb",
|
| 918 |
+
"\u30d1\u30aa",
|
| 919 |
+
"\u30b5\u30a4\u30c8",
|
| 920 |
+
"\u30b3\u30df\u30c3\u30af\u30d6\u30c3\u30af",
|
| 921 |
+
"\u30af\u30ed\u30b9\u30ef\u30fc\u30c9\u30d1\u30ba\u30eb",
|
| 922 |
+
"\u9053\u8def\u6a19\u8b58",
|
| 923 |
+
"\u4ea4\u901a\u4fe1\u53f7\u706f",
|
| 924 |
+
"\u30d6\u30c3\u30af\u30ab\u30d0\u30fc",
|
| 925 |
+
"\u30e1\u30cb\u30e5\u30fc",
|
| 926 |
+
"\u30d7\u30ec\u30fc\u30c8",
|
| 927 |
+
"\u30b0\u30a2\u30ab\u30e2\u30fc\u30ec",
|
| 928 |
+
"\u30b3\u30f3\u30bd\u30e1",
|
| 929 |
+
"\u30db\u30c3\u30c8\u30dd\u30c3\u30c8",
|
| 930 |
+
"\u30d1\u30d5\u30a7",
|
| 931 |
+
"\u30a2\u30a4\u30b9\u30af\u30ea\u30fc\u30e0",
|
| 932 |
+
"\u30a2\u30a4\u30b9\u30ad\u30e3\u30f3\u30c7\u30a3\u30fc",
|
| 933 |
+
"\u30d5\u30e9\u30f3\u30b9\u30d1\u30f3",
|
| 934 |
+
"\u30d9\u30fc\u30b0\u30eb",
|
| 935 |
+
"\u30d7\u30ec\u30c3\u30c4\u30a7\u30eb",
|
| 936 |
+
"\u30c1\u30fc\u30ba\u30d0\u30fc\u30ac\u30fc",
|
| 937 |
+
"\u30db\u30c3\u30c8\u30c9\u30c3\u30b0",
|
| 938 |
+
"\u30de\u30c3\u30b7\u30e5\u30dd\u30c6\u30c8",
|
| 939 |
+
"\u30ad\u30e3\u30d9\u30c4",
|
| 940 |
+
"\u30d6\u30ed\u30c3\u30b3\u30ea\u30fc",
|
| 941 |
+
"\u30ab\u30ea\u30d5\u30e9\u30ef\u30fc",
|
| 942 |
+
"\u30ba\u30c3\u30ad\u30fc\u30cb",
|
| 943 |
+
"\u305d\u3046\u3081\u3093\u304b\u307c\u3061\u3083",
|
| 944 |
+
"\u30c9\u30f3\u30b0\u30ea\u304b\u307c\u3061\u3083",
|
| 945 |
+
"\u30ab\u30dc\u30c1\u30e3",
|
| 946 |
+
"\u30ad\u30e5\u30a6\u30ea",
|
| 947 |
+
"\u30a2\u30fc\u30c6\u30a3\u30c1\u30e7\u30fc\u30af",
|
| 948 |
+
"\u30d4\u30fc\u30de\u30f3",
|
| 949 |
+
"\u30ab\u30eb\u30c9\u30f3",
|
| 950 |
+
"\u30ad\u30ce\u30b3",
|
| 951 |
+
"\u30ea\u30f3\u30b4",
|
| 952 |
+
"\u30a4\u30c1\u30b4",
|
| 953 |
+
"\u30aa\u30ec\u30f3\u30b8",
|
| 954 |
+
"\u30ec\u30e2\u30f3",
|
| 955 |
+
"\u30a4\u30c1\u30b8\u30af",
|
| 956 |
+
"\u30d1\u30a4\u30ca\u30c3\u30d7\u30eb",
|
| 957 |
+
"\u30d0\u30ca\u30ca",
|
| 958 |
+
"\u30d1\u30e9\u30df\u30c4",
|
| 959 |
+
"\u30ab\u30b9\u30bf\u30fc\u30c9\u30a2\u30c3\u30d7\u30eb",
|
| 960 |
+
"\u30b6\u30af\u30ed",
|
| 961 |
+
"\u5e72\u3057\u8349",
|
| 962 |
+
"\u30ab\u30eb\u30dc\u30ca\u30fc\u30e9",
|
| 963 |
+
"\u30c1\u30e7\u30b3\u30ec\u30fc\u30c8\u30bd\u30fc\u30b9",
|
| 964 |
+
"\u30d1\u30f3\u751f\u5730",
|
| 965 |
+
"\u30df\u30fc\u30c8\u30ed\u30fc\u30d5",
|
| 966 |
+
"\u30d4\u30b6",
|
| 967 |
+
"\u30dd\u30c3\u30c8\u30d1\u30a4",
|
| 968 |
+
"\u30d6\u30ea\u30c8\u30fc",
|
| 969 |
+
"\u8d64\u30ef\u30a4\u30f3",
|
| 970 |
+
"\u30a8\u30b9\u30d7\u30ec\u30c3\u30bd",
|
| 971 |
+
"\u30ab\u30c3\u30d7",
|
| 972 |
+
"\u30a8\u30c3\u30b0\u30ce\u30c3\u30b0",
|
| 973 |
+
"\u30a2\u30eb\u30d7\u30b9",
|
| 974 |
+
"\u30d0\u30d6\u30eb",
|
| 975 |
+
"\u5d16",
|
| 976 |
+
"\u30b5\u30f3\u30b4\u7901",
|
| 977 |
+
"\u9593\u6b20\u6cc9",
|
| 978 |
+
"\u6e56\u7554",
|
| 979 |
+
"\u5cac",
|
| 980 |
+
"\u7802\u5dde",
|
| 981 |
+
"\u6d77\u5cb8",
|
| 982 |
+
"\u8c37",
|
| 983 |
+
"\u706b\u5c71",
|
| 984 |
+
"\u91ce\u7403\u9078\u624b",
|
| 985 |
+
"\u65b0\u90ce",
|
| 986 |
+
"\u30b9\u30ad\u30e5\u30fc\u30d0\u30c0\u30a4\u30d0\u30fc",
|
| 987 |
+
"\u83dc\u7a2e",
|
| 988 |
+
"\u30c7\u30a4\u30b8\u30fc",
|
| 989 |
+
"\u862d",
|
| 990 |
+
"\u30c8\u30a6\u30e2\u30ed\u30b3\u30b7",
|
| 991 |
+
"\u30c9\u30f3\u30b0\u30ea",
|
| 992 |
+
"\u30d2\u30c3\u30d7",
|
| 993 |
+
"\u30c8\u30c1\u30ce\u30ad",
|
| 994 |
+
"\u30b5\u30f3\u30b4\u83cc",
|
| 995 |
+
"\u30cf\u30e9\u30bf\u30b1",
|
| 996 |
+
"\u30b7\u30e3\u30b0\u30de\u30a2\u30df\u30ac\u30b5\u30bf\u30b1",
|
| 997 |
+
"\u30b9\u30c3\u30dd\u30f3\u30bf\u30b1",
|
| 998 |
+
"\u30cf\u30e9\u30bf\u30b1",
|
| 999 |
+
"\u821e\u8338",
|
| 1000 |
+
"\u304d\u306e\u3053",
|
| 1001 |
+
"\u8033",
|
| 1002 |
+
"\u30c8\u30a4\u30ec\u30c3\u30c8\u30da\u30fc\u30d1\u30fc"
|
| 1003 |
+
]
|
| 1004 |
+
}
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/jp_zeroshot_classification_templates.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"imagenet1k": [
|
| 3 |
+
"{c}\u306e\u60aa\u3044\u5199\u771f",
|
| 4 |
+
"\u591a\u304f\u306e{c}\u306e\u5199\u771f",
|
| 5 |
+
"{c}\u306e\u5f6b\u523b",
|
| 6 |
+
"\u898b\u3065\u3089\u3044{c}\u306e\u5199\u771f",
|
| 7 |
+
"{c}\u306e\u4f4e\u89e3\u50cf\u5ea6\u5199\u771f",
|
| 8 |
+
"{c}\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0",
|
| 9 |
+
"{c}\u306e\u843d\u66f8\u304d",
|
| 10 |
+
"{c}\u306e\u30c8\u30ea\u30df\u30f3\u30b0\u5199\u771f",
|
| 11 |
+
"{c}\u306e\u30bf\u30c8\u30a5\u30fc",
|
| 12 |
+
"\u523a\u7e4d\u3055\u308c\u305f{c}",
|
| 13 |
+
"{c}\u306e\u660e\u308b\u3044\u5199\u771f",
|
| 14 |
+
"\u304d\u308c\u3044\u306a{c}\u306e\u5199\u771f",
|
| 15 |
+
"\u6c5a\u308c\u305f{c}\u306e\u5199\u771f",
|
| 16 |
+
"{c}\u306e\u6697\u3044\u5199\u771f",
|
| 17 |
+
"{c}\u306e\u7d75",
|
| 18 |
+
"\u79c1\u306e{c}\u306e\u5199\u771f",
|
| 19 |
+
"\u30d7\u30e9\u30b9\u30c1\u30c3\u30af\u88fd\u306e{c}",
|
| 20 |
+
"\u304b\u3063\u3053\u3044\u3044{c}\u306e\u5199\u771f",
|
| 21 |
+
"{c}\u306e\u30af\u30ed\u30fc\u30ba\u30a2\u30c3\u30d7\u5199\u771f",
|
| 22 |
+
"{c}\u306e\u767d\u9ed2\u5199\u771f",
|
| 23 |
+
"{c}\u306e\u30d4\u30af\u30bb\u30eb\u5199\u771f",
|
| 24 |
+
"jpeg\u3067\u52a0\u5de5\u3057\u305f{c}\u306e\u5199\u771f",
|
| 25 |
+
"{c}\u306e\u307c\u3084\u3051\u305f\u5199\u771f",
|
| 26 |
+
"{c}\u306e\u5199\u771f",
|
| 27 |
+
"{c}\u306e\u826f\u3044\u5199\u771f",
|
| 28 |
+
"\u30b2\u30fc\u30e0\u306b\u767b\u5834\u3059\u308b{c}",
|
| 29 |
+
"\u6298\u308a\u7d19\u3067\u4f5c\u3063\u305f{c}",
|
| 30 |
+
"{c}\u306e\u30b9\u30b1\u30c3\u30c1",
|
| 31 |
+
"\u304a\u3082\u3061\u3083\u306e{c}",
|
| 32 |
+
"{c}\u306e\u6f14\u51fa",
|
| 33 |
+
"\u5927\u304d\u306a{c}\u306e\u5199\u771f",
|
| 34 |
+
"\u7d20\u6575\u306a{c}\u306e\u5199\u771f",
|
| 35 |
+
"\u5947\u5999\u306a{c}\u306e\u5199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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2019 Google LLC.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
# you may not use this file except in compliance with the License.
|
| 5 |
+
# You may obtain a copy of the License at
|
| 6 |
+
#
|
| 7 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
#
|
| 9 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
# See the License for the specific language governing permissions and
|
| 13 |
+
# limitations under the License.
|
| 14 |
+
|
| 15 |
+
"""Implements Kitti data class."""
|
| 16 |
+
|
| 17 |
+
from __future__ import absolute_import, division, print_function
|
| 18 |
+
|
| 19 |
+
import numpy as np
|
| 20 |
+
import task_adaptation.data.base as base
|
| 21 |
+
import tensorflow.compat.v1 as tf
|
| 22 |
+
import tensorflow_datasets as tfds
|
| 23 |
+
from task_adaptation.registry import Registry
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def _count_all_pp(x):
|
| 27 |
+
"""Count all objects."""
|
| 28 |
+
# Count distribution (thresholded at 15):
|
| 29 |
+
|
| 30 |
+
label = tf.math.minimum(tf.size(x['objects']['type']) - 1, 8)
|
| 31 |
+
return {'image': x['image'], 'label': label}
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def _count_vehicles_pp(x):
|
| 35 |
+
"""Counting vehicles."""
|
| 36 |
+
# Label distribution:
|
| 37 |
+
|
| 38 |
+
vehicles = tf.where(x['objects']['type'] < 3) # Car, Van, Truck.
|
| 39 |
+
# Cap at 3.
|
| 40 |
+
label = tf.math.minimum(tf.size(vehicles), 3)
|
| 41 |
+
return {'image': x['image'], 'label': label}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def _count_left_pp(x):
|
| 45 |
+
"""Count objects on the left hand side of the camera."""
|
| 46 |
+
# Count distribution (thresholded at 15):
|
| 47 |
+
|
| 48 |
+
# Location feature contains (x, y, z) in meters w.r.t. the camera.
|
| 49 |
+
objects_on_left = tf.where(x['objects']['location'][:, 0] < 0)
|
| 50 |
+
label = tf.math.minimum(tf.size(objects_on_left), 8)
|
| 51 |
+
return {'image': x['image'], 'label': label}
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def _count_far_pp(x):
|
| 55 |
+
"""Counts objects far from the camera."""
|
| 56 |
+
# Threshold removes ~half of the objects.
|
| 57 |
+
# Count distribution (thresholded at 15):
|
| 58 |
+
|
| 59 |
+
# Location feature contains (x, y, z) in meters w.r.t. the camera.
|
| 60 |
+
distant_objects = tf.where(x['objects']['location'][:, 2] >= 25)
|
| 61 |
+
label = tf.math.minimum(tf.size(distant_objects), 8)
|
| 62 |
+
return {'image': x['image'], 'label': label}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def _count_near_pp(x):
|
| 66 |
+
"""Counts objects close to the camera."""
|
| 67 |
+
# Threshold removes ~half of the objects.
|
| 68 |
+
# Count distribution:
|
| 69 |
+
|
| 70 |
+
# Location feature contains (x, y, z) in meters w.r.t. the camera.
|
| 71 |
+
close_objects = tf.where(x['objects']['location'][:, 2] < 25)
|
| 72 |
+
label = tf.math.minimum(tf.size(close_objects), 8)
|
| 73 |
+
return {'image': x['image'], 'label': label}
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
def _closest_object_distance_pp(x):
|
| 77 |
+
"""Predict the distance to the closest object."""
|
| 78 |
+
# Label distribution:
|
| 79 |
+
|
| 80 |
+
# Location feature contains (x, y, z) in meters w.r.t. the camera.
|
| 81 |
+
dist = tf.reduce_min(x['objects']['location'][:, 2])
|
| 82 |
+
thrs = np.array([-100, 5.6, 8.4, 13.4, 23.4])
|
| 83 |
+
label = tf.reduce_max(tf.where((thrs - dist) < 0))
|
| 84 |
+
return {'image': x['image'], 'label': label}
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def _closest_vehicle_distance_pp(x):
|
| 88 |
+
"""Predict the distance to the closest vehicle."""
|
| 89 |
+
# Label distribution:
|
| 90 |
+
|
| 91 |
+
# Location feature contains (x, y, z) in meters w.r.t. the camera.
|
| 92 |
+
vehicles = tf.where(x['objects']['type'] < 3) # Car, Van, Truck.
|
| 93 |
+
vehicle_z = tf.gather(params=x['objects']['location'][:, 2], indices=vehicles)
|
| 94 |
+
vehicle_z = tf.concat([vehicle_z, tf.constant([[1000.0]])], axis=0)
|
| 95 |
+
dist = tf.reduce_min(vehicle_z)
|
| 96 |
+
# Results in a uniform distribution over three distances, plus one class for
|
| 97 |
+
# "no vehicle".
|
| 98 |
+
thrs = np.array([-100.0, 8.0, 20.0, 999.0])
|
| 99 |
+
label = tf.reduce_max(tf.where((thrs - dist) < 0))
|
| 100 |
+
return {'image': x['image'], 'label': label}
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
def _closest_object_x_location_pp(x):
|
| 104 |
+
"""Predict the absolute x position of the closest object."""
|
| 105 |
+
# Label distribution:
|
| 106 |
+
|
| 107 |
+
# Location feature contains (x, y, z) in meters w.r.t. the camera.
|
| 108 |
+
idx = tf.math.argmin(x['objects']['location'][:, 2])
|
| 109 |
+
xloc = x['objects']['location'][idx, 0]
|
| 110 |
+
thrs = np.array([-100, -6.4, -3.5, 0.0, 3.3, 23.9])
|
| 111 |
+
label = tf.reduce_max(tf.where((thrs - xloc) < 0))
|
| 112 |
+
return {'image': x['image'], 'label': label}
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
_TASK_DICT = {
|
| 116 |
+
'count_all': {
|
| 117 |
+
'preprocess_fn': _count_all_pp,
|
| 118 |
+
'num_classes': 16,
|
| 119 |
+
},
|
| 120 |
+
'count_left': {
|
| 121 |
+
'preprocess_fn': _count_left_pp,
|
| 122 |
+
'num_classes': 16,
|
| 123 |
+
},
|
| 124 |
+
'count_far': {
|
| 125 |
+
'preprocess_fn': _count_far_pp,
|
| 126 |
+
'num_classes': 16,
|
| 127 |
+
},
|
| 128 |
+
'count_near': {
|
| 129 |
+
'preprocess_fn': _count_near_pp,
|
| 130 |
+
'num_classes': 16,
|
| 131 |
+
},
|
| 132 |
+
'closest_object_distance': {
|
| 133 |
+
'preprocess_fn': _closest_object_distance_pp,
|
| 134 |
+
'num_classes': 5,
|
| 135 |
+
},
|
| 136 |
+
'closest_object_x_location': {
|
| 137 |
+
'preprocess_fn': _closest_object_x_location_pp,
|
| 138 |
+
'num_classes': 5,
|
| 139 |
+
},
|
| 140 |
+
'count_vehicles': {
|
| 141 |
+
'preprocess_fn': _count_vehicles_pp,
|
| 142 |
+
'num_classes': 4,
|
| 143 |
+
},
|
| 144 |
+
'closest_vehicle_distance': {
|
| 145 |
+
'preprocess_fn': _closest_vehicle_distance_pp,
|
| 146 |
+
'num_classes': 4,
|
| 147 |
+
},
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
@Registry.register('data.kitti', 'class')
|
| 152 |
+
class KittiData(base.ImageTfdsData):
|
| 153 |
+
"""Provides Kitti dataset.
|
| 154 |
+
|
| 155 |
+
Six tasks are supported:
|
| 156 |
+
1. Count the number of objects.
|
| 157 |
+
2. Count the number of objects on the left hand side of the camera.
|
| 158 |
+
3. Count the number of objects in the foreground.
|
| 159 |
+
4. Count the number of objects in the background.
|
| 160 |
+
5. Predict the distance of the closest object.
|
| 161 |
+
6. Predict the x-location (w.r.t. the camera) of the closest object.
|
| 162 |
+
"""
|
| 163 |
+
|
| 164 |
+
def __init__(self, task, data_dir=None):
|
| 165 |
+
if task not in _TASK_DICT:
|
| 166 |
+
raise ValueError('Unknown task: %s' % task)
|
| 167 |
+
|
| 168 |
+
dataset_builder = tfds.builder('kitti:3.3.0', data_dir=data_dir)
|
| 169 |
+
dataset_builder.download_and_prepare()
|
| 170 |
+
|
| 171 |
+
tfds_splits = {
|
| 172 |
+
'train': 'train',
|
| 173 |
+
'val': 'validation',
|
| 174 |
+
'trainval': 'train+validation',
|
| 175 |
+
'test': 'test',
|
| 176 |
+
'train800': 'train[:800]',
|
| 177 |
+
'val200': 'validation[:200]',
|
| 178 |
+
'train800val200': 'train[:800]+validation[:200]',
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
# Example counts are retrieved from the tensorflow dataset info.
|
| 182 |
+
train_count = dataset_builder.info.splits[tfds.Split.TRAIN].num_examples
|
| 183 |
+
val_count = dataset_builder.info.splits[tfds.Split.VALIDATION].num_examples
|
| 184 |
+
test_count = dataset_builder.info.splits[tfds.Split.TEST].num_examples
|
| 185 |
+
# Creates a dict with example counts for each split.
|
| 186 |
+
num_samples_splits = {
|
| 187 |
+
'train': train_count,
|
| 188 |
+
'val': val_count,
|
| 189 |
+
'trainval': train_count + val_count,
|
| 190 |
+
'test': test_count,
|
| 191 |
+
'train800': 800,
|
| 192 |
+
'val200': 200,
|
| 193 |
+
'train800val200': 1000,
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
task = _TASK_DICT[task]
|
| 197 |
+
base_preprocess_fn = task['preprocess_fn']
|
| 198 |
+
super(KittiData, self).__init__(
|
| 199 |
+
dataset_builder=dataset_builder,
|
| 200 |
+
tfds_splits=tfds_splits,
|
| 201 |
+
num_samples_splits=num_samples_splits,
|
| 202 |
+
num_preprocessing_threads=400,
|
| 203 |
+
shuffle_buffer_size=10000,
|
| 204 |
+
base_preprocess_fn=base_preprocess_fn,
|
| 205 |
+
num_classes=task['num_classes'])
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/multilingual_mscoco.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import os
|
| 3 |
+
from subprocess import call
|
| 4 |
+
|
| 5 |
+
from PIL import Image
|
| 6 |
+
from torchvision.datasets import VisionDataset
|
| 7 |
+
|
| 8 |
+
GITHUB_MAIN_ORIGINAL_ANNOTATION_PATH = 'https://github.com/mehdidc/retrieval_annotations/releases/download/1.0.0/coco_{}_karpathy.json'
|
| 9 |
+
GITHUB_MAIN_PATH = 'https://raw.githubusercontent.com/adobe-research/Cross-lingual-Test-Dataset-XTD10/main/XTD10/'
|
| 10 |
+
SUPPORTED_LANGUAGES = ['es', 'it', 'ko', 'pl', 'ru', 'tr', 'zh', 'en', 'jp', 'fr']
|
| 11 |
+
|
| 12 |
+
IMAGE_INDEX_FILE = 'mscoco-multilingual_index.json'
|
| 13 |
+
IMAGE_INDEX_FILE_DOWNLOAD_NAME = 'test_image_names.txt'
|
| 14 |
+
|
| 15 |
+
CAPTIONS_FILE_DOWNLOAD_NAME = 'test_1kcaptions_{}.txt'
|
| 16 |
+
CAPTIONS_FILE_NAME = 'multilingual_mscoco_captions-{}.json'
|
| 17 |
+
|
| 18 |
+
ORIGINAL_ANNOTATION_FILE_NAME = 'coco_{}_karpathy.json'
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class Multilingual_MSCOCO(VisionDataset):
|
| 22 |
+
|
| 23 |
+
def __init__(self, root, ann_file, transform=None, target_transform=None):
|
| 24 |
+
super().__init__(root, transform=transform, target_transform=target_transform)
|
| 25 |
+
self.ann_file = os.path.expanduser(ann_file)
|
| 26 |
+
with open(ann_file, 'r') as fp:
|
| 27 |
+
data = json.load(fp)
|
| 28 |
+
|
| 29 |
+
self.data = [(img_path, txt) for img_path, txt in zip(data['image_paths'], data['annotations'])]
|
| 30 |
+
|
| 31 |
+
def __getitem__(self, index):
|
| 32 |
+
img, captions = self.data[index]
|
| 33 |
+
|
| 34 |
+
# Image
|
| 35 |
+
img = Image.open(os.path.join(self.root, img)).convert('RGB')
|
| 36 |
+
if self.transform is not None:
|
| 37 |
+
img = self.transform(img)
|
| 38 |
+
|
| 39 |
+
# Captions
|
| 40 |
+
target = [captions, ]
|
| 41 |
+
if self.target_transform is not None:
|
| 42 |
+
target = self.target_transform(target)
|
| 43 |
+
|
| 44 |
+
return img, target
|
| 45 |
+
|
| 46 |
+
def __len__(self) -> int:
|
| 47 |
+
return len(self.data)
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def _get_downloadable_file(filename, download_url, is_json=True):
|
| 51 |
+
if (os.path.exists(filename) is False):
|
| 52 |
+
print('Downloading', download_url)
|
| 53 |
+
call('wget {} -O {}'.format(download_url, filename), shell=True)
|
| 54 |
+
with open(filename, 'r') as fp:
|
| 55 |
+
if (is_json):
|
| 56 |
+
return json.load(fp)
|
| 57 |
+
return [line.strip() for line in fp.readlines()]
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def create_annotation_file(root, lang_code):
|
| 61 |
+
print('Downloading multilingual_ms_coco index file')
|
| 62 |
+
download_path = os.path.join(GITHUB_MAIN_PATH, IMAGE_INDEX_FILE_DOWNLOAD_NAME)
|
| 63 |
+
save_path = os.path.join(root, 'multilingual_coco_images.txt')
|
| 64 |
+
target_images = _get_downloadable_file(save_path, download_path, False)
|
| 65 |
+
|
| 66 |
+
print('Downloading multilingual_ms_coco captions:', lang_code)
|
| 67 |
+
download_path = os.path.join(GITHUB_MAIN_PATH, CAPTIONS_FILE_DOWNLOAD_NAME.format(lang_code))
|
| 68 |
+
if lang_code == 'jp':
|
| 69 |
+
download_path = 'https://github.com/adobe-research/Cross-lingual-Test-Dataset-XTD10/raw/main/STAIR/test_1kcaptions_jp.txt'
|
| 70 |
+
if lang_code == 'fr':
|
| 71 |
+
download_path = 'https://github.com/adobe-research/Cross-lingual-Test-Dataset-XTD10/raw/main/MIC/test_1kcaptions_fr.txt'
|
| 72 |
+
save_path = os.path.join(root, 'raw_multilingual_coco_captions_{}.txt'.format(lang_code))
|
| 73 |
+
target_captions = _get_downloadable_file(save_path, download_path, False)
|
| 74 |
+
|
| 75 |
+
number_of_missing_images = 0
|
| 76 |
+
valid_images, valid_annotations, valid_indicies = [], [], []
|
| 77 |
+
for i, (img, txt) in enumerate(zip(target_images, target_captions)):
|
| 78 |
+
# Create a new file name that includes the root split
|
| 79 |
+
root_split = 'val2014' if 'val' in img else 'train2014'
|
| 80 |
+
filename_with_root_split = '{}/{}'.format(root_split, img)
|
| 81 |
+
|
| 82 |
+
if (os.path.exists(filename_with_root_split)):
|
| 83 |
+
print('Missing image file', img)
|
| 84 |
+
number_of_missing_images += 1
|
| 85 |
+
continue
|
| 86 |
+
|
| 87 |
+
valid_images.append(filename_with_root_split)
|
| 88 |
+
valid_annotations.append(txt)
|
| 89 |
+
valid_indicies.append(i)
|
| 90 |
+
|
| 91 |
+
if (number_of_missing_images > 0):
|
| 92 |
+
print('*** WARNING *** missing {} files.'.format(number_of_missing_images))
|
| 93 |
+
|
| 94 |
+
with open(os.path.join(root, CAPTIONS_FILE_NAME.format(lang_code)), 'w') as fp:
|
| 95 |
+
json.dump({'image_paths': valid_images, 'annotations': valid_annotations, 'indicies': valid_indicies}, fp)
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/objectnet.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Code adapted from https://github.com/mlfoundations/wise-ft/blob/master/src/datasets/objectnet.py
|
| 3 |
+
Thanks to the authors of wise-ft
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
import json
|
| 7 |
+
import os
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
|
| 10 |
+
from torchvision import datasets
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def get_metadata(folder):
|
| 14 |
+
metadata = Path(folder)
|
| 15 |
+
|
| 16 |
+
with open(metadata / 'folder_to_objectnet_label.json', 'r') as f:
|
| 17 |
+
folder_map = json.load(f)
|
| 18 |
+
folder_map = {v: k for k, v in folder_map.items()}
|
| 19 |
+
with open(metadata / 'objectnet_to_imagenet_1k.json', 'r') as f:
|
| 20 |
+
objectnet_map = json.load(f)
|
| 21 |
+
|
| 22 |
+
with open(metadata / 'pytorch_to_imagenet_2012_id.json', 'r') as f:
|
| 23 |
+
pytorch_map = json.load(f)
|
| 24 |
+
pytorch_map = {v: k for k, v in pytorch_map.items()}
|
| 25 |
+
|
| 26 |
+
with open(metadata / 'imagenet_to_label_2012_v2', 'r') as f:
|
| 27 |
+
imagenet_map = {v.strip(): str(pytorch_map[i]) for i, v in enumerate(f)}
|
| 28 |
+
|
| 29 |
+
folder_to_ids, class_sublist = {}, []
|
| 30 |
+
classnames = []
|
| 31 |
+
for objectnet_name, imagenet_names in objectnet_map.items():
|
| 32 |
+
imagenet_names = imagenet_names.split('; ')
|
| 33 |
+
imagenet_ids = [int(imagenet_map[imagenet_name]) for imagenet_name in imagenet_names]
|
| 34 |
+
class_sublist.extend(imagenet_ids)
|
| 35 |
+
folder_to_ids[folder_map[objectnet_name]] = imagenet_ids
|
| 36 |
+
|
| 37 |
+
class_sublist = sorted(class_sublist)
|
| 38 |
+
class_sublist_mask = [(i in class_sublist) for i in range(1000)]
|
| 39 |
+
classname_map = {v: k for k, v in folder_map.items()}
|
| 40 |
+
return class_sublist, class_sublist_mask, folder_to_ids, classname_map
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
class ObjectNetDataset(datasets.ImageFolder):
|
| 44 |
+
|
| 45 |
+
def __init__(self, root, transform):
|
| 46 |
+
(self._class_sublist,
|
| 47 |
+
self.class_sublist_mask,
|
| 48 |
+
self.folders_to_ids,
|
| 49 |
+
self.classname_map) = get_metadata(root)
|
| 50 |
+
subdir = os.path.join(root, 'objectnet-1.0', 'images')
|
| 51 |
+
label_map = {name: idx for idx, name in enumerate(sorted(list(self.folders_to_ids.keys())))}
|
| 52 |
+
self.label_map = label_map
|
| 53 |
+
super().__init__(subdir, transform=transform)
|
| 54 |
+
self.samples = [
|
| 55 |
+
d for d in self.samples
|
| 56 |
+
if os.path.basename(os.path.dirname(d[0])) in self.label_map
|
| 57 |
+
]
|
| 58 |
+
self.imgs = self.samples
|
| 59 |
+
self.classes = sorted(list(self.folders_to_ids.keys()))
|
| 60 |
+
self.classes = [self.classname_map[c].lower() for c in self.classes]
|
| 61 |
+
|
| 62 |
+
def __len__(self):
|
| 63 |
+
return len(self.samples)
|
| 64 |
+
|
| 65 |
+
def __getitem__(self, index):
|
| 66 |
+
path, target = self.samples[index]
|
| 67 |
+
sample = self.loader(path)
|
| 68 |
+
if self.transform is not None:
|
| 69 |
+
sample = self.transform(sample)
|
| 70 |
+
label = os.path.basename(os.path.dirname(path))
|
| 71 |
+
return sample, self.label_map[label]
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/tfds.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from PIL import Image
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def download_tfds_dataset(name, data_dir=None):
|
| 6 |
+
import tensorflow_datasets as tfds
|
| 7 |
+
builder = tfds.builder(name, data_dir=data_dir)
|
| 8 |
+
builder.download_and_prepare()
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def disable_gpus_on_tensorflow():
|
| 12 |
+
import tensorflow as tf
|
| 13 |
+
tf.config.set_visible_devices([], 'GPU')
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class VTABIterableDataset(torch.utils.data.IterableDataset):
|
| 17 |
+
|
| 18 |
+
def __init__(self, tfds_dataset, split='test', input_name='image', label_name='label', input_mode='RGB',
|
| 19 |
+
transform=None, target_transform=None, classes=None):
|
| 20 |
+
self.tfds_dataset = tfds_dataset
|
| 21 |
+
self.input_name = input_name
|
| 22 |
+
self.label_name = label_name
|
| 23 |
+
self.transform = transform
|
| 24 |
+
self.target_transform = target_transform
|
| 25 |
+
self.input_mode = input_mode
|
| 26 |
+
self.num_examples = tfds_dataset.get_num_samples(split)
|
| 27 |
+
self.split = split
|
| 28 |
+
if classes is None:
|
| 29 |
+
self.classes = tfds_dataset._dataset_builder.info.features['label'].names
|
| 30 |
+
else:
|
| 31 |
+
self.classes = classes
|
| 32 |
+
|
| 33 |
+
def __iter__(self):
|
| 34 |
+
worker_info = torch.utils.data.get_worker_info()
|
| 35 |
+
iterator = self.tfds_dataset.get_tf_data(self.split, batch_size=1, epochs=1, for_eval=True)
|
| 36 |
+
if worker_info is not None:
|
| 37 |
+
iterator = iterator.shard(index=worker_info.id, num_shards=worker_info.num_workers)
|
| 38 |
+
nb = 0
|
| 39 |
+
for data in iterator:
|
| 40 |
+
inputs = (data[self.input_name].numpy())
|
| 41 |
+
labels = data[self.label_name].numpy()
|
| 42 |
+
for input, label in zip(inputs, labels):
|
| 43 |
+
input = Image.fromarray(input, mode=self.input_mode)
|
| 44 |
+
if self.transform is not None:
|
| 45 |
+
input = self.transform(input)
|
| 46 |
+
if self.target_transform is not None:
|
| 47 |
+
label = self.target_transform(label)
|
| 48 |
+
yield input, label
|
| 49 |
+
|
| 50 |
+
def __len__(self):
|
| 51 |
+
return self.num_examples
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/tools.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import re
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def process_single_caption(caption, max_words=50):
|
| 5 |
+
caption = re.sub(r"([.!\"()*#:;~])", ' ', caption.lower())
|
| 6 |
+
caption = re.sub(r'\s{2,}', ' ', caption)
|
| 7 |
+
caption = caption.rstrip('\n')
|
| 8 |
+
caption = caption.strip(' ')
|
| 9 |
+
|
| 10 |
+
# truncate caption
|
| 11 |
+
caption_words = caption.split(' ')
|
| 12 |
+
if len(caption_words) > max_words:
|
| 13 |
+
caption = ' '.join(caption_words[: max_words])
|
| 14 |
+
return caption
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def pre_caption(caption, max_words=50):
|
| 18 |
+
if type(caption) == str:
|
| 19 |
+
caption = process_single_caption(caption, max_words)
|
| 20 |
+
else:
|
| 21 |
+
caption = [process_single_caption(c, max_words) for c in caption]
|
| 22 |
+
return caption
|
InternVL-main/clip_benchmark/clip_benchmark/datasets/voc2007.py
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Code from https://github.com/SsnL/dataset-distillation/blob/master/datasets/pascal_voc.py , thanks to the authors
|
| 2 |
+
"""Dataset setting and data loader for PASCAL VOC 2007 as a classification task.
|
| 3 |
+
|
| 4 |
+
Modified from
|
| 5 |
+
https://github.com/Cadene/pretrained-models.pytorch/blob/56aa8c921819d14fb36d7248ab71e191b37cb146/pretrainedmodels/datasets/voc.py
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
import os
|
| 9 |
+
import os.path
|
| 10 |
+
import tarfile
|
| 11 |
+
import xml.etree.ElementTree as ET
|
| 12 |
+
from urllib.parse import urlparse
|
| 13 |
+
|
| 14 |
+
import torch
|
| 15 |
+
import torch.utils.data as data
|
| 16 |
+
import torchvision
|
| 17 |
+
from PIL import Image
|
| 18 |
+
|
| 19 |
+
object_categories = ['aeroplane', 'bicycle', 'bird', 'boat',
|
| 20 |
+
'bottle', 'bus', 'car', 'cat', 'chair',
|
| 21 |
+
'cow', 'diningtable', 'dog', 'horse',
|
| 22 |
+
'motorbike', 'person', 'pottedplant',
|
| 23 |
+
'sheep', 'sofa', 'train', 'tvmonitor']
|
| 24 |
+
|
| 25 |
+
category_to_idx = {c: i for i, c in enumerate(object_categories)}
|
| 26 |
+
|
| 27 |
+
urls = {
|
| 28 |
+
'devkit': 'http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCdevkit_08-Jun-2007.tar',
|
| 29 |
+
'trainval_2007': 'http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar',
|
| 30 |
+
'test_images_2007': 'http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar',
|
| 31 |
+
'test_anno_2007': 'http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtestnoimgs_06-Nov-2007.tar',
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def download_url(url, path):
|
| 36 |
+
root, filename = os.path.split(path)
|
| 37 |
+
torchvision.datasets.utils.download_url(url, root=root, filename=filename, md5=None)
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def download_voc2007(root):
|
| 41 |
+
path_devkit = os.path.join(root, 'VOCdevkit')
|
| 42 |
+
path_images = os.path.join(root, 'VOCdevkit', 'VOC2007', 'JPEGImages')
|
| 43 |
+
tmpdir = os.path.join(root, 'tmp')
|
| 44 |
+
|
| 45 |
+
# create directory
|
| 46 |
+
if not os.path.exists(root):
|
| 47 |
+
os.makedirs(root)
|
| 48 |
+
|
| 49 |
+
if not os.path.exists(path_devkit):
|
| 50 |
+
|
| 51 |
+
if not os.path.exists(tmpdir):
|
| 52 |
+
os.makedirs(tmpdir)
|
| 53 |
+
|
| 54 |
+
parts = urlparse(urls['devkit'])
|
| 55 |
+
filename = os.path.basename(parts.path)
|
| 56 |
+
cached_file = os.path.join(tmpdir, filename)
|
| 57 |
+
|
| 58 |
+
if not os.path.exists(cached_file):
|
| 59 |
+
download_url(urls['devkit'], cached_file)
|
| 60 |
+
|
| 61 |
+
# extract file
|
| 62 |
+
print('[dataset] Extracting tar file {file} to {path}'.format(file=cached_file, path=root))
|
| 63 |
+
cwd = os.getcwd()
|
| 64 |
+
tar = tarfile.open(cached_file, 'r')
|
| 65 |
+
os.chdir(root)
|
| 66 |
+
tar.extractall()
|
| 67 |
+
tar.close()
|
| 68 |
+
os.chdir(cwd)
|
| 69 |
+
print('[dataset] Done!')
|
| 70 |
+
|
| 71 |
+
# train/val images/annotations
|
| 72 |
+
if not os.path.exists(path_images):
|
| 73 |
+
|
| 74 |
+
# download train/val images/annotations
|
| 75 |
+
parts = urlparse(urls['trainval_2007'])
|
| 76 |
+
filename = os.path.basename(parts.path)
|
| 77 |
+
cached_file = os.path.join(tmpdir, filename)
|
| 78 |
+
|
| 79 |
+
if not os.path.exists(cached_file):
|
| 80 |
+
download_url(urls['trainval_2007'], cached_file)
|
| 81 |
+
|
| 82 |
+
# extract file
|
| 83 |
+
print('[dataset] Extracting tar file {file} to {path}'.format(file=cached_file, path=root))
|
| 84 |
+
cwd = os.getcwd()
|
| 85 |
+
tar = tarfile.open(cached_file, 'r')
|
| 86 |
+
os.chdir(root)
|
| 87 |
+
tar.extractall()
|
| 88 |
+
tar.close()
|
| 89 |
+
os.chdir(cwd)
|
| 90 |
+
print('[dataset] Done!')
|
| 91 |
+
|
| 92 |
+
# test annotations
|
| 93 |
+
test_anno = os.path.join(path_devkit, 'VOC2007/ImageSets/Main/aeroplane_test.txt')
|
| 94 |
+
if not os.path.exists(test_anno):
|
| 95 |
+
|
| 96 |
+
# download test annotations
|
| 97 |
+
parts = urlparse(urls['test_images_2007'])
|
| 98 |
+
filename = os.path.basename(parts.path)
|
| 99 |
+
cached_file = os.path.join(tmpdir, filename)
|
| 100 |
+
|
| 101 |
+
if not os.path.exists(cached_file):
|
| 102 |
+
download_url(urls['test_images_2007'], cached_file)
|
| 103 |
+
|
| 104 |
+
# extract file
|
| 105 |
+
print('[dataset] Extracting tar file {file} to {path}'.format(file=cached_file, path=root))
|
| 106 |
+
cwd = os.getcwd()
|
| 107 |
+
tar = tarfile.open(cached_file, 'r')
|
| 108 |
+
os.chdir(root)
|
| 109 |
+
tar.extractall()
|
| 110 |
+
tar.close()
|
| 111 |
+
os.chdir(cwd)
|
| 112 |
+
print('[dataset] Done!')
|
| 113 |
+
|
| 114 |
+
# test images
|
| 115 |
+
test_image = os.path.join(path_devkit, 'VOC2007/JPEGImages/000001.jpg')
|
| 116 |
+
if not os.path.exists(test_image):
|
| 117 |
+
|
| 118 |
+
# download test images
|
| 119 |
+
parts = urlparse(urls['test_anno_2007'])
|
| 120 |
+
filename = os.path.basename(parts.path)
|
| 121 |
+
cached_file = os.path.join(tmpdir, filename)
|
| 122 |
+
|
| 123 |
+
if not os.path.exists(cached_file):
|
| 124 |
+
download_url(urls['test_anno_2007'], cached_file)
|
| 125 |
+
|
| 126 |
+
# extract file
|
| 127 |
+
print('[dataset] Extracting tar file {file} to {path}'.format(file=cached_file, path=root))
|
| 128 |
+
cwd = os.getcwd()
|
| 129 |
+
tar = tarfile.open(cached_file, 'r')
|
| 130 |
+
os.chdir(root)
|
| 131 |
+
tar.extractall()
|
| 132 |
+
tar.close()
|
| 133 |
+
os.chdir(cwd)
|
| 134 |
+
print('[dataset] Done!')
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
def read_split(root, dataset, split):
|
| 138 |
+
base_path = os.path.join(root, 'VOCdevkit', dataset, 'ImageSets', 'Main')
|
| 139 |
+
filename = os.path.join(base_path, object_categories[0] + '_' + split + '.txt')
|
| 140 |
+
|
| 141 |
+
with open(filename, 'r') as f:
|
| 142 |
+
paths = []
|
| 143 |
+
for line in f.readlines():
|
| 144 |
+
line = line.strip().split()
|
| 145 |
+
if len(line) > 0:
|
| 146 |
+
assert len(line) == 2
|
| 147 |
+
paths.append(line[0])
|
| 148 |
+
|
| 149 |
+
return tuple(paths)
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
def read_bndbox(root, dataset, paths):
|
| 153 |
+
xml_base = os.path.join(root, 'VOCdevkit', dataset, 'Annotations')
|
| 154 |
+
instances = []
|
| 155 |
+
for path in paths:
|
| 156 |
+
xml = ET.parse(os.path.join(xml_base, path + '.xml'))
|
| 157 |
+
for obj in xml.findall('object'):
|
| 158 |
+
c = obj[0]
|
| 159 |
+
assert c.tag == 'name', c.tag
|
| 160 |
+
c = category_to_idx[c.text]
|
| 161 |
+
bndbox = obj.find('bndbox')
|
| 162 |
+
xmin = int(bndbox[0].text) # left
|
| 163 |
+
ymin = int(bndbox[1].text) # top
|
| 164 |
+
xmax = int(bndbox[2].text) # right
|
| 165 |
+
ymax = int(bndbox[3].text) # bottom
|
| 166 |
+
instances.append((path, (xmin, ymin, xmax, ymax), c))
|
| 167 |
+
return instances
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
class PASCALVoc2007(data.Dataset):
|
| 171 |
+
"""
|
| 172 |
+
Multi-label classification problem for voc2007
|
| 173 |
+
labels are of one hot of shape (C,), denoting the presence/absence
|
| 174 |
+
of each class in each image, where C is the number of classes.
|
| 175 |
+
"""
|
| 176 |
+
|
| 177 |
+
def __init__(self, root, set, transform=None, download=False, target_transform=None):
|
| 178 |
+
self.root = root
|
| 179 |
+
self.path_devkit = os.path.join(root, 'VOCdevkit')
|
| 180 |
+
self.path_images = os.path.join(root, 'VOCdevkit', 'VOC2007', 'JPEGImages')
|
| 181 |
+
self.transform = transform
|
| 182 |
+
self.target_transform = target_transform
|
| 183 |
+
|
| 184 |
+
# download dataset
|
| 185 |
+
if download:
|
| 186 |
+
download_voc2007(self.root)
|
| 187 |
+
|
| 188 |
+
paths = read_split(self.root, 'VOC2007', set)
|
| 189 |
+
bndboxes = read_bndbox(self.root, 'VOC2007', paths)
|
| 190 |
+
labels = torch.zeros(len(paths), len(object_categories))
|
| 191 |
+
path_index = {}
|
| 192 |
+
for i, p in enumerate(paths):
|
| 193 |
+
path_index[p] = i
|
| 194 |
+
for path, bbox, c in bndboxes:
|
| 195 |
+
labels[path_index[path], c] = 1
|
| 196 |
+
self.labels = labels
|
| 197 |
+
self.classes = object_categories
|
| 198 |
+
self.paths = paths
|
| 199 |
+
|
| 200 |
+
def __getitem__(self, index):
|
| 201 |
+
path = self.paths[index]
|
| 202 |
+
img = Image.open(os.path.join(self.path_images, path + '.jpg')).convert('RGB')
|
| 203 |
+
target = self.labels[index]
|
| 204 |
+
if self.transform is not None:
|
| 205 |
+
img = self.transform(img)
|
| 206 |
+
if self.target_transform is not None:
|
| 207 |
+
target = self.target_transform(target)
|
| 208 |
+
return img, target
|
| 209 |
+
|
| 210 |
+
def __len__(self):
|
| 211 |
+
return len(self.paths)
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
class PASCALVoc2007Cropped(data.Dataset):
|
| 215 |
+
"""
|
| 216 |
+
voc2007 is originally object detection and multi-label.
|
| 217 |
+
In this version, we just convert it to single-label per image classification
|
| 218 |
+
problem by looping over bounding boxes in the dataset and cropping the relevant
|
| 219 |
+
object.
|
| 220 |
+
"""
|
| 221 |
+
|
| 222 |
+
def __init__(self, root, set, transform=None, download=False, target_transform=None):
|
| 223 |
+
self.root = root
|
| 224 |
+
self.path_devkit = os.path.join(root, 'VOCdevkit')
|
| 225 |
+
self.path_images = os.path.join(root, 'VOCdevkit', 'VOC2007', 'JPEGImages')
|
| 226 |
+
self.transform = transform
|
| 227 |
+
self.target_transform = target_transform
|
| 228 |
+
|
| 229 |
+
# download dataset
|
| 230 |
+
if download:
|
| 231 |
+
download_voc2007(self.root)
|
| 232 |
+
|
| 233 |
+
paths = read_split(self.root, 'VOC2007', set)
|
| 234 |
+
self.bndboxes = read_bndbox(self.root, 'VOC2007', paths)
|
| 235 |
+
self.classes = object_categories
|
| 236 |
+
|
| 237 |
+
print('[dataset] VOC 2007 classification set=%s number of classes=%d number of bndboxes=%d' % (
|
| 238 |
+
set, len(self.classes), len(self.bndboxes)))
|
| 239 |
+
|
| 240 |
+
def __getitem__(self, index):
|
| 241 |
+
path, crop, target = self.bndboxes[index]
|
| 242 |
+
img = Image.open(os.path.join(self.path_images, path + '.jpg')).convert('RGB')
|
| 243 |
+
img = img.crop(crop)
|
| 244 |
+
if self.transform is not None:
|
| 245 |
+
img = self.transform(img)
|
| 246 |
+
if self.target_transform is not None:
|
| 247 |
+
target = self.target_transform(target)
|
| 248 |
+
return img, target
|
| 249 |
+
|
| 250 |
+
def __len__(self):
|
| 251 |
+
return len(self.bndboxes)
|
InternVL-main/clip_benchmark/clip_benchmark/models/intern_vit_6b/configuration_intern_vit.py
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------
|
| 2 |
+
# InternVL
|
| 3 |
+
# Copyright (c) 2023 OpenGVLab
|
| 4 |
+
# Licensed under The MIT License [see LICENSE for details]
|
| 5 |
+
# --------------------------------------------------------
|
| 6 |
+
import os
|
| 7 |
+
from typing import Union
|
| 8 |
+
|
| 9 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 10 |
+
from transformers.utils import logging
|
| 11 |
+
|
| 12 |
+
logger = logging.get_logger(__name__)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class InternVisionConfig(PretrainedConfig):
|
| 16 |
+
r"""
|
| 17 |
+
This is the configuration class to store the configuration of a [`InternVisionModel`]. It is used to
|
| 18 |
+
instantiate a vision encoder according to the specified arguments, defining the model architecture.
|
| 19 |
+
|
| 20 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
| 21 |
+
documentation from [`PretrainedConfig`] for more information.
|
| 22 |
+
|
| 23 |
+
Args:
|
| 24 |
+
num_channels (`int`, *optional*, defaults to 3):
|
| 25 |
+
Number of color channels in the input images (e.g., 3 for RGB).
|
| 26 |
+
patch_size (`int`, *optional*, defaults to 14):
|
| 27 |
+
The size (resolution) of each patch.
|
| 28 |
+
image_size (`int`, *optional*, defaults to 224):
|
| 29 |
+
The size (resolution) of each image.
|
| 30 |
+
qkv_bias (`bool`, *optional*, defaults to `False`):
|
| 31 |
+
Whether to add a bias to the queries and values in the self-attention layers.
|
| 32 |
+
hidden_size (`int`, *optional*, defaults to 3200):
|
| 33 |
+
Dimensionality of the encoder layers and the pooler layer.
|
| 34 |
+
num_attention_heads (`int`, *optional*, defaults to 25):
|
| 35 |
+
Number of attention heads for each attention layer in the Transformer encoder.
|
| 36 |
+
intermediate_size (`int`, *optional*, defaults to 12800):
|
| 37 |
+
Dimensionality of the "intermediate" (i.e., feed-forward) layer in the Transformer encoder.
|
| 38 |
+
qk_normalization (`bool`, *optional*, defaults to `True`):
|
| 39 |
+
Whether to normalize the queries and keys in the self-attention layers.
|
| 40 |
+
num_hidden_layers (`int`, *optional*, defaults to 48):
|
| 41 |
+
Number of hidden layers in the Transformer encoder.
|
| 42 |
+
use_flash_attn (`bool`, *optional*, defaults to `True`):
|
| 43 |
+
Whether to use flash attention mechanism.
|
| 44 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"gelu"`):
|
| 45 |
+
The non-linear activation function (function or string) in the encoder and pooler. If string, `"gelu"`,
|
| 46 |
+
`"relu"`, `"selu"` and `"gelu_new"` ``"gelu"` are supported.
|
| 47 |
+
layer_norm_eps (`float`, *optional*, defaults to 1e-6):
|
| 48 |
+
The epsilon used by the layer normalization layers.
|
| 49 |
+
dropout (`float`, *optional*, defaults to 0.0):
|
| 50 |
+
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.
|
| 51 |
+
drop_path_rate (`float`, *optional*, defaults to 0.0):
|
| 52 |
+
Dropout rate for stochastic depth.
|
| 53 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
| 54 |
+
The dropout ratio for the attention probabilities.
|
| 55 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
| 56 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
| 57 |
+
initializer_factor (`float`, *optional*, defaults to 0.1):
|
| 58 |
+
A factor for layer scale.
|
| 59 |
+
"""
|
| 60 |
+
|
| 61 |
+
model_type = 'intern_vit_6b'
|
| 62 |
+
|
| 63 |
+
def __init__(
|
| 64 |
+
self,
|
| 65 |
+
num_channels=3,
|
| 66 |
+
patch_size=14,
|
| 67 |
+
image_size=224,
|
| 68 |
+
qkv_bias=False,
|
| 69 |
+
hidden_size=3200,
|
| 70 |
+
num_attention_heads=25,
|
| 71 |
+
intermediate_size=12800,
|
| 72 |
+
qk_normalization=True,
|
| 73 |
+
num_hidden_layers=48,
|
| 74 |
+
use_flash_attn=True,
|
| 75 |
+
hidden_act='gelu',
|
| 76 |
+
layer_norm_eps=1e-6,
|
| 77 |
+
dropout=0.0,
|
| 78 |
+
drop_path_rate=0.0,
|
| 79 |
+
attention_dropout=0.0,
|
| 80 |
+
initializer_range=0.02,
|
| 81 |
+
initializer_factor=0.1,
|
| 82 |
+
**kwargs,
|
| 83 |
+
):
|
| 84 |
+
super().__init__(**kwargs)
|
| 85 |
+
|
| 86 |
+
self.hidden_size = hidden_size
|
| 87 |
+
self.intermediate_size = intermediate_size
|
| 88 |
+
self.dropout = dropout
|
| 89 |
+
self.drop_path_rate = drop_path_rate
|
| 90 |
+
self.num_hidden_layers = num_hidden_layers
|
| 91 |
+
self.num_attention_heads = num_attention_heads
|
| 92 |
+
self.num_channels = num_channels
|
| 93 |
+
self.patch_size = patch_size
|
| 94 |
+
self.image_size = image_size
|
| 95 |
+
self.initializer_range = initializer_range
|
| 96 |
+
self.initializer_factor = initializer_factor
|
| 97 |
+
self.attention_dropout = attention_dropout
|
| 98 |
+
self.layer_norm_eps = layer_norm_eps
|
| 99 |
+
self.hidden_act = hidden_act
|
| 100 |
+
self.qkv_bias = qkv_bias
|
| 101 |
+
self.qk_normalization = qk_normalization
|
| 102 |
+
self.use_flash_attn = use_flash_attn
|
| 103 |
+
|
| 104 |
+
@classmethod
|
| 105 |
+
def from_pretrained(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs) -> 'PretrainedConfig':
|
| 106 |
+
config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
|
| 107 |
+
|
| 108 |
+
if 'vision_config' in config_dict:
|
| 109 |
+
config_dict = config_dict['vision_config']
|
| 110 |
+
|
| 111 |
+
if 'model_type' in config_dict and hasattr(cls, 'model_type') and config_dict['model_type'] != cls.model_type:
|
| 112 |
+
logger.warning(
|
| 113 |
+
f"You are using a model of type {config_dict['model_type']} to instantiate a model of type "
|
| 114 |
+
f'{cls.model_type}. This is not supported for all configurations of models and can yield errors.'
|
| 115 |
+
)
|
| 116 |
+
|
| 117 |
+
return cls.from_dict(config_dict, **kwargs)
|
InternVL-main/clip_benchmark/clip_benchmark/models/intern_vit_6b/flash_attention.py
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
import torch.nn as nn
|
| 3 |
+
from einops import rearrange
|
| 4 |
+
|
| 5 |
+
try: # v1
|
| 6 |
+
from flash_attn.flash_attn_interface import \
|
| 7 |
+
flash_attn_unpadded_qkvpacked_func
|
| 8 |
+
except: # v2
|
| 9 |
+
from flash_attn.flash_attn_interface import flash_attn_varlen_qkvpacked_func as flash_attn_unpadded_qkvpacked_func
|
| 10 |
+
|
| 11 |
+
from flash_attn.bert_padding import pad_input, unpad_input
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class FlashAttention(nn.Module):
|
| 15 |
+
"""Implement the scaled dot product attention with softmax.
|
| 16 |
+
Arguments
|
| 17 |
+
---------
|
| 18 |
+
softmax_scale: The temperature to use for the softmax attention.
|
| 19 |
+
(default: 1/sqrt(d_keys) where d_keys is computed at
|
| 20 |
+
runtime)
|
| 21 |
+
attention_dropout: The dropout rate to apply to the attention
|
| 22 |
+
(default: 0.0)
|
| 23 |
+
"""
|
| 24 |
+
|
| 25 |
+
def __init__(self, softmax_scale=None, attention_dropout=0.0, device=None, dtype=None):
|
| 26 |
+
super().__init__()
|
| 27 |
+
self.softmax_scale = softmax_scale
|
| 28 |
+
self.dropout_p = attention_dropout
|
| 29 |
+
|
| 30 |
+
def forward(self, qkv, key_padding_mask=None, causal=False, cu_seqlens=None,
|
| 31 |
+
max_s=None, need_weights=False):
|
| 32 |
+
"""Implements the multihead softmax attention.
|
| 33 |
+
Arguments
|
| 34 |
+
---------
|
| 35 |
+
qkv: The tensor containing the query, key, and value. (B, S, 3, H, D) if key_padding_mask is None
|
| 36 |
+
if unpadded: (nnz, 3, h, d)
|
| 37 |
+
key_padding_mask: a bool tensor of shape (B, S)
|
| 38 |
+
"""
|
| 39 |
+
assert not need_weights
|
| 40 |
+
assert qkv.dtype in [torch.float16, torch.bfloat16]
|
| 41 |
+
assert qkv.is_cuda
|
| 42 |
+
|
| 43 |
+
if cu_seqlens is None:
|
| 44 |
+
batch_size = qkv.shape[0]
|
| 45 |
+
seqlen = qkv.shape[1]
|
| 46 |
+
if key_padding_mask is None:
|
| 47 |
+
qkv = rearrange(qkv, 'b s ... -> (b s) ...')
|
| 48 |
+
max_s = seqlen
|
| 49 |
+
cu_seqlens = torch.arange(0, (batch_size + 1) * seqlen, step=seqlen, dtype=torch.int32,
|
| 50 |
+
device=qkv.device)
|
| 51 |
+
output = flash_attn_unpadded_qkvpacked_func(
|
| 52 |
+
qkv, cu_seqlens, max_s, self.dropout_p if self.training else 0.0,
|
| 53 |
+
softmax_scale=self.softmax_scale, causal=causal
|
| 54 |
+
)
|
| 55 |
+
output = rearrange(output, '(b s) ... -> b s ...', b=batch_size)
|
| 56 |
+
else:
|
| 57 |
+
nheads = qkv.shape[-2]
|
| 58 |
+
x = rearrange(qkv, 'b s three h d -> b s (three h d)')
|
| 59 |
+
x_unpad, indices, cu_seqlens, max_s = unpad_input(x, key_padding_mask)
|
| 60 |
+
x_unpad = rearrange(x_unpad, 'nnz (three h d) -> nnz three h d', three=3, h=nheads)
|
| 61 |
+
output_unpad = flash_attn_unpadded_qkvpacked_func(
|
| 62 |
+
x_unpad, cu_seqlens, max_s, self.dropout_p if self.training else 0.0,
|
| 63 |
+
softmax_scale=self.softmax_scale, causal=causal
|
| 64 |
+
)
|
| 65 |
+
output = rearrange(pad_input(rearrange(output_unpad, 'nnz h d -> nnz (h d)'),
|
| 66 |
+
indices, batch_size, seqlen),
|
| 67 |
+
'b s (h d) -> b s h d', h=nheads)
|
| 68 |
+
else:
|
| 69 |
+
assert max_s is not None
|
| 70 |
+
output = flash_attn_unpadded_qkvpacked_func(
|
| 71 |
+
qkv, cu_seqlens, max_s, self.dropout_p if self.training else 0.0,
|
| 72 |
+
softmax_scale=self.softmax_scale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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------
|
| 2 |
+
# InternVL
|
| 3 |
+
# Copyright (c) 2023 OpenGVLab
|
| 4 |
+
# Licensed under The MIT License [see LICENSE for details]
|
| 5 |
+
# --------------------------------------------------------
|
| 6 |
+
from typing import Optional, Tuple, Union
|
| 7 |
+
|
| 8 |
+
import torch
|
| 9 |
+
import torch.nn.functional as F
|
| 10 |
+
import torch.utils.checkpoint
|
| 11 |
+
from einops import rearrange
|
| 12 |
+
from timm.models.layers import DropPath
|
| 13 |
+
from torch import nn
|
| 14 |
+
from transformers.activations import ACT2FN
|
| 15 |
+
from transformers.modeling_outputs import (BaseModelOutput,
|
| 16 |
+
BaseModelOutputWithPooling)
|
| 17 |
+
from transformers.modeling_utils import PreTrainedModel
|
| 18 |
+
from transformers.utils import logging
|
| 19 |
+
|
| 20 |
+
from .configuration_intern_vit import InternVisionConfig
|
| 21 |
+
|
| 22 |
+
try:
|
| 23 |
+
from .flash_attention import FlashAttention
|
| 24 |
+
has_flash_attn = True
|
| 25 |
+
except:
|
| 26 |
+
print('FlashAttention is not installed.')
|
| 27 |
+
has_flash_attn = False
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
logger = logging.get_logger(__name__)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
class InternRMSNorm(nn.Module):
|
| 34 |
+
def __init__(self, hidden_size, eps=1e-6):
|
| 35 |
+
super().__init__()
|
| 36 |
+
self.weight = nn.Parameter(torch.ones(hidden_size))
|
| 37 |
+
self.variance_epsilon = eps
|
| 38 |
+
|
| 39 |
+
def forward(self, hidden_states):
|
| 40 |
+
input_dtype = hidden_states.dtype
|
| 41 |
+
hidden_states = hidden_states.to(torch.float32)
|
| 42 |
+
variance = hidden_states.pow(2).mean(-1, keepdim=True)
|
| 43 |
+
hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
|
| 44 |
+
return self.weight * hidden_states.to(input_dtype)
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
try:
|
| 48 |
+
from apex.normalization import FusedRMSNorm
|
| 49 |
+
|
| 50 |
+
InternRMSNorm = FusedRMSNorm # noqa
|
| 51 |
+
|
| 52 |
+
logger.info('Discovered apex.normalization.FusedRMSNorm - will use it instead of InternRMSNorm')
|
| 53 |
+
except ImportError:
|
| 54 |
+
# using the normal InternRMSNorm
|
| 55 |
+
pass
|
| 56 |
+
except Exception:
|
| 57 |
+
logger.warning('discovered apex but it failed to load, falling back to InternRMSNorm')
|
| 58 |
+
pass
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
class InternVisionEmbeddings(nn.Module):
|
| 62 |
+
def __init__(self, config: InternVisionConfig):
|
| 63 |
+
super().__init__()
|
| 64 |
+
self.config = config
|
| 65 |
+
self.embed_dim = config.hidden_size
|
| 66 |
+
self.image_size = config.image_size
|
| 67 |
+
self.patch_size = config.patch_size
|
| 68 |
+
|
| 69 |
+
self.class_embedding = nn.Parameter(
|
| 70 |
+
torch.randn(1, 1, self.embed_dim),
|
| 71 |
+
)
|
| 72 |
+
|
| 73 |
+
self.patch_embedding = nn.Conv2d(
|
| 74 |
+
in_channels=3, out_channels=self.embed_dim, kernel_size=self.patch_size, stride=self.patch_size
|
| 75 |
+
)
|
| 76 |
+
|
| 77 |
+
self.num_patches = (self.image_size // self.patch_size) ** 2
|
| 78 |
+
self.num_positions = self.num_patches + 1
|
| 79 |
+
|
| 80 |
+
self.position_embedding = nn.Parameter(torch.randn(1, self.num_positions, self.embed_dim))
|
| 81 |
+
|
| 82 |
+
def forward(self, pixel_values: torch.FloatTensor) -> torch.Tensor:
|
| 83 |
+
batch_size = pixel_values.shape[0]
|
| 84 |
+
target_dtype = self.patch_embedding.weight.dtype
|
| 85 |
+
patch_embeds = self.patch_embedding(pixel_values) # shape = [*, width, grid, grid]
|
| 86 |
+
patch_embeds = patch_embeds.flatten(2).transpose(1, 2)
|
| 87 |
+
class_embeds = self.class_embedding.expand(batch_size, 1, -1).to(target_dtype)
|
| 88 |
+
embeddings = torch.cat([class_embeds, patch_embeds], dim=1)
|
| 89 |
+
embeddings = embeddings + self.position_embedding.to(target_dtype)
|
| 90 |
+
return embeddings
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
class InternAttention(nn.Module):
|
| 94 |
+
"""Multi-headed attention from 'Attention Is All You Need' paper"""
|
| 95 |
+
|
| 96 |
+
def __init__(self, config: InternVisionConfig):
|
| 97 |
+
super().__init__()
|
| 98 |
+
self.config = config
|
| 99 |
+
self.embed_dim = config.hidden_size
|
| 100 |
+
self.num_heads = config.num_attention_heads
|
| 101 |
+
self.use_flash_attn = config.use_flash_attn and has_flash_attn
|
| 102 |
+
if config.use_flash_attn and not has_flash_attn:
|
| 103 |
+
print('Warning: Flash Attention is not available, use_flash_attn is set to False.')
|
| 104 |
+
self.head_dim = self.embed_dim // self.num_heads
|
| 105 |
+
if self.head_dim * self.num_heads != self.embed_dim:
|
| 106 |
+
raise ValueError(
|
| 107 |
+
f'embed_dim must be divisible by num_heads (got `embed_dim`: {self.embed_dim} and `num_heads`:'
|
| 108 |
+
f' {self.num_heads}).'
|
| 109 |
+
)
|
| 110 |
+
|
| 111 |
+
self.scale = self.head_dim ** -0.5
|
| 112 |
+
self.qkv = nn.Linear(self.embed_dim, 3 * self.embed_dim, bias=config.qkv_bias)
|
| 113 |
+
self.attn_drop = nn.Dropout(config.attention_dropout)
|
| 114 |
+
self.proj_drop = nn.Dropout(config.dropout)
|
| 115 |
+
|
| 116 |
+
self.qk_normalization = config.qk_normalization
|
| 117 |
+
|
| 118 |
+
if self.qk_normalization:
|
| 119 |
+
self.q_norm = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 120 |
+
self.k_norm = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 121 |
+
|
| 122 |
+
if self.use_flash_attn:
|
| 123 |
+
self.inner_attn = FlashAttention(attention_dropout=config.attention_dropout)
|
| 124 |
+
self.proj = nn.Linear(self.embed_dim, self.embed_dim)
|
| 125 |
+
|
| 126 |
+
def _naive_attn(self, x):
|
| 127 |
+
B, N, C = x.shape
|
| 128 |
+
qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
|
| 129 |
+
q, k, v = qkv.unbind(0) # make torchscript happy (cannot use tensor as tuple)
|
| 130 |
+
|
| 131 |
+
if self.qk_normalization:
|
| 132 |
+
B_, H_, N_, D_ = q.shape
|
| 133 |
+
q = self.q_norm(q.transpose(1, 2).flatten(-2, -1)).view(B_, N_, H_, D_).transpose(1, 2)
|
| 134 |
+
k = self.k_norm(k.transpose(1, 2).flatten(-2, -1)).view(B_, N_, H_, D_).transpose(1, 2)
|
| 135 |
+
|
| 136 |
+
attn = ((q * self.scale) @ k.transpose(-2, -1))
|
| 137 |
+
attn = attn.softmax(dim=-1)
|
| 138 |
+
attn = self.attn_drop(attn)
|
| 139 |
+
|
| 140 |
+
x = (attn @ v).transpose(1, 2).reshape(B, N, C)
|
| 141 |
+
x = self.proj(x)
|
| 142 |
+
x = self.proj_drop(x)
|
| 143 |
+
return x
|
| 144 |
+
|
| 145 |
+
def _flash_attn(self, x, key_padding_mask=None, need_weights=False):
|
| 146 |
+
qkv = self.qkv(x)
|
| 147 |
+
qkv = rearrange(qkv, 'b s (three h d) -> b s three h d', three=3, h=self.num_heads)
|
| 148 |
+
|
| 149 |
+
if self.qk_normalization:
|
| 150 |
+
q, k, v = qkv.unbind(2)
|
| 151 |
+
q = self.q_norm(q.flatten(-2, -1)).view(q.shape)
|
| 152 |
+
k = self.k_norm(k.flatten(-2, -1)).view(k.shape)
|
| 153 |
+
qkv = torch.stack([q, k, v], dim=2)
|
| 154 |
+
|
| 155 |
+
context, _ = self.inner_attn(
|
| 156 |
+
qkv, key_padding_mask=key_padding_mask, need_weights=need_weights, causal=False
|
| 157 |
+
)
|
| 158 |
+
outs = self.proj(rearrange(context, 'b s h d -> b s (h d)'))
|
| 159 |
+
outs = self.proj_drop(outs)
|
| 160 |
+
return outs
|
| 161 |
+
|
| 162 |
+
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
| 163 |
+
x = self._naive_attn(hidden_states) if not self.use_flash_attn else self._flash_attn(hidden_states)
|
| 164 |
+
return x
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
class InternMLP(nn.Module):
|
| 168 |
+
def __init__(self, config: InternVisionConfig):
|
| 169 |
+
super().__init__()
|
| 170 |
+
self.config = config
|
| 171 |
+
self.act = ACT2FN[config.hidden_act]
|
| 172 |
+
self.fc1 = nn.Linear(config.hidden_size, config.intermediate_size)
|
| 173 |
+
self.fc2 = nn.Linear(config.intermediate_size, config.hidden_size)
|
| 174 |
+
|
| 175 |
+
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
| 176 |
+
hidden_states = self.fc1(hidden_states)
|
| 177 |
+
hidden_states = self.act(hidden_states)
|
| 178 |
+
hidden_states = self.fc2(hidden_states)
|
| 179 |
+
return hidden_states
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
class InternVisionEncoderLayer(nn.Module):
|
| 183 |
+
def __init__(self, config: InternVisionConfig, drop_path_rate: float):
|
| 184 |
+
super().__init__()
|
| 185 |
+
self.embed_dim = config.hidden_size
|
| 186 |
+
self.intermediate_size = config.intermediate_size
|
| 187 |
+
|
| 188 |
+
self.attn = InternAttention(config)
|
| 189 |
+
self.mlp = InternMLP(config)
|
| 190 |
+
self.norm1 = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 191 |
+
self.norm2 = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 192 |
+
|
| 193 |
+
self.ls1 = nn.Parameter(config.initializer_factor * torch.ones(self.embed_dim))
|
| 194 |
+
self.ls2 = nn.Parameter(config.initializer_factor * torch.ones(self.embed_dim))
|
| 195 |
+
self.drop_path1 = DropPath(drop_path_rate) if drop_path_rate > 0. else nn.Identity()
|
| 196 |
+
self.drop_path2 = DropPath(drop_path_rate) if drop_path_rate > 0. else nn.Identity()
|
| 197 |
+
|
| 198 |
+
def forward(
|
| 199 |
+
self,
|
| 200 |
+
hidden_states: torch.Tensor,
|
| 201 |
+
) -> Tuple[torch.FloatTensor, Optional[torch.FloatTensor], Optional[Tuple[torch.FloatTensor]]]:
|
| 202 |
+
"""
|
| 203 |
+
Args:
|
| 204 |
+
hidden_states (`Tuple[torch.FloatTensor, Optional[torch.FloatTensor]]`): input to the layer of shape `(batch, seq_len, embed_dim)`
|
| 205 |
+
"""
|
| 206 |
+
hidden_states = hidden_states + self.drop_path1(self.attn(self.norm1(hidden_states)) * self.ls1)
|
| 207 |
+
|
| 208 |
+
hidden_states = hidden_states + self.drop_path2(self.mlp(self.norm2(hidden_states)) * self.ls2)
|
| 209 |
+
|
| 210 |
+
return hidden_states
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
class InternVisionEncoder(nn.Module):
|
| 214 |
+
"""
|
| 215 |
+
Transformer encoder consisting of `config.num_hidden_layers` self attention layers. Each layer is a
|
| 216 |
+
[`InternEncoderLayer`].
|
| 217 |
+
|
| 218 |
+
Args:
|
| 219 |
+
config (`InternConfig`):
|
| 220 |
+
The corresponding vision configuration for the `InternEncoder`.
|
| 221 |
+
"""
|
| 222 |
+
|
| 223 |
+
def __init__(self, config: InternVisionConfig):
|
| 224 |
+
super().__init__()
|
| 225 |
+
self.config = config
|
| 226 |
+
# stochastic depth decay rule
|
| 227 |
+
dpr = [x.item() for x in torch.linspace(0, config.drop_path_rate, config.num_hidden_layers)]
|
| 228 |
+
self.layers = nn.ModuleList([
|
| 229 |
+
InternVisionEncoderLayer(config, dpr[idx]) for idx in range(config.num_hidden_layers)])
|
| 230 |
+
self.gradient_checkpointing = True
|
| 231 |
+
|
| 232 |
+
def forward(
|
| 233 |
+
self,
|
| 234 |
+
inputs_embeds,
|
| 235 |
+
output_hidden_states: Optional[bool] = None,
|
| 236 |
+
return_dict: Optional[bool] = None,
|
| 237 |
+
) -> Union[Tuple, BaseModelOutput]:
|
| 238 |
+
r"""
|
| 239 |
+
Args:
|
| 240 |
+
inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`):
|
| 241 |
+
Embedded representation of the inputs. Should be float, not int tokens.
|
| 242 |
+
output_hidden_states (`bool`, *optional*):
|
| 243 |
+
Whether or not to return the hidden states of all layers. See `hidden_states` under returned tensors
|
| 244 |
+
for more detail.
|
| 245 |
+
return_dict (`bool`, *optional*):
|
| 246 |
+
Whether or not to return a [`~utils.ModelOutput`] instead of a plain tuple.
|
| 247 |
+
"""
|
| 248 |
+
output_hidden_states = (
|
| 249 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 250 |
+
)
|
| 251 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 252 |
+
|
| 253 |
+
encoder_states = () if output_hidden_states else None
|
| 254 |
+
hidden_states = inputs_embeds
|
| 255 |
+
|
| 256 |
+
for idx, encoder_layer in enumerate(self.layers):
|
| 257 |
+
if output_hidden_states:
|
| 258 |
+
encoder_states = encoder_states + (hidden_states,)
|
| 259 |
+
if self.gradient_checkpointing and self.training:
|
| 260 |
+
layer_outputs = torch.utils.checkpoint.checkpoint(
|
| 261 |
+
encoder_layer,
|
| 262 |
+
hidden_states)
|
| 263 |
+
else:
|
| 264 |
+
layer_outputs = encoder_layer(
|
| 265 |
+
hidden_states,
|
| 266 |
+
)
|
| 267 |
+
hidden_states = layer_outputs
|
| 268 |
+
|
| 269 |
+
if output_hidden_states:
|
| 270 |
+
encoder_states = encoder_states + (hidden_states,)
|
| 271 |
+
|
| 272 |
+
if not return_dict:
|
| 273 |
+
return tuple(v for v in [hidden_states, encoder_states] if v is not None)
|
| 274 |
+
return BaseModelOutput(
|
| 275 |
+
last_hidden_state=hidden_states, hidden_states=encoder_states
|
| 276 |
+
)
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
class InternVisionModel(PreTrainedModel):
|
| 280 |
+
main_input_name = 'pixel_values'
|
| 281 |
+
config_class = InternVisionConfig
|
| 282 |
+
|
| 283 |
+
def __init__(self, config: InternVisionConfig):
|
| 284 |
+
super().__init__(config)
|
| 285 |
+
self.config = config
|
| 286 |
+
|
| 287 |
+
self.embeddings = InternVisionEmbeddings(config)
|
| 288 |
+
self.encoder = InternVisionEncoder(config)
|
| 289 |
+
|
| 290 |
+
def resize_pos_embeddings(self, old_size, new_size, patch_size):
|
| 291 |
+
pos_emb = self.embeddings.position_embedding
|
| 292 |
+
_, num_positions, embed_dim = pos_emb.shape
|
| 293 |
+
cls_emb = pos_emb[:, :1, :]
|
| 294 |
+
pos_emb = pos_emb[:, 1:, :].reshape(1, old_size // patch_size, old_size // patch_size, -1).permute(0, 3, 1, 2)
|
| 295 |
+
pos_emb = F.interpolate(pos_emb.float(), size=new_size // patch_size, mode='bicubic', align_corners=False)
|
| 296 |
+
pos_emb = pos_emb.to(cls_emb.dtype).reshape(1, embed_dim, -1).permute(0, 2, 1)
|
| 297 |
+
pos_emb = torch.cat([cls_emb, pos_emb], dim=1)
|
| 298 |
+
self.embeddings.position_embedding = nn.Parameter(pos_emb)
|
| 299 |
+
logger.info('Resized position embeddings from {} to {}'.format(old_size, new_size))
|
| 300 |
+
|
| 301 |
+
def get_input_embeddings(self):
|
| 302 |
+
return self.embeddings
|
| 303 |
+
|
| 304 |
+
def forward(
|
| 305 |
+
self,
|
| 306 |
+
pixel_values: Optional[torch.FloatTensor] = None,
|
| 307 |
+
output_hidden_states: Optional[bool] = None,
|
| 308 |
+
return_dict: Optional[bool] = None,
|
| 309 |
+
pixel_embeds: Optional[torch.FloatTensor] = None,
|
| 310 |
+
) -> Union[Tuple, BaseModelOutputWithPooling]:
|
| 311 |
+
output_hidden_states = (
|
| 312 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 313 |
+
)
|
| 314 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 315 |
+
|
| 316 |
+
if pixel_values is None and pixel_embeds is None:
|
| 317 |
+
raise ValueError('You have to specify pixel_values or pixel_embeds')
|
| 318 |
+
|
| 319 |
+
if pixel_embeds is not None:
|
| 320 |
+
hidden_states = pixel_embeds
|
| 321 |
+
else:
|
| 322 |
+
if len(pixel_values.shape) == 4:
|
| 323 |
+
hidden_states = self.embeddings(pixel_values)
|
| 324 |
+
else:
|
| 325 |
+
raise ValueError(f'wrong pixel_values size: {pixel_values.shape}')
|
| 326 |
+
encoder_outputs = self.encoder(
|
| 327 |
+
inputs_embeds=hidden_states,
|
| 328 |
+
output_hidden_states=output_hidden_states,
|
| 329 |
+
return_dict=return_dict,
|
| 330 |
+
)
|
| 331 |
+
last_hidden_state = encoder_outputs.last_hidden_state
|
| 332 |
+
pooled_output = last_hidden_state[:, 0, :]
|
| 333 |
+
|
| 334 |
+
if not return_dict:
|
| 335 |
+
return (last_hidden_state, pooled_output) + encoder_outputs[1:]
|
| 336 |
+
|
| 337 |
+
return BaseModelOutputWithPooling(
|
| 338 |
+
last_hidden_state=last_hidden_state,
|
| 339 |
+
pooler_output=pooled_output,
|
| 340 |
+
hidden_states=encoder_outputs.hidden_states,
|
| 341 |
+
attentions=encoder_outputs.attentions,
|
| 342 |
+
)
|
InternVL-main/clip_benchmark/clip_benchmark/models/internvl_huggingface/configuration_intern_vit.py
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------
|
| 2 |
+
# InternVL
|
| 3 |
+
# Copyright (c) 2023 OpenGVLab
|
| 4 |
+
# Licensed under The MIT License [see LICENSE for details]
|
| 5 |
+
# --------------------------------------------------------
|
| 6 |
+
import os
|
| 7 |
+
from typing import Union
|
| 8 |
+
|
| 9 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 10 |
+
from transformers.utils import logging
|
| 11 |
+
|
| 12 |
+
logger = logging.get_logger(__name__)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class InternVisionConfig(PretrainedConfig):
|
| 16 |
+
r"""
|
| 17 |
+
This is the configuration class to store the configuration of a [`InternVisionModel`]. It is used to
|
| 18 |
+
instantiate a vision encoder according to the specified arguments, defining the model architecture.
|
| 19 |
+
|
| 20 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
| 21 |
+
documentation from [`PretrainedConfig`] for more information.
|
| 22 |
+
|
| 23 |
+
Args:
|
| 24 |
+
num_channels (`int`, *optional*, defaults to 3):
|
| 25 |
+
Number of color channels in the input images (e.g., 3 for RGB).
|
| 26 |
+
patch_size (`int`, *optional*, defaults to 14):
|
| 27 |
+
The size (resolution) of each patch.
|
| 28 |
+
image_size (`int`, *optional*, defaults to 224):
|
| 29 |
+
The size (resolution) of each image.
|
| 30 |
+
qkv_bias (`bool`, *optional*, defaults to `False`):
|
| 31 |
+
Whether to add a bias to the queries and values in the self-attention layers.
|
| 32 |
+
hidden_size (`int`, *optional*, defaults to 3200):
|
| 33 |
+
Dimensionality of the encoder layers and the pooler layer.
|
| 34 |
+
num_attention_heads (`int`, *optional*, defaults to 25):
|
| 35 |
+
Number of attention heads for each attention layer in the Transformer encoder.
|
| 36 |
+
intermediate_size (`int`, *optional*, defaults to 12800):
|
| 37 |
+
Dimensionality of the "intermediate" (i.e., feed-forward) layer in the Transformer encoder.
|
| 38 |
+
qk_normalization (`bool`, *optional*, defaults to `True`):
|
| 39 |
+
Whether to normalize the queries and keys in the self-attention layers.
|
| 40 |
+
num_hidden_layers (`int`, *optional*, defaults to 48):
|
| 41 |
+
Number of hidden layers in the Transformer encoder.
|
| 42 |
+
use_flash_attn (`bool`, *optional*, defaults to `True`):
|
| 43 |
+
Whether to use flash attention mechanism.
|
| 44 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"gelu"`):
|
| 45 |
+
The non-linear activation function (function or string) in the encoder and pooler. If string, `"gelu"`,
|
| 46 |
+
`"relu"`, `"selu"` and `"gelu_new"` ``"gelu"` are supported.
|
| 47 |
+
layer_norm_eps (`float`, *optional*, defaults to 1e-6):
|
| 48 |
+
The epsilon used by the layer normalization layers.
|
| 49 |
+
dropout (`float`, *optional*, defaults to 0.0):
|
| 50 |
+
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.
|
| 51 |
+
drop_path_rate (`float`, *optional*, defaults to 0.0):
|
| 52 |
+
Dropout rate for stochastic depth.
|
| 53 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
| 54 |
+
The dropout ratio for the attention probabilities.
|
| 55 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
| 56 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
| 57 |
+
initializer_factor (`float`, *optional*, defaults to 0.1):
|
| 58 |
+
A factor for layer scale.
|
| 59 |
+
"""
|
| 60 |
+
|
| 61 |
+
model_type = 'intern_vit_6b'
|
| 62 |
+
|
| 63 |
+
def __init__(
|
| 64 |
+
self,
|
| 65 |
+
num_channels=3,
|
| 66 |
+
patch_size=14,
|
| 67 |
+
image_size=224,
|
| 68 |
+
qkv_bias=False,
|
| 69 |
+
hidden_size=3200,
|
| 70 |
+
num_attention_heads=25,
|
| 71 |
+
intermediate_size=12800,
|
| 72 |
+
qk_normalization=True,
|
| 73 |
+
num_hidden_layers=48,
|
| 74 |
+
use_flash_attn=True,
|
| 75 |
+
hidden_act='gelu',
|
| 76 |
+
layer_norm_eps=1e-6,
|
| 77 |
+
dropout=0.0,
|
| 78 |
+
drop_path_rate=0.0,
|
| 79 |
+
attention_dropout=0.0,
|
| 80 |
+
initializer_range=0.02,
|
| 81 |
+
initializer_factor=0.1,
|
| 82 |
+
**kwargs,
|
| 83 |
+
):
|
| 84 |
+
super().__init__(**kwargs)
|
| 85 |
+
|
| 86 |
+
self.hidden_size = hidden_size
|
| 87 |
+
self.intermediate_size = intermediate_size
|
| 88 |
+
self.dropout = dropout
|
| 89 |
+
self.drop_path_rate = drop_path_rate
|
| 90 |
+
self.num_hidden_layers = num_hidden_layers
|
| 91 |
+
self.num_attention_heads = num_attention_heads
|
| 92 |
+
self.num_channels = num_channels
|
| 93 |
+
self.patch_size = patch_size
|
| 94 |
+
self.image_size = image_size
|
| 95 |
+
self.initializer_range = initializer_range
|
| 96 |
+
self.initializer_factor = initializer_factor
|
| 97 |
+
self.attention_dropout = attention_dropout
|
| 98 |
+
self.layer_norm_eps = layer_norm_eps
|
| 99 |
+
self.hidden_act = hidden_act
|
| 100 |
+
self.qkv_bias = qkv_bias
|
| 101 |
+
self.qk_normalization = qk_normalization
|
| 102 |
+
self.use_flash_attn = use_flash_attn
|
| 103 |
+
|
| 104 |
+
@classmethod
|
| 105 |
+
def from_pretrained(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs) -> 'PretrainedConfig':
|
| 106 |
+
config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
|
| 107 |
+
|
| 108 |
+
if 'vision_config' in config_dict:
|
| 109 |
+
config_dict = config_dict['vision_config']
|
| 110 |
+
|
| 111 |
+
if 'model_type' in config_dict and hasattr(cls, 'model_type') and config_dict['model_type'] != cls.model_type:
|
| 112 |
+
logger.warning(
|
| 113 |
+
f"You are using a model of type {config_dict['model_type']} to instantiate a model of type "
|
| 114 |
+
f'{cls.model_type}. This is not supported for all configurations of models and can yield errors.'
|
| 115 |
+
)
|
| 116 |
+
|
| 117 |
+
return cls.from_dict(config_dict, **kwargs)
|
InternVL-main/clip_benchmark/clip_benchmark/models/internvl_huggingface/flash_attention.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# https://github.com/Dao-AILab/flash-attention/blob/v0.2.8/flash_attn/flash_attention.py
|
| 2 |
+
import torch
|
| 3 |
+
import torch.nn as nn
|
| 4 |
+
from einops import rearrange
|
| 5 |
+
|
| 6 |
+
try: # v1
|
| 7 |
+
from flash_attn.flash_attn_interface import \
|
| 8 |
+
flash_attn_unpadded_qkvpacked_func
|
| 9 |
+
except: # v2
|
| 10 |
+
from flash_attn.flash_attn_interface import flash_attn_varlen_qkvpacked_func as flash_attn_unpadded_qkvpacked_func
|
| 11 |
+
|
| 12 |
+
from flash_attn.bert_padding import pad_input, unpad_input
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class FlashAttention(nn.Module):
|
| 16 |
+
"""Implement the scaled dot product attention with softmax.
|
| 17 |
+
Arguments
|
| 18 |
+
---------
|
| 19 |
+
softmax_scale: The temperature to use for the softmax attention.
|
| 20 |
+
(default: 1/sqrt(d_keys) where d_keys is computed at
|
| 21 |
+
runtime)
|
| 22 |
+
attention_dropout: The dropout rate to apply to the attention
|
| 23 |
+
(default: 0.0)
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
+
def __init__(self, softmax_scale=None, attention_dropout=0.0, device=None, dtype=None):
|
| 27 |
+
super().__init__()
|
| 28 |
+
self.softmax_scale = softmax_scale
|
| 29 |
+
self.dropout_p = attention_dropout
|
| 30 |
+
|
| 31 |
+
def forward(self, qkv, key_padding_mask=None, causal=False, cu_seqlens=None,
|
| 32 |
+
max_s=None, need_weights=False):
|
| 33 |
+
"""Implements the multihead softmax attention.
|
| 34 |
+
Arguments
|
| 35 |
+
---------
|
| 36 |
+
qkv: The tensor containing the query, key, and value. (B, S, 3, H, D) if key_padding_mask is None
|
| 37 |
+
if unpadded: (nnz, 3, h, d)
|
| 38 |
+
key_padding_mask: a bool tensor of shape (B, S)
|
| 39 |
+
"""
|
| 40 |
+
assert not need_weights
|
| 41 |
+
assert qkv.dtype in [torch.float16, torch.bfloat16]
|
| 42 |
+
assert qkv.is_cuda
|
| 43 |
+
|
| 44 |
+
if cu_seqlens is None:
|
| 45 |
+
batch_size = qkv.shape[0]
|
| 46 |
+
seqlen = qkv.shape[1]
|
| 47 |
+
if key_padding_mask is None:
|
| 48 |
+
qkv = rearrange(qkv, 'b s ... -> (b s) ...')
|
| 49 |
+
max_s = seqlen
|
| 50 |
+
cu_seqlens = torch.arange(0, (batch_size + 1) * seqlen, step=seqlen, dtype=torch.int32,
|
| 51 |
+
device=qkv.device)
|
| 52 |
+
output = flash_attn_unpadded_qkvpacked_func(
|
| 53 |
+
qkv, cu_seqlens, max_s, self.dropout_p if self.training else 0.0,
|
| 54 |
+
softmax_scale=self.softmax_scale, causal=causal
|
| 55 |
+
)
|
| 56 |
+
output = rearrange(output, '(b s) ... -> b s ...', b=batch_size)
|
| 57 |
+
else:
|
| 58 |
+
nheads = qkv.shape[-2]
|
| 59 |
+
x = rearrange(qkv, 'b s three h d -> b s (three h d)')
|
| 60 |
+
x_unpad, indices, cu_seqlens, max_s = unpad_input(x, key_padding_mask)
|
| 61 |
+
x_unpad = rearrange(x_unpad, 'nnz (three h d) -> nnz three h d', three=3, h=nheads)
|
| 62 |
+
output_unpad = flash_attn_unpadded_qkvpacked_func(
|
| 63 |
+
x_unpad, cu_seqlens, max_s, self.dropout_p if self.training else 0.0,
|
| 64 |
+
softmax_scale=self.softmax_scale, causal=causal
|
| 65 |
+
)
|
| 66 |
+
output = rearrange(pad_input(rearrange(output_unpad, 'nnz h d -> nnz (h d)'),
|
| 67 |
+
indices, batch_size, seqlen),
|
| 68 |
+
'b s (h d) -> b s h d', h=nheads)
|
| 69 |
+
else:
|
| 70 |
+
assert max_s is not None
|
| 71 |
+
output = flash_attn_unpadded_qkvpacked_func(
|
| 72 |
+
qkv, cu_seqlens, max_s, self.dropout_p if self.training else 0.0,
|
| 73 |
+
softmax_scale=self.softmax_scale, causal=causal
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
+
return output, None
|
InternVL-main/clip_benchmark/clip_benchmark/models/internvl_huggingface/modeling_intern_vit.py
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
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------------------------------------------------------
|
| 2 |
+
# InternVL
|
| 3 |
+
# Copyright (c) 2023 OpenGVLab
|
| 4 |
+
# Licensed under The MIT License [see LICENSE for details]
|
| 5 |
+
# --------------------------------------------------------
|
| 6 |
+
from typing import Optional, Tuple, Union
|
| 7 |
+
|
| 8 |
+
import torch
|
| 9 |
+
import torch.nn.functional as F
|
| 10 |
+
import torch.utils.checkpoint
|
| 11 |
+
from einops import rearrange
|
| 12 |
+
from timm.models.layers import DropPath
|
| 13 |
+
from torch import nn
|
| 14 |
+
from transformers.activations import ACT2FN
|
| 15 |
+
from transformers.modeling_outputs import (BaseModelOutput,
|
| 16 |
+
BaseModelOutputWithPooling)
|
| 17 |
+
from transformers.modeling_utils import PreTrainedModel
|
| 18 |
+
from transformers.utils import logging
|
| 19 |
+
|
| 20 |
+
from .configuration_intern_vit import InternVisionConfig
|
| 21 |
+
|
| 22 |
+
try:
|
| 23 |
+
from .flash_attention import FlashAttention
|
| 24 |
+
has_flash_attn = True
|
| 25 |
+
except:
|
| 26 |
+
print('FlashAttention is not installed.')
|
| 27 |
+
has_flash_attn = False
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
logger = logging.get_logger(__name__)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
class InternRMSNorm(nn.Module):
|
| 34 |
+
def __init__(self, hidden_size, eps=1e-6):
|
| 35 |
+
super().__init__()
|
| 36 |
+
self.weight = nn.Parameter(torch.ones(hidden_size))
|
| 37 |
+
self.variance_epsilon = eps
|
| 38 |
+
|
| 39 |
+
def forward(self, hidden_states):
|
| 40 |
+
input_dtype = hidden_states.dtype
|
| 41 |
+
hidden_states = hidden_states.to(torch.float32)
|
| 42 |
+
variance = hidden_states.pow(2).mean(-1, keepdim=True)
|
| 43 |
+
hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
|
| 44 |
+
return self.weight * hidden_states.to(input_dtype)
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
try:
|
| 48 |
+
from apex.normalization import FusedRMSNorm
|
| 49 |
+
|
| 50 |
+
InternRMSNorm = FusedRMSNorm # noqa
|
| 51 |
+
|
| 52 |
+
logger.info('Discovered apex.normalization.FusedRMSNorm - will use it instead of InternRMSNorm')
|
| 53 |
+
except ImportError:
|
| 54 |
+
# using the normal InternRMSNorm
|
| 55 |
+
pass
|
| 56 |
+
except Exception:
|
| 57 |
+
logger.warning('discovered apex but it failed to load, falling back to InternRMSNorm')
|
| 58 |
+
pass
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
class InternVisionEmbeddings(nn.Module):
|
| 62 |
+
def __init__(self, config: InternVisionConfig):
|
| 63 |
+
super().__init__()
|
| 64 |
+
self.config = config
|
| 65 |
+
self.embed_dim = config.hidden_size
|
| 66 |
+
self.image_size = config.image_size
|
| 67 |
+
self.patch_size = config.patch_size
|
| 68 |
+
|
| 69 |
+
self.class_embedding = nn.Parameter(
|
| 70 |
+
torch.randn(1, 1, self.embed_dim),
|
| 71 |
+
)
|
| 72 |
+
|
| 73 |
+
self.patch_embedding = nn.Conv2d(
|
| 74 |
+
in_channels=3, out_channels=self.embed_dim, kernel_size=self.patch_size, stride=self.patch_size
|
| 75 |
+
)
|
| 76 |
+
|
| 77 |
+
self.num_patches = (self.image_size // self.patch_size) ** 2
|
| 78 |
+
self.num_positions = self.num_patches + 1
|
| 79 |
+
|
| 80 |
+
self.position_embedding = nn.Parameter(torch.randn(1, self.num_positions, self.embed_dim))
|
| 81 |
+
|
| 82 |
+
def forward(self, pixel_values: torch.FloatTensor) -> torch.Tensor:
|
| 83 |
+
batch_size = pixel_values.shape[0]
|
| 84 |
+
target_dtype = self.patch_embedding.weight.dtype
|
| 85 |
+
patch_embeds = self.patch_embedding(pixel_values) # shape = [*, width, grid, grid]
|
| 86 |
+
patch_embeds = patch_embeds.flatten(2).transpose(1, 2)
|
| 87 |
+
class_embeds = self.class_embedding.expand(batch_size, 1, -1).to(target_dtype)
|
| 88 |
+
embeddings = torch.cat([class_embeds, patch_embeds], dim=1)
|
| 89 |
+
embeddings = embeddings + self.position_embedding.to(target_dtype)
|
| 90 |
+
return embeddings
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
class InternAttention(nn.Module):
|
| 94 |
+
"""Multi-headed attention from 'Attention Is All You Need' paper"""
|
| 95 |
+
|
| 96 |
+
def __init__(self, config: InternVisionConfig):
|
| 97 |
+
super().__init__()
|
| 98 |
+
self.config = config
|
| 99 |
+
self.embed_dim = config.hidden_size
|
| 100 |
+
self.num_heads = config.num_attention_heads
|
| 101 |
+
self.use_flash_attn = config.use_flash_attn and has_flash_attn
|
| 102 |
+
if config.use_flash_attn and not has_flash_attn:
|
| 103 |
+
print('Warning: Flash Attention is not available, use_flash_attn is set to False.')
|
| 104 |
+
self.head_dim = self.embed_dim // self.num_heads
|
| 105 |
+
if self.head_dim * self.num_heads != self.embed_dim:
|
| 106 |
+
raise ValueError(
|
| 107 |
+
f'embed_dim must be divisible by num_heads (got `embed_dim`: {self.embed_dim} and `num_heads`:'
|
| 108 |
+
f' {self.num_heads}).'
|
| 109 |
+
)
|
| 110 |
+
|
| 111 |
+
self.scale = self.head_dim ** -0.5
|
| 112 |
+
self.qkv = nn.Linear(self.embed_dim, 3 * self.embed_dim, bias=config.qkv_bias)
|
| 113 |
+
self.attn_drop = nn.Dropout(config.attention_dropout)
|
| 114 |
+
self.proj_drop = nn.Dropout(config.dropout)
|
| 115 |
+
|
| 116 |
+
self.qk_normalization = config.qk_normalization
|
| 117 |
+
|
| 118 |
+
if self.qk_normalization:
|
| 119 |
+
self.q_norm = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 120 |
+
self.k_norm = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 121 |
+
|
| 122 |
+
if self.use_flash_attn:
|
| 123 |
+
self.inner_attn = FlashAttention(attention_dropout=config.attention_dropout)
|
| 124 |
+
self.proj = nn.Linear(self.embed_dim, self.embed_dim)
|
| 125 |
+
|
| 126 |
+
def _naive_attn(self, x):
|
| 127 |
+
B, N, C = x.shape
|
| 128 |
+
qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
|
| 129 |
+
q, k, v = qkv.unbind(0) # make torchscript happy (cannot use tensor as tuple)
|
| 130 |
+
|
| 131 |
+
if self.qk_normalization:
|
| 132 |
+
B_, H_, N_, D_ = q.shape
|
| 133 |
+
q = self.q_norm(q.transpose(1, 2).flatten(-2, -1)).view(B_, N_, H_, D_).transpose(1, 2)
|
| 134 |
+
k = self.k_norm(k.transpose(1, 2).flatten(-2, -1)).view(B_, N_, H_, D_).transpose(1, 2)
|
| 135 |
+
|
| 136 |
+
attn = ((q * self.scale) @ k.transpose(-2, -1))
|
| 137 |
+
attn = attn.softmax(dim=-1)
|
| 138 |
+
attn = self.attn_drop(attn)
|
| 139 |
+
|
| 140 |
+
x = (attn @ v).transpose(1, 2).reshape(B, N, C)
|
| 141 |
+
x = self.proj(x)
|
| 142 |
+
x = self.proj_drop(x)
|
| 143 |
+
return x
|
| 144 |
+
|
| 145 |
+
def _flash_attn(self, x, key_padding_mask=None, need_weights=False):
|
| 146 |
+
qkv = self.qkv(x)
|
| 147 |
+
qkv = rearrange(qkv, 'b s (three h d) -> b s three h d', three=3, h=self.num_heads)
|
| 148 |
+
|
| 149 |
+
if self.qk_normalization:
|
| 150 |
+
q, k, v = qkv.unbind(2)
|
| 151 |
+
q = self.q_norm(q.flatten(-2, -1)).view(q.shape)
|
| 152 |
+
k = self.k_norm(k.flatten(-2, -1)).view(k.shape)
|
| 153 |
+
qkv = torch.stack([q, k, v], dim=2)
|
| 154 |
+
|
| 155 |
+
context, _ = self.inner_attn(
|
| 156 |
+
qkv, key_padding_mask=key_padding_mask, need_weights=need_weights, causal=False
|
| 157 |
+
)
|
| 158 |
+
outs = self.proj(rearrange(context, 'b s h d -> b s (h d)'))
|
| 159 |
+
outs = self.proj_drop(outs)
|
| 160 |
+
return outs
|
| 161 |
+
|
| 162 |
+
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
| 163 |
+
x = self._naive_attn(hidden_states) if not self.use_flash_attn else self._flash_attn(hidden_states)
|
| 164 |
+
return x
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
class InternMLP(nn.Module):
|
| 168 |
+
def __init__(self, config: InternVisionConfig):
|
| 169 |
+
super().__init__()
|
| 170 |
+
self.config = config
|
| 171 |
+
self.act = ACT2FN[config.hidden_act]
|
| 172 |
+
self.fc1 = nn.Linear(config.hidden_size, config.intermediate_size)
|
| 173 |
+
self.fc2 = nn.Linear(config.intermediate_size, config.hidden_size)
|
| 174 |
+
|
| 175 |
+
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
| 176 |
+
hidden_states = self.fc1(hidden_states)
|
| 177 |
+
hidden_states = self.act(hidden_states)
|
| 178 |
+
hidden_states = self.fc2(hidden_states)
|
| 179 |
+
return hidden_states
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
class InternVisionEncoderLayer(nn.Module):
|
| 183 |
+
def __init__(self, config: InternVisionConfig, drop_path_rate: float):
|
| 184 |
+
super().__init__()
|
| 185 |
+
self.embed_dim = config.hidden_size
|
| 186 |
+
self.intermediate_size = config.intermediate_size
|
| 187 |
+
|
| 188 |
+
self.attn = InternAttention(config)
|
| 189 |
+
self.mlp = InternMLP(config)
|
| 190 |
+
self.norm1 = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 191 |
+
self.norm2 = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 192 |
+
|
| 193 |
+
self.ls1 = nn.Parameter(config.initializer_factor * torch.ones(self.embed_dim))
|
| 194 |
+
self.ls2 = nn.Parameter(config.initializer_factor * torch.ones(self.embed_dim))
|
| 195 |
+
self.drop_path1 = DropPath(drop_path_rate) if drop_path_rate > 0. else nn.Identity()
|
| 196 |
+
self.drop_path2 = DropPath(drop_path_rate) if drop_path_rate > 0. else nn.Identity()
|
| 197 |
+
|
| 198 |
+
def forward(
|
| 199 |
+
self,
|
| 200 |
+
hidden_states: torch.Tensor,
|
| 201 |
+
) -> Tuple[torch.FloatTensor, Optional[torch.FloatTensor], Optional[Tuple[torch.FloatTensor]]]:
|
| 202 |
+
"""
|
| 203 |
+
Args:
|
| 204 |
+
hidden_states (`Tuple[torch.FloatTensor, Optional[torch.FloatTensor]]`): input to the layer of shape `(batch, seq_len, embed_dim)`
|
| 205 |
+
"""
|
| 206 |
+
hidden_states = hidden_states + self.drop_path1(self.attn(self.norm1(hidden_states)) * self.ls1)
|
| 207 |
+
|
| 208 |
+
hidden_states = hidden_states + self.drop_path2(self.mlp(self.norm2(hidden_states)) * self.ls2)
|
| 209 |
+
|
| 210 |
+
return hidden_states
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
class InternVisionEncoder(nn.Module):
|
| 214 |
+
"""
|
| 215 |
+
Transformer encoder consisting of `config.num_hidden_layers` self attention layers. Each layer is a
|
| 216 |
+
[`InternEncoderLayer`].
|
| 217 |
+
|
| 218 |
+
Args:
|
| 219 |
+
config (`InternConfig`):
|
| 220 |
+
The corresponding vision configuration for the `InternEncoder`.
|
| 221 |
+
"""
|
| 222 |
+
|
| 223 |
+
def __init__(self, config: InternVisionConfig):
|
| 224 |
+
super().__init__()
|
| 225 |
+
self.config = config
|
| 226 |
+
# stochastic depth decay rule
|
| 227 |
+
dpr = [x.item() for x in torch.linspace(0, config.drop_path_rate, config.num_hidden_layers)]
|
| 228 |
+
self.layers = nn.ModuleList([
|
| 229 |
+
InternVisionEncoderLayer(config, dpr[idx]) for idx in range(config.num_hidden_layers)])
|
| 230 |
+
self.gradient_checkpointing = True
|
| 231 |
+
|
| 232 |
+
def forward(
|
| 233 |
+
self,
|
| 234 |
+
inputs_embeds,
|
| 235 |
+
output_hidden_states: Optional[bool] = None,
|
| 236 |
+
return_dict: Optional[bool] = None,
|
| 237 |
+
) -> Union[Tuple, BaseModelOutput]:
|
| 238 |
+
r"""
|
| 239 |
+
Args:
|
| 240 |
+
inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`):
|
| 241 |
+
Embedded representation of the inputs. Should be float, not int tokens.
|
| 242 |
+
output_hidden_states (`bool`, *optional*):
|
| 243 |
+
Whether or not to return the hidden states of all layers. See `hidden_states` under returned tensors
|
| 244 |
+
for more detail.
|
| 245 |
+
return_dict (`bool`, *optional*):
|
| 246 |
+
Whether or not to return a [`~utils.ModelOutput`] instead of a plain tuple.
|
| 247 |
+
"""
|
| 248 |
+
output_hidden_states = (
|
| 249 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 250 |
+
)
|
| 251 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 252 |
+
|
| 253 |
+
encoder_states = () if output_hidden_states else None
|
| 254 |
+
hidden_states = inputs_embeds
|
| 255 |
+
|
| 256 |
+
for idx, encoder_layer in enumerate(self.layers):
|
| 257 |
+
if output_hidden_states:
|
| 258 |
+
encoder_states = encoder_states + (hidden_states,)
|
| 259 |
+
if self.gradient_checkpointing and self.training:
|
| 260 |
+
layer_outputs = torch.utils.checkpoint.checkpoint(
|
| 261 |
+
encoder_layer,
|
| 262 |
+
hidden_states)
|
| 263 |
+
else:
|
| 264 |
+
layer_outputs = encoder_layer(
|
| 265 |
+
hidden_states,
|
| 266 |
+
)
|
| 267 |
+
hidden_states = layer_outputs
|
| 268 |
+
|
| 269 |
+
if output_hidden_states:
|
| 270 |
+
encoder_states = encoder_states + (hidden_states,)
|
| 271 |
+
|
| 272 |
+
if not return_dict:
|
| 273 |
+
return tuple(v for v in [hidden_states, encoder_states] if v is not None)
|
| 274 |
+
return BaseModelOutput(
|
| 275 |
+
last_hidden_state=hidden_states, hidden_states=encoder_states
|
| 276 |
+
)
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
class InternVisionModel(PreTrainedModel):
|
| 280 |
+
main_input_name = 'pixel_values'
|
| 281 |
+
config_class = InternVisionConfig
|
| 282 |
+
|
| 283 |
+
def __init__(self, config: InternVisionConfig):
|
| 284 |
+
super().__init__(config)
|
| 285 |
+
self.config = config
|
| 286 |
+
|
| 287 |
+
self.embeddings = InternVisionEmbeddings(config)
|
| 288 |
+
self.encoder = InternVisionEncoder(config)
|
| 289 |
+
|
| 290 |
+
def resize_pos_embeddings(self, old_size, new_size, patch_size):
|
| 291 |
+
pos_emb = self.embeddings.position_embedding
|
| 292 |
+
_, num_positions, embed_dim = pos_emb.shape
|
| 293 |
+
cls_emb = pos_emb[:, :1, :]
|
| 294 |
+
pos_emb = pos_emb[:, 1:, :].reshape(1, old_size // patch_size, old_size // patch_size, -1).permute(0, 3, 1, 2)
|
| 295 |
+
pos_emb = F.interpolate(pos_emb.float(), size=new_size // patch_size, mode='bicubic', align_corners=False)
|
| 296 |
+
pos_emb = pos_emb.to(cls_emb.dtype).reshape(1, embed_dim, -1).permute(0, 2, 1)
|
| 297 |
+
pos_emb = torch.cat([cls_emb, pos_emb], dim=1)
|
| 298 |
+
self.embeddings.position_embedding = nn.Parameter(pos_emb)
|
| 299 |
+
logger.info('Resized position embeddings from {} to {}'.format(old_size, new_size))
|
| 300 |
+
|
| 301 |
+
def get_input_embeddings(self):
|
| 302 |
+
return self.embeddings
|
| 303 |
+
|
| 304 |
+
def forward(
|
| 305 |
+
self,
|
| 306 |
+
pixel_values: Optional[torch.FloatTensor] = None,
|
| 307 |
+
output_hidden_states: Optional[bool] = None,
|
| 308 |
+
return_dict: Optional[bool] = None,
|
| 309 |
+
pixel_embeds: Optional[torch.FloatTensor] = None,
|
| 310 |
+
) -> Union[Tuple, BaseModelOutputWithPooling]:
|
| 311 |
+
output_hidden_states = (
|
| 312 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 313 |
+
)
|
| 314 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 315 |
+
|
| 316 |
+
if pixel_values is None and pixel_embeds is None:
|
| 317 |
+
raise ValueError('You have to specify pixel_values or pixel_embeds')
|
| 318 |
+
|
| 319 |
+
if pixel_embeds is not None:
|
| 320 |
+
hidden_states = pixel_embeds
|
| 321 |
+
else:
|
| 322 |
+
if len(pixel_values.shape) == 4:
|
| 323 |
+
hidden_states = self.embeddings(pixel_values)
|
| 324 |
+
else:
|
| 325 |
+
raise ValueError(f'wrong pixel_values size: {pixel_values.shape}')
|
| 326 |
+
encoder_outputs = self.encoder(
|
| 327 |
+
inputs_embeds=hidden_states,
|
| 328 |
+
output_hidden_states=output_hidden_states,
|
| 329 |
+
return_dict=return_dict,
|
| 330 |
+
)
|
| 331 |
+
last_hidden_state = encoder_outputs.last_hidden_state
|
| 332 |
+
pooled_output = last_hidden_state[:, 0, :]
|
| 333 |
+
|
| 334 |
+
if not return_dict:
|
| 335 |
+
return (last_hidden_state, pooled_output) + encoder_outputs[1:]
|
| 336 |
+
|
| 337 |
+
return BaseModelOutputWithPooling(
|
| 338 |
+
last_hidden_state=last_hidden_state,
|
| 339 |
+
pooler_output=pooled_output,
|
| 340 |
+
hidden_states=encoder_outputs.hidden_states,
|
| 341 |
+
attentions=encoder_outputs.attentions,
|
| 342 |
+
)
|
InternVL/InternVL_2_5/.gitattributes
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pipeline_tag: image-text-to-text
|
| 4 |
+
library_name: transformers
|
| 5 |
+
base_model:
|
| 6 |
+
- OpenGVLab/InternViT-300M-448px-V2_5
|
| 7 |
+
- internlm/internlm2_5-1_8b-chat
|
| 8 |
+
base_model_relation: merge
|
| 9 |
+
language:
|
| 10 |
+
- multilingual
|
| 11 |
+
tags:
|
| 12 |
+
- internvl
|
| 13 |
+
- custom_code
|
| 14 |
+
datasets:
|
| 15 |
+
- HuggingFaceFV/finevideo
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# InternVL2_5-2B
|
| 19 |
+
|
| 20 |
+
[\[📂 GitHub\]](https://github.com/OpenGVLab/InternVL) [\[📜 InternVL 1.0\]](https://huggingface.co/papers/2312.14238) [\[📜 InternVL 1.5\]](https://huggingface.co/papers/2404.16821) [\[📜 Mini-InternVL\]](https://arxiv.org/abs/2410.16261) [\[📜 InternVL 2.5\]](https://huggingface.co/papers/2412.05271)
|
| 21 |
+
|
| 22 |
+
[\[🆕 Blog\]](https://internvl.github.io/blog/) [\[🗨️ Chat Demo\]](https://internvl.opengvlab.com/) [\[🤗 HF Demo\]](https://huggingface.co/spaces/OpenGVLab/InternVL) [\[🚀 Quick Start\]](#quick-start) [\[📖 Documents\]](https://internvl.readthedocs.io/en/latest/)
|
| 23 |
+
|
| 24 |
+
<div align="center">
|
| 25 |
+
<img width="500" alt="image" src="https://cdn-uploads.huggingface.co/production/uploads/64006c09330a45b03605bba3/zJsd2hqd3EevgXo6fNgC-.png">
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
## Introduction
|
| 29 |
+
|
| 30 |
+
We are excited to introduce **InternVL 2.5**, an advanced multimodal large language model (MLLM) series that builds upon InternVL 2.0, maintaining its core model architecture while introducing significant enhancements in training and testing strategies as well as data quality.
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
|
| 34 |
+
## InternVL 2.5 Family
|
| 35 |
+
|
| 36 |
+
In the following table, we provide an overview of the InternVL 2.5 series.
|
| 37 |
+
|
| 38 |
+
| Model Name | Vision Part | Language Part | HF Link |
|
| 39 |
+
| :-------------: | :-------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------: | :---------------------------------------------------------: |
|
| 40 |
+
| InternVL2_5-1B | [InternViT-300M-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-300M-448px-V2_5) | [Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-1B) |
|
| 41 |
+
| InternVL2_5-2B | [InternViT-300M-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-300M-448px-V2_5) | [internlm2_5-1_8b-chat](https://huggingface.co/internlm/internlm2_5-1_8b-chat) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-2B) |
|
| 42 |
+
| InternVL2_5-4B | [InternViT-300M-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-300M-448px-V2_5) | [Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-4B) |
|
| 43 |
+
| InternVL2_5-8B | [InternViT-300M-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-300M-448px-V2_5) | [internlm2_5-7b-chat](https://huggingface.co/internlm/internlm2_5-7b-chat) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-8B) |
|
| 44 |
+
| InternVL2_5-26B | [InternViT-6B-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V2_5) | [internlm2_5-20b-chat](https://huggingface.co/internlm/internlm2_5-20b-chat) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-26B) |
|
| 45 |
+
| InternVL2_5-38B | [InternViT-6B-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V2_5) | [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-38B) |
|
| 46 |
+
| InternVL2_5-78B | [InternViT-6B-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V2_5) | [Qwen2.5-72B-Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-78B) |
|
| 47 |
+
|
| 48 |
+
## Model Architecture
|
| 49 |
+
|
| 50 |
+
As shown in the following figure, InternVL 2.5 retains the same model architecture as its predecessors, InternVL 1.5 and 2.0, following the "ViT-MLP-LLM" paradigm. In this new version, we integrate a newly incrementally pre-trained InternViT with various pre-trained LLMs, including InternLM 2.5 and Qwen 2.5, using a randomly initialized MLP projector.
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
|
| 54 |
+
As in the previous version, we applied a pixel unshuffle operation, reducing the number of visual tokens to one-quarter of the original. Besides, we adopted a similar dynamic resolution strategy as InternVL 1.5, dividing images into tiles of 448×448 pixels. The key difference, starting from InternVL 2.0, is that we additionally introduced support for multi-image and video data.
|
| 55 |
+
|
| 56 |
+
## Training Strategy
|
| 57 |
+
|
| 58 |
+
### Dynamic High-Resolution for Multimodal Data
|
| 59 |
+
|
| 60 |
+
In InternVL 2.0 and 2.5, we extend the dynamic high-resolution training approach, enhancing its capabilities to handle multi-image and video datasets.
|
| 61 |
+
|
| 62 |
+

|
| 63 |
+
|
| 64 |
+
- For single-image datasets, the total number of tiles `n_max` are allocated to a single image for maximum resolution. Visual tokens are enclosed in `<img>` and `</img>` tags.
|
| 65 |
+
|
| 66 |
+
- For multi-image datasets, the total number of tiles `n_max` are distributed across all images in a sample. Each image is labeled with auxiliary tags like `Image-1` and enclosed in `<img>` and `</img>` tags.
|
| 67 |
+
|
| 68 |
+
- For videos, each frame is resized to 448×448. Frames are labeled with tags like `Frame-1` and enclosed in `<img>` and `</img>` tags, similar to images.
|
| 69 |
+
|
| 70 |
+
### Single Model Training Pipeline
|
| 71 |
+
|
| 72 |
+
The training pipeline for a single model in InternVL 2.5 is structured across three stages, designed to enhance the model's visual perception and multimodal capabilities.
|
| 73 |
+
|
| 74 |
+

|
| 75 |
+
|
| 76 |
+
- **Stage 1: MLP Warmup.** In this stage, only the MLP projector is trained while the vision encoder and language model are frozen. A dynamic high-resolution training strategy is applied for better performance, despite increased cost. This phase ensures robust cross-modal alignment and prepares the model for stable multimodal training.
|
| 77 |
+
|
| 78 |
+
- **Stage 1.5: ViT Incremental Learning (Optional).** This stage allows incremental training of the vision encoder and MLP projector using the same data as Stage 1. It enhances the encoder’s ability to handle rare domains like multilingual OCR and mathematical charts. Once trained, the encoder can be reused across LLMs without retraining, making this stage optional unless new domains are introduced.
|
| 79 |
+
|
| 80 |
+
- **Stage 2: Full Model Instruction Tuning.** The entire model is trained on high-quality multimodal instruction datasets. Strict data quality controls are enforced to prevent degradation of the LLM, as noisy data can cause issues like repetitive or incorrect outputs. After this stage, the training process is complete.
|
| 81 |
+
|
| 82 |
+
### Progressive Scaling Strategy
|
| 83 |
+
|
| 84 |
+
We introduce a progressive scaling strategy to align the vision encoder with LLMs efficiently. This approach trains with smaller LLMs first (e.g., 20B) to optimize foundational visual capabilities and cross-modal alignment before transferring the vision encoder to larger LLMs (e.g., 72B) without retraining. This reuse skips intermediate stages for larger models.
|
| 85 |
+
|
| 86 |
+

|
| 87 |
+
|
| 88 |
+
Compared to Qwen2-VL's 1.4 trillion tokens, InternVL2.5-78B uses only 120 billion tokens—less than one-tenth. This strategy minimizes redundancy, maximizes pre-trained component reuse, and enables efficient training for complex vision-language tasks.
|
| 89 |
+
|
| 90 |
+
### Training Enhancements
|
| 91 |
+
|
| 92 |
+
To improve real-world adaptability and performance, we introduce two key techniques:
|
| 93 |
+
|
| 94 |
+
- **Random JPEG Compression**: Random JPEG compression with quality levels between 75 and 100 is applied as a data augmentation technique. This simulates image degradation from internet sources, enhancing the model's robustness to noisy images.
|
| 95 |
+
|
| 96 |
+
- **Loss Reweighting**: To balance the NTP loss across responses of different lengths, we use a reweighting strategy called **square averaging**. This method balances contributions from responses of varying lengths, mitigating biases toward longer or shorter responses.
|
| 97 |
+
|
| 98 |
+
### Data Organization
|
| 99 |
+
|
| 100 |
+
#### Dataset Configuration
|
| 101 |
+
|
| 102 |
+
In InternVL 2.0 and 2.5, the organization of the training data is controlled by several key parameters to optimize the balance and distribution of datasets during training.
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
|
| 106 |
+
- **Data Augmentation:** JPEG compression is applied conditionally: enabled for image datasets to enhance robustness and disabled for video datasets to maintain consistent frame quality.
|
| 107 |
+
|
| 108 |
+
- **Maximum Tile Number:** The parameter `n_max` controls the maximum tiles per dataset. For example, higher values (24–36) are used for multi-image or high-resolution data, lower values (6–12) for standard images, and 1 for videos.
|
| 109 |
+
|
| 110 |
+
- **Repeat Factor:** The repeat factor `r` adjusts dataset sampling frequency. Values below 1 reduce a dataset's weight, while values above 1 increase it. This ensures balanced training across tasks and prevents overfitting or underfitting.
|
| 111 |
+
|
| 112 |
+
#### Data Filtering Pipeline
|
| 113 |
+
|
| 114 |
+
During development, we found that LLMs are highly sensitive to data noise, with even small anomalies—like outliers or repetitive data—causing abnormal behavior during inference. Repetitive generation, especially in long-form or CoT reasoning tasks, proved particularly harmful.
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
|
| 118 |
+
To address this challenge and support future research, we designed an efficient data filtering pipeline to remove low-quality samples.
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
|
| 122 |
+
The pipeline includes two modules, for **pure-text data**, three key strategies are used:
|
| 123 |
+
|
| 124 |
+
1. **LLM-Based Quality Scoring**: Each sample is scored (0–10) using a pre-trained LLM with domain-specific prompts. Samples scoring below a threshold (e.g., 7) are removed to ensure high-quality data.
|
| 125 |
+
2. **Repetition Detection**: Repetitive samples are flagged using LLM-based prompts and manually reviewed. Samples scoring below a stricter threshold (e.g., 3) are excluded to avoid repetitive patterns.
|
| 126 |
+
3. **Heuristic Rule-Based Filtering**: Anomalies like abnormal sentence lengths or duplicate lines are detected using rules. Flagged samples undergo manual verification to ensure accuracy before removal.
|
| 127 |
+
|
| 128 |
+
For **multimodal data**, two strategies are used:
|
| 129 |
+
|
| 130 |
+
1. **Repetition Detection**: Repetitive samples in non-academic datasets are flagged and manually reviewed to prevent pattern loops. High-quality datasets are exempt from this process.
|
| 131 |
+
2. **Heuristic Rule-Based Filtering**: Similar rules are applied to detect visual anomalies, with flagged data verified manually to maintain integrity.
|
| 132 |
+
|
| 133 |
+
#### Training Data
|
| 134 |
+
|
| 135 |
+
As shown in the following figure, from InternVL 1.5 to 2.0 and then to 2.5, the fine-tuning data mixture has undergone iterative improvements in scale, quality, and diversity. For more information about the training data, please refer to our technical report.
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
|
| 139 |
+
## Evaluation on Multimodal Capability
|
| 140 |
+
|
| 141 |
+
### Multimodal Reasoning and Mathematics
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
|
| 147 |
+
### OCR, Chart, and Document Understanding
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
|
| 151 |
+
### Multi-Image & Real-World Comprehension
|
| 152 |
+
|
| 153 |
+

|
| 154 |
+
|
| 155 |
+
### Comprehensive Multimodal & Hallucination Evaluation
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
|
| 159 |
+
### Visual Grounding
|
| 160 |
+
|
| 161 |
+

|
| 162 |
+
|
| 163 |
+
### Multimodal Multilingual Understanding
|
| 164 |
+
|
| 165 |
+

|
| 166 |
+
|
| 167 |
+
### Video Understanding
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
|
| 171 |
+
## Evaluation on Language Capability
|
| 172 |
+
|
| 173 |
+
Training InternVL 2.0 models led to a decline in pure language capabilities. InternVL 2.5 addresses this by collecting more high-quality open-source data and filtering out low-quality data, achieving better preservation of pure language performance.
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
|
| 177 |
+
## Quick Start
|
| 178 |
+
|
| 179 |
+
We provide an example code to run `InternVL2_5-2B` using `transformers`.
|
| 180 |
+
|
| 181 |
+
> Please use transformers>=4.37.2 to ensure the model works normally.
|
| 182 |
+
|
| 183 |
+
### Model Loading
|
| 184 |
+
|
| 185 |
+
#### 16-bit (bf16 / fp16)
|
| 186 |
+
|
| 187 |
+
```python
|
| 188 |
+
import torch
|
| 189 |
+
from transformers import AutoTokenizer, AutoModel
|
| 190 |
+
path = "OpenGVLab/InternVL2_5-2B"
|
| 191 |
+
model = AutoModel.from_pretrained(
|
| 192 |
+
path,
|
| 193 |
+
torch_dtype=torch.bfloat16,
|
| 194 |
+
low_cpu_mem_usage=True,
|
| 195 |
+
use_flash_attn=True,
|
| 196 |
+
trust_remote_code=True).eval().cuda()
|
| 197 |
+
```
|
| 198 |
+
|
| 199 |
+
#### BNB 8-bit Quantization
|
| 200 |
+
|
| 201 |
+
```python
|
| 202 |
+
import torch
|
| 203 |
+
from transformers import AutoTokenizer, AutoModel
|
| 204 |
+
path = "OpenGVLab/InternVL2_5-2B"
|
| 205 |
+
model = AutoModel.from_pretrained(
|
| 206 |
+
path,
|
| 207 |
+
torch_dtype=torch.bfloat16,
|
| 208 |
+
load_in_8bit=True,
|
| 209 |
+
low_cpu_mem_usage=True,
|
| 210 |
+
use_flash_attn=True,
|
| 211 |
+
trust_remote_code=True).eval()
|
| 212 |
+
```
|
| 213 |
+
|
| 214 |
+
#### Multiple GPUs
|
| 215 |
+
|
| 216 |
+
The reason for writing the code this way is to avoid errors that occur during multi-GPU inference due to tensors not being on the same device. By ensuring that the first and last layers of the large language model (LLM) are on the same device, we prevent such errors.
|
| 217 |
+
|
| 218 |
+
```python
|
| 219 |
+
import math
|
| 220 |
+
import torch
|
| 221 |
+
from transformers import AutoTokenizer, AutoModel
|
| 222 |
+
|
| 223 |
+
def split_model(model_name):
|
| 224 |
+
device_map = {}
|
| 225 |
+
world_size = torch.cuda.device_count()
|
| 226 |
+
num_layers = {
|
| 227 |
+
'InternVL2_5-1B': 24, 'InternVL2_5-2B': 24, 'InternVL2_5-4B': 36, 'InternVL2_5-8B': 32,
|
| 228 |
+
'InternVL2_5-26B': 48, 'InternVL2_5-38B': 64, 'InternVL2_5-78B': 80}[model_name]
|
| 229 |
+
# Since the first GPU will be used for ViT, treat it as half a GPU.
|
| 230 |
+
num_layers_per_gpu = math.ceil(num_layers / (world_size - 0.5))
|
| 231 |
+
num_layers_per_gpu = [num_layers_per_gpu] * world_size
|
| 232 |
+
num_layers_per_gpu[0] = math.ceil(num_layers_per_gpu[0] * 0.5)
|
| 233 |
+
layer_cnt = 0
|
| 234 |
+
for i, num_layer in enumerate(num_layers_per_gpu):
|
| 235 |
+
for j in range(num_layer):
|
| 236 |
+
device_map[f'language_model.model.layers.{layer_cnt}'] = i
|
| 237 |
+
layer_cnt += 1
|
| 238 |
+
device_map['vision_model'] = 0
|
| 239 |
+
device_map['mlp1'] = 0
|
| 240 |
+
device_map['language_model.model.tok_embeddings'] = 0
|
| 241 |
+
device_map['language_model.model.embed_tokens'] = 0
|
| 242 |
+
device_map['language_model.output'] = 0
|
| 243 |
+
device_map['language_model.model.norm'] = 0
|
| 244 |
+
device_map['language_model.model.rotary_emb'] = 0
|
| 245 |
+
device_map['language_model.lm_head'] = 0
|
| 246 |
+
device_map[f'language_model.model.layers.{num_layers - 1}'] = 0
|
| 247 |
+
|
| 248 |
+
return device_map
|
| 249 |
+
|
| 250 |
+
path = "OpenGVLab/InternVL2_5-2B"
|
| 251 |
+
device_map = split_model('InternVL2_5-2B')
|
| 252 |
+
model = AutoModel.from_pretrained(
|
| 253 |
+
path,
|
| 254 |
+
torch_dtype=torch.bfloat16,
|
| 255 |
+
low_cpu_mem_usage=True,
|
| 256 |
+
use_flash_attn=True,
|
| 257 |
+
trust_remote_code=True,
|
| 258 |
+
device_map=device_map).eval()
|
| 259 |
+
```
|
| 260 |
+
|
| 261 |
+
### Inference with Transformers
|
| 262 |
+
|
| 263 |
+
```python
|
| 264 |
+
import numpy as np
|
| 265 |
+
import torch
|
| 266 |
+
import torchvision.transforms as T
|
| 267 |
+
from decord import VideoReader, cpu
|
| 268 |
+
from PIL import Image
|
| 269 |
+
from torchvision.transforms.functional import InterpolationMode
|
| 270 |
+
from transformers import AutoModel, AutoTokenizer
|
| 271 |
+
|
| 272 |
+
IMAGENET_MEAN = (0.485, 0.456, 0.406)
|
| 273 |
+
IMAGENET_STD = (0.229, 0.224, 0.225)
|
| 274 |
+
|
| 275 |
+
def build_transform(input_size):
|
| 276 |
+
MEAN, STD = IMAGENET_MEAN, IMAGENET_STD
|
| 277 |
+
transform = T.Compose([
|
| 278 |
+
T.Lambda(lambda img: img.convert('RGB') if img.mode != 'RGB' else img),
|
| 279 |
+
T.Resize((input_size, input_size), interpolation=InterpolationMode.BICUBIC),
|
| 280 |
+
T.ToTensor(),
|
| 281 |
+
T.Normalize(mean=MEAN, std=STD)
|
| 282 |
+
])
|
| 283 |
+
return transform
|
| 284 |
+
|
| 285 |
+
def find_closest_aspect_ratio(aspect_ratio, target_ratios, width, height, image_size):
|
| 286 |
+
best_ratio_diff = float('inf')
|
| 287 |
+
best_ratio = (1, 1)
|
| 288 |
+
area = width * height
|
| 289 |
+
for ratio in target_ratios:
|
| 290 |
+
target_aspect_ratio = ratio[0] / ratio[1]
|
| 291 |
+
ratio_diff = abs(aspect_ratio - target_aspect_ratio)
|
| 292 |
+
if ratio_diff < best_ratio_diff:
|
| 293 |
+
best_ratio_diff = ratio_diff
|
| 294 |
+
best_ratio = ratio
|
| 295 |
+
elif ratio_diff == best_ratio_diff:
|
| 296 |
+
if area > 0.5 * image_size * image_size * ratio[0] * ratio[1]:
|
| 297 |
+
best_ratio = ratio
|
| 298 |
+
return best_ratio
|
| 299 |
+
|
| 300 |
+
def dynamic_preprocess(image, min_num=1, max_num=12, image_size=448, use_thumbnail=False):
|
| 301 |
+
orig_width, orig_height = image.size
|
| 302 |
+
aspect_ratio = orig_width / orig_height
|
| 303 |
+
|
| 304 |
+
# calculate the existing image aspect ratio
|
| 305 |
+
target_ratios = set(
|
| 306 |
+
(i, j) for n in range(min_num, max_num + 1) for i in range(1, n + 1) for j in range(1, n + 1) if
|
| 307 |
+
i * j <= max_num and i * j >= min_num)
|
| 308 |
+
target_ratios = sorted(target_ratios, key=lambda x: x[0] * x[1])
|
| 309 |
+
|
| 310 |
+
# find the closest aspect ratio to the target
|
| 311 |
+
target_aspect_ratio = find_closest_aspect_ratio(
|
| 312 |
+
aspect_ratio, target_ratios, orig_width, orig_height, image_size)
|
| 313 |
+
|
| 314 |
+
# calculate the target width and height
|
| 315 |
+
target_width = image_size * target_aspect_ratio[0]
|
| 316 |
+
target_height = image_size * target_aspect_ratio[1]
|
| 317 |
+
blocks = target_aspect_ratio[0] * target_aspect_ratio[1]
|
| 318 |
+
|
| 319 |
+
# resize the image
|
| 320 |
+
resized_img = image.resize((target_width, target_height))
|
| 321 |
+
processed_images = []
|
| 322 |
+
for i in range(blocks):
|
| 323 |
+
box = (
|
| 324 |
+
(i % (target_width // image_size)) * image_size,
|
| 325 |
+
(i // (target_width // image_size)) * image_size,
|
| 326 |
+
((i % (target_width // image_size)) + 1) * image_size,
|
| 327 |
+
((i // (target_width // image_size)) + 1) * image_size
|
| 328 |
+
)
|
| 329 |
+
# split the image
|
| 330 |
+
split_img = resized_img.crop(box)
|
| 331 |
+
processed_images.append(split_img)
|
| 332 |
+
assert len(processed_images) == blocks
|
| 333 |
+
if use_thumbnail and len(processed_images) != 1:
|
| 334 |
+
thumbnail_img = image.resize((image_size, image_size))
|
| 335 |
+
processed_images.append(thumbnail_img)
|
| 336 |
+
return processed_images
|
| 337 |
+
|
| 338 |
+
def load_image(image_file, input_size=448, max_num=12):
|
| 339 |
+
image = Image.open(image_file).convert('RGB')
|
| 340 |
+
transform = build_transform(input_size=input_size)
|
| 341 |
+
images = dynamic_preprocess(image, image_size=input_size, use_thumbnail=True, max_num=max_num)
|
| 342 |
+
pixel_values = [transform(image) for image in images]
|
| 343 |
+
pixel_values = torch.stack(pixel_values)
|
| 344 |
+
return pixel_values
|
| 345 |
+
|
| 346 |
+
# If you want to load a model using multiple GPUs, please refer to the `Multiple GPUs` section.
|
| 347 |
+
path = 'OpenGVLab/InternVL2_5-2B'
|
| 348 |
+
model = AutoModel.from_pretrained(
|
| 349 |
+
path,
|
| 350 |
+
torch_dtype=torch.bfloat16,
|
| 351 |
+
low_cpu_mem_usage=True,
|
| 352 |
+
use_flash_attn=True,
|
| 353 |
+
trust_remote_code=True).eval().cuda()
|
| 354 |
+
tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True, use_fast=False)
|
| 355 |
+
|
| 356 |
+
# set the max number of tiles in `max_num`
|
| 357 |
+
pixel_values = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
|
| 358 |
+
generation_config = dict(max_new_tokens=1024, do_sample=True)
|
| 359 |
+
|
| 360 |
+
# pure-text conversation (纯文本对话)
|
| 361 |
+
question = 'Hello, who are you?'
|
| 362 |
+
response, history = model.chat(tokenizer, None, question, generation_config, history=None, return_history=True)
|
| 363 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 364 |
+
|
| 365 |
+
question = 'Can you tell me a story?'
|
| 366 |
+
response, history = model.chat(tokenizer, None, question, generation_config, history=history, return_history=True)
|
| 367 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 368 |
+
|
| 369 |
+
# single-image single-round conversation (单图单轮对话)
|
| 370 |
+
question = '<image>\nPlease describe the image shortly.'
|
| 371 |
+
response = model.chat(tokenizer, pixel_values, question, generation_config)
|
| 372 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 373 |
+
|
| 374 |
+
# single-image multi-round conversation (单图多轮对话)
|
| 375 |
+
question = '<image>\nPlease describe the image in detail.'
|
| 376 |
+
response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None, return_history=True)
|
| 377 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 378 |
+
|
| 379 |
+
question = 'Please write a poem according to the image.'
|
| 380 |
+
response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history, return_history=True)
|
| 381 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 382 |
+
|
| 383 |
+
# multi-image multi-round conversation, combined images (多图多轮对话,拼接图像)
|
| 384 |
+
pixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
|
| 385 |
+
pixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()
|
| 386 |
+
pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
|
| 387 |
+
|
| 388 |
+
question = '<image>\nDescribe the two images in detail.'
|
| 389 |
+
response, history = model.chat(tokenizer, pixel_values, question, generation_config,
|
| 390 |
+
history=None, return_history=True)
|
| 391 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 392 |
+
|
| 393 |
+
question = 'What are the similarities and differences between these two images.'
|
| 394 |
+
response, history = model.chat(tokenizer, pixel_values, question, generation_config,
|
| 395 |
+
history=history, return_history=True)
|
| 396 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 397 |
+
|
| 398 |
+
# multi-image multi-round conversation, separate images (多图多轮对话,独立图像)
|
| 399 |
+
pixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
|
| 400 |
+
pixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()
|
| 401 |
+
pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
|
| 402 |
+
num_patches_list = [pixel_values1.size(0), pixel_values2.size(0)]
|
| 403 |
+
|
| 404 |
+
question = 'Image-1: <image>\nImage-2: <image>\nDescribe the two images in detail.'
|
| 405 |
+
response, history = model.chat(tokenizer, pixel_values, question, generation_config,
|
| 406 |
+
num_patches_list=num_patches_list,
|
| 407 |
+
history=None, return_history=True)
|
| 408 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 409 |
+
|
| 410 |
+
question = 'What are the similarities and differences between these two images.'
|
| 411 |
+
response, history = model.chat(tokenizer, pixel_values, question, generation_config,
|
| 412 |
+
num_patches_list=num_patches_list,
|
| 413 |
+
history=history, return_history=True)
|
| 414 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 415 |
+
|
| 416 |
+
# batch inference, single image per sample (单图批处理)
|
| 417 |
+
pixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
|
| 418 |
+
pixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()
|
| 419 |
+
num_patches_list = [pixel_values1.size(0), pixel_values2.size(0)]
|
| 420 |
+
pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
|
| 421 |
+
|
| 422 |
+
questions = ['<image>\nDescribe the image in detail.'] * len(num_patches_list)
|
| 423 |
+
responses = model.batch_chat(tokenizer, pixel_values,
|
| 424 |
+
num_patches_list=num_patches_list,
|
| 425 |
+
questions=questions,
|
| 426 |
+
generation_config=generation_config)
|
| 427 |
+
for question, response in zip(questions, responses):
|
| 428 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 429 |
+
|
| 430 |
+
# video multi-round conversation (视频多轮对话)
|
| 431 |
+
def get_index(bound, fps, max_frame, first_idx=0, num_segments=32):
|
| 432 |
+
if bound:
|
| 433 |
+
start, end = bound[0], bound[1]
|
| 434 |
+
else:
|
| 435 |
+
start, end = -100000, 100000
|
| 436 |
+
start_idx = max(first_idx, round(start * fps))
|
| 437 |
+
end_idx = min(round(end * fps), max_frame)
|
| 438 |
+
seg_size = float(end_idx - start_idx) / num_segments
|
| 439 |
+
frame_indices = np.array([
|
| 440 |
+
int(start_idx + (seg_size / 2) + np.round(seg_size * idx))
|
| 441 |
+
for idx in range(num_segments)
|
| 442 |
+
])
|
| 443 |
+
return frame_indices
|
| 444 |
+
|
| 445 |
+
def load_video(video_path, bound=None, input_size=448, max_num=1, num_segments=32):
|
| 446 |
+
vr = VideoReader(video_path, ctx=cpu(0), num_threads=1)
|
| 447 |
+
max_frame = len(vr) - 1
|
| 448 |
+
fps = float(vr.get_avg_fps())
|
| 449 |
+
|
| 450 |
+
pixel_values_list, num_patches_list = [], []
|
| 451 |
+
transform = build_transform(input_size=input_size)
|
| 452 |
+
frame_indices = get_index(bound, fps, max_frame, first_idx=0, num_segments=num_segments)
|
| 453 |
+
for frame_index in frame_indices:
|
| 454 |
+
img = Image.fromarray(vr[frame_index].asnumpy()).convert('RGB')
|
| 455 |
+
img = dynamic_preprocess(img, image_size=input_size, use_thumbnail=True, max_num=max_num)
|
| 456 |
+
pixel_values = [transform(tile) for tile in img]
|
| 457 |
+
pixel_values = torch.stack(pixel_values)
|
| 458 |
+
num_patches_list.append(pixel_values.shape[0])
|
| 459 |
+
pixel_values_list.append(pixel_values)
|
| 460 |
+
pixel_values = torch.cat(pixel_values_list)
|
| 461 |
+
return pixel_values, num_patches_list
|
| 462 |
+
|
| 463 |
+
video_path = './examples/red-panda.mp4'
|
| 464 |
+
pixel_values, num_patches_list = load_video(video_path, num_segments=8, max_num=1)
|
| 465 |
+
pixel_values = pixel_values.to(torch.bfloat16).cuda()
|
| 466 |
+
video_prefix = ''.join([f'Frame{i+1}: <image>\n' for i in range(len(num_patches_list))])
|
| 467 |
+
question = video_prefix + 'What is the red panda doing?'
|
| 468 |
+
# Frame1: <image>\nFrame2: <image>\n...\nFrame8: <image>\n{question}
|
| 469 |
+
response, history = model.chat(tokenizer, pixel_values, question, generation_config,
|
| 470 |
+
num_patches_list=num_patches_list, history=None, return_history=True)
|
| 471 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 472 |
+
|
| 473 |
+
question = 'Describe this video in detail.'
|
| 474 |
+
response, history = model.chat(tokenizer, pixel_values, question, generation_config,
|
| 475 |
+
num_patches_list=num_patches_list, history=history, return_history=True)
|
| 476 |
+
print(f'User: {question}\nAssistant: {response}')
|
| 477 |
+
```
|
| 478 |
+
|
| 479 |
+
#### Streaming Output
|
| 480 |
+
|
| 481 |
+
Besides this method, you can also use the following code to get streamed output.
|
| 482 |
+
|
| 483 |
+
```python
|
| 484 |
+
from transformers import TextIteratorStreamer
|
| 485 |
+
from threading import Thread
|
| 486 |
+
|
| 487 |
+
# Initialize the streamer
|
| 488 |
+
streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=10)
|
| 489 |
+
# Define the generation configuration
|
| 490 |
+
generation_config = dict(max_new_tokens=1024, do_sample=False, streamer=streamer)
|
| 491 |
+
# Start the model chat in a separate thread
|
| 492 |
+
thread = Thread(target=model.chat, kwargs=dict(
|
| 493 |
+
tokenizer=tokenizer, pixel_values=pixel_values, question=question,
|
| 494 |
+
history=None, return_history=False, generation_config=generation_config,
|
| 495 |
+
))
|
| 496 |
+
thread.start()
|
| 497 |
+
|
| 498 |
+
# Initialize an empty string to store the generated text
|
| 499 |
+
generated_text = ''
|
| 500 |
+
# Loop through the streamer to get the new text as it is generated
|
| 501 |
+
for new_text in streamer:
|
| 502 |
+
if new_text == model.conv_template.sep:
|
| 503 |
+
break
|
| 504 |
+
generated_text += new_text
|
| 505 |
+
print(new_text, end='', flush=True) # Print each new chunk of generated text on the same line
|
| 506 |
+
```
|
| 507 |
+
|
| 508 |
+
## Finetune
|
| 509 |
+
|
| 510 |
+
Many repositories now support fine-tuning of the InternVL series models, including [InternVL](https://github.com/OpenGVLab/InternVL), [SWIFT](https://github.com/modelscope/ms-swift), [XTurner](https://github.com/InternLM/xtuner), and others. Please refer to their documentation for more details on fine-tuning.
|
| 511 |
+
|
| 512 |
+
## Deployment
|
| 513 |
+
|
| 514 |
+
### LMDeploy
|
| 515 |
+
|
| 516 |
+
LMDeploy is a toolkit for compressing, deploying, and serving LLMs & VLMs.
|
| 517 |
+
|
| 518 |
+
```sh
|
| 519 |
+
pip install lmdeploy>=0.6.4
|
| 520 |
+
```
|
| 521 |
+
|
| 522 |
+
LMDeploy abstracts the complex inference process of multi-modal Vision-Language Models (VLM) into an easy-to-use pipeline, similar to the Large Language Model (LLM) inference pipeline.
|
| 523 |
+
|
| 524 |
+
#### A 'Hello, world' Example
|
| 525 |
+
|
| 526 |
+
```python
|
| 527 |
+
from lmdeploy import pipeline, TurbomindEngineConfig
|
| 528 |
+
from lmdeploy.vl import load_image
|
| 529 |
+
|
| 530 |
+
model = 'OpenGVLab/InternVL2_5-2B'
|
| 531 |
+
image = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/tests/data/tiger.jpeg')
|
| 532 |
+
pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
|
| 533 |
+
response = pipe(('describe this image', image))
|
| 534 |
+
print(response.text)
|
| 535 |
+
```
|
| 536 |
+
|
| 537 |
+
If `ImportError` occurs while executing this case, please install the required dependency packages as prompted.
|
| 538 |
+
|
| 539 |
+
#### Multi-images Inference
|
| 540 |
+
|
| 541 |
+
When dealing with multiple images, you can put them all in one list. Keep in mind that multiple images will lead to a higher number of input tokens, and as a result, the size of the context window typically needs to be increased.
|
| 542 |
+
|
| 543 |
+
```python
|
| 544 |
+
from lmdeploy import pipeline, TurbomindEngineConfig
|
| 545 |
+
from lmdeploy.vl import load_image
|
| 546 |
+
from lmdeploy.vl.constants import IMAGE_TOKEN
|
| 547 |
+
|
| 548 |
+
model = 'OpenGVLab/InternVL2_5-2B'
|
| 549 |
+
pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
|
| 550 |
+
|
| 551 |
+
image_urls=[
|
| 552 |
+
'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg',
|
| 553 |
+
'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/det.jpg'
|
| 554 |
+
]
|
| 555 |
+
|
| 556 |
+
images = [load_image(img_url) for img_url in image_urls]
|
| 557 |
+
# Numbering images improves multi-image conversations
|
| 558 |
+
response = pipe((f'Image-1: {IMAGE_TOKEN}\nImage-2: {IMAGE_TOKEN}\ndescribe these two images', images))
|
| 559 |
+
print(response.text)
|
| 560 |
+
```
|
| 561 |
+
|
| 562 |
+
#### Batch Prompts Inference
|
| 563 |
+
|
| 564 |
+
Conducting inference with batch prompts is quite straightforward; just place them within a list structure:
|
| 565 |
+
|
| 566 |
+
```python
|
| 567 |
+
from lmdeploy import pipeline, TurbomindEngineConfig
|
| 568 |
+
from lmdeploy.vl import load_image
|
| 569 |
+
|
| 570 |
+
model = 'OpenGVLab/InternVL2_5-2B'
|
| 571 |
+
pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
|
| 572 |
+
|
| 573 |
+
image_urls=[
|
| 574 |
+
"https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg",
|
| 575 |
+
"https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/det.jpg"
|
| 576 |
+
]
|
| 577 |
+
prompts = [('describe this image', load_image(img_url)) for img_url in image_urls]
|
| 578 |
+
response = pipe(prompts)
|
| 579 |
+
print(response)
|
| 580 |
+
```
|
| 581 |
+
|
| 582 |
+
#### Multi-turn Conversation
|
| 583 |
+
|
| 584 |
+
There are two ways to do the multi-turn conversations with the pipeline. One is to construct messages according to the format of OpenAI and use above introduced method, the other is to use the `pipeline.chat` interface.
|
| 585 |
+
|
| 586 |
+
```python
|
| 587 |
+
from lmdeploy import pipeline, TurbomindEngineConfig, GenerationConfig
|
| 588 |
+
from lmdeploy.vl import load_image
|
| 589 |
+
|
| 590 |
+
model = 'OpenGVLab/InternVL2_5-2B'
|
| 591 |
+
pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
|
| 592 |
+
|
| 593 |
+
image = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg')
|
| 594 |
+
gen_config = GenerationConfig(top_k=40, top_p=0.8, temperature=0.8)
|
| 595 |
+
sess = pipe.chat(('describe this image', image), gen_config=gen_config)
|
| 596 |
+
print(sess.response.text)
|
| 597 |
+
sess = pipe.chat('What is the woman doing?', session=sess, gen_config=gen_config)
|
| 598 |
+
print(sess.response.text)
|
| 599 |
+
```
|
| 600 |
+
|
| 601 |
+
#### Service
|
| 602 |
+
|
| 603 |
+
LMDeploy's `api_server` enables models to be easily packed into services with a single command. The provided RESTful APIs are compatible with OpenAI's interfaces. Below are an example of service startup:
|
| 604 |
+
|
| 605 |
+
```shell
|
| 606 |
+
lmdeploy serve api_server OpenGVLab/InternVL2_5-2B --server-port 23333
|
| 607 |
+
```
|
| 608 |
+
|
| 609 |
+
To use the OpenAI-style interface, you need to install OpenAI:
|
| 610 |
+
|
| 611 |
+
```shell
|
| 612 |
+
pip install openai
|
| 613 |
+
```
|
| 614 |
+
|
| 615 |
+
Then, use the code below to make the API call:
|
| 616 |
+
|
| 617 |
+
```python
|
| 618 |
+
from openai import OpenAI
|
| 619 |
+
|
| 620 |
+
client = OpenAI(api_key='YOUR_API_KEY', base_url='http://0.0.0.0:23333/v1')
|
| 621 |
+
model_name = client.models.list().data[0].id
|
| 622 |
+
response = client.chat.completions.create(
|
| 623 |
+
model=model_name,
|
| 624 |
+
messages=[{
|
| 625 |
+
'role':
|
| 626 |
+
'user',
|
| 627 |
+
'content': [{
|
| 628 |
+
'type': 'text',
|
| 629 |
+
'text': 'describe this image',
|
| 630 |
+
}, {
|
| 631 |
+
'type': 'image_url',
|
| 632 |
+
'image_url': {
|
| 633 |
+
'url':
|
| 634 |
+
'https://modelscope.oss-cn-beijing.aliyuncs.com/resource/tiger.jpeg',
|
| 635 |
+
},
|
| 636 |
+
}],
|
| 637 |
+
}],
|
| 638 |
+
temperature=0.8,
|
| 639 |
+
top_p=0.8)
|
| 640 |
+
print(response)
|
| 641 |
+
```
|
| 642 |
+
|
| 643 |
+
## License
|
| 644 |
+
|
| 645 |
+
This project is released under the MIT License. This project uses the pre-trained internlm2_5-1_8b-chat as a component, which is licensed under the Apache License 2.0.
|
| 646 |
+
|
| 647 |
+
## Citation
|
| 648 |
+
|
| 649 |
+
If you find this project useful in your research, please consider citing:
|
| 650 |
+
|
| 651 |
+
```BibTeX
|
| 652 |
+
@article{chen2024expanding,
|
| 653 |
+
title={Expanding Performance Boundaries of Open-Source Multimodal Models with Model, Data, and Test-Time Scaling},
|
| 654 |
+
author={Chen, Zhe and Wang, Weiyun and Cao, Yue and Liu, Yangzhou and Gao, Zhangwei and Cui, Erfei and Zhu, Jinguo and Ye, Shenglong and Tian, Hao and Liu, Zhaoyang and others},
|
| 655 |
+
journal={arXiv preprint arXiv:2412.05271},
|
| 656 |
+
year={2024}
|
| 657 |
+
}
|
| 658 |
+
@article{gao2024mini,
|
| 659 |
+
title={Mini-internvl: A flexible-transfer pocket multimodal model with 5\% parameters and 90\% performance},
|
| 660 |
+
author={Gao, Zhangwei and Chen, Zhe and Cui, Erfei and Ren, Yiming and Wang, Weiyun and Zhu, Jinguo and Tian, Hao and Ye, Shenglong and He, Junjun and Zhu, Xizhou and others},
|
| 661 |
+
journal={arXiv preprint arXiv:2410.16261},
|
| 662 |
+
year={2024}
|
| 663 |
+
}
|
| 664 |
+
@article{chen2024far,
|
| 665 |
+
title={How Far Are We to GPT-4V? Closing the Gap to Commercial Multimodal Models with Open-Source Suites},
|
| 666 |
+
author={Chen, Zhe and Wang, Weiyun and Tian, Hao and Ye, Shenglong and Gao, Zhangwei and Cui, Erfei and Tong, Wenwen and Hu, Kongzhi and Luo, Jiapeng and Ma, Zheng and others},
|
| 667 |
+
journal={arXiv preprint arXiv:2404.16821},
|
| 668 |
+
year={2024}
|
| 669 |
+
}
|
| 670 |
+
@inproceedings{chen2024internvl,
|
| 671 |
+
title={Internvl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks},
|
| 672 |
+
author={Chen, Zhe and Wu, Jiannan and Wang, Wenhai and Su, Weijie and Chen, Guo and Xing, Sen and Zhong, Muyan and Zhang, Qinglong and Zhu, Xizhou and Lu, Lewei and others},
|
| 673 |
+
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
|
| 674 |
+
pages={24185--24198},
|
| 675 |
+
year={2024}
|
| 676 |
+
}
|
| 677 |
+
```
|
InternVL/InternVL_2_5/added_tokens.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</box>": 92552,
|
| 3 |
+
"</img>": 92545,
|
| 4 |
+
"</quad>": 92548,
|
| 5 |
+
"</ref>": 92550,
|
| 6 |
+
"<IMG_CONTEXT>": 92546,
|
| 7 |
+
"<box>": 92551,
|
| 8 |
+
"<img>": 92544,
|
| 9 |
+
"<quad>": 92547,
|
| 10 |
+
"<ref>": 92549
|
| 11 |
+
}
|
InternVL/InternVL_2_5/config.json
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_commit_hash": null,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"InternVLChatModel"
|
| 5 |
+
],
|
| 6 |
+
"auto_map": {
|
| 7 |
+
"AutoConfig": "configuration_internvl_chat.InternVLChatConfig",
|
| 8 |
+
"AutoModel": "modeling_internvl_chat.InternVLChatModel",
|
| 9 |
+
"AutoModelForCausalLM": "modeling_internvl_chat.InternVLChatModel"
|
| 10 |
+
},
|
| 11 |
+
"downsample_ratio": 0.5,
|
| 12 |
+
"dynamic_image_size": true,
|
| 13 |
+
"force_image_size": 448,
|
| 14 |
+
"llm_config": {
|
| 15 |
+
"_name_or_path": "internlm/internlm2_5-1_8b-chat",
|
| 16 |
+
"add_cross_attention": false,
|
| 17 |
+
"architectures": [
|
| 18 |
+
"InternLM2ForCausalLM"
|
| 19 |
+
],
|
| 20 |
+
"attn_implementation": "flash_attention_2",
|
| 21 |
+
"auto_map": {
|
| 22 |
+
"AutoConfig": "configuration_internlm2.InternLM2Config",
|
| 23 |
+
"AutoModel": "modeling_internlm2.InternLM2ForCausalLM",
|
| 24 |
+
"AutoModelForCausalLM": "modeling_internlm2.InternLM2ForCausalLM",
|
| 25 |
+
"AutoModelForSequenceClassification": "modeling_internlm2.InternLM2ForSequenceClassification"
|
| 26 |
+
},
|
| 27 |
+
"bad_words_ids": null,
|
| 28 |
+
"begin_suppress_tokens": null,
|
| 29 |
+
"bias": false,
|
| 30 |
+
"bos_token_id": 1,
|
| 31 |
+
"chunk_size_feed_forward": 0,
|
| 32 |
+
"cross_attention_hidden_size": null,
|
| 33 |
+
"decoder_start_token_id": null,
|
| 34 |
+
"diversity_penalty": 0.0,
|
| 35 |
+
"do_sample": false,
|
| 36 |
+
"early_stopping": false,
|
| 37 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 38 |
+
"eos_token_id": 2,
|
| 39 |
+
"exponential_decay_length_penalty": null,
|
| 40 |
+
"finetuning_task": null,
|
| 41 |
+
"forced_bos_token_id": null,
|
| 42 |
+
"forced_eos_token_id": null,
|
| 43 |
+
"hidden_act": "silu",
|
| 44 |
+
"hidden_size": 2048,
|
| 45 |
+
"id2label": {
|
| 46 |
+
"0": "LABEL_0",
|
| 47 |
+
"1": "LABEL_1"
|
| 48 |
+
},
|
| 49 |
+
"initializer_range": 0.02,
|
| 50 |
+
"intermediate_size": 8192,
|
| 51 |
+
"is_decoder": false,
|
| 52 |
+
"is_encoder_decoder": false,
|
| 53 |
+
"label2id": {
|
| 54 |
+
"LABEL_0": 0,
|
| 55 |
+
"LABEL_1": 1
|
| 56 |
+
},
|
| 57 |
+
"length_penalty": 1.0,
|
| 58 |
+
"max_length": 20,
|
| 59 |
+
"max_position_embeddings": 32768,
|
| 60 |
+
"min_length": 0,
|
| 61 |
+
"model_type": "internlm2",
|
| 62 |
+
"no_repeat_ngram_size": 0,
|
| 63 |
+
"num_attention_heads": 16,
|
| 64 |
+
"num_beam_groups": 1,
|
| 65 |
+
"num_beams": 1,
|
| 66 |
+
"num_hidden_layers": 24,
|
| 67 |
+
"num_key_value_heads": 8,
|
| 68 |
+
"num_return_sequences": 1,
|
| 69 |
+
"output_attentions": false,
|
| 70 |
+
"output_hidden_states": false,
|
| 71 |
+
"output_scores": false,
|
| 72 |
+
"pad_token_id": 2,
|
| 73 |
+
"prefix": null,
|
| 74 |
+
"pretraining_tp": 1,
|
| 75 |
+
"problem_type": null,
|
| 76 |
+
"pruned_heads": {},
|
| 77 |
+
"remove_invalid_values": false,
|
| 78 |
+
"repetition_penalty": 1.0,
|
| 79 |
+
"return_dict": true,
|
| 80 |
+
"return_dict_in_generate": false,
|
| 81 |
+
"rms_norm_eps": 1e-05,
|
| 82 |
+
"rope_scaling": {
|
| 83 |
+
"factor": 2.0,
|
| 84 |
+
"type": "dynamic"
|
| 85 |
+
},
|
| 86 |
+
"rope_theta": 1000000,
|
| 87 |
+
"sep_token_id": null,
|
| 88 |
+
"suppress_tokens": null,
|
| 89 |
+
"task_specific_params": null,
|
| 90 |
+
"temperature": 1.0,
|
| 91 |
+
"tf_legacy_loss": false,
|
| 92 |
+
"tie_encoder_decoder": false,
|
| 93 |
+
"tie_word_embeddings": false,
|
| 94 |
+
"tokenizer_class": null,
|
| 95 |
+
"top_k": 50,
|
| 96 |
+
"top_p": 1.0,
|
| 97 |
+
"torch_dtype": "bfloat16",
|
| 98 |
+
"torchscript": false,
|
| 99 |
+
"transformers_version": "4.37.2",
|
| 100 |
+
"typical_p": 1.0,
|
| 101 |
+
"use_bfloat16": true,
|
| 102 |
+
"use_cache": true,
|
| 103 |
+
"vocab_size": 92553
|
| 104 |
+
},
|
| 105 |
+
"max_dynamic_patch": 12,
|
| 106 |
+
"min_dynamic_patch": 1,
|
| 107 |
+
"model_type": "internvl_chat",
|
| 108 |
+
"ps_version": "v2",
|
| 109 |
+
"select_layer": -1,
|
| 110 |
+
"template": "internvl2_5",
|
| 111 |
+
"torch_dtype": "bfloat16",
|
| 112 |
+
"use_backbone_lora": 0,
|
| 113 |
+
"use_llm_lora": 0,
|
| 114 |
+
"use_thumbnail": true,
|
| 115 |
+
"vision_config": {
|
| 116 |
+
"architectures": [
|
| 117 |
+
"InternVisionModel"
|
| 118 |
+
],
|
| 119 |
+
"attention_dropout": 0.0,
|
| 120 |
+
"drop_path_rate": 0.0,
|
| 121 |
+
"dropout": 0.0,
|
| 122 |
+
"hidden_act": "gelu",
|
| 123 |
+
"hidden_size": 1024,
|
| 124 |
+
"image_size": 448,
|
| 125 |
+
"initializer_factor": 1.0,
|
| 126 |
+
"initializer_range": 0.02,
|
| 127 |
+
"intermediate_size": 4096,
|
| 128 |
+
"layer_norm_eps": 1e-06,
|
| 129 |
+
"model_type": "intern_vit_6b",
|
| 130 |
+
"norm_type": "layer_norm",
|
| 131 |
+
"num_attention_heads": 16,
|
| 132 |
+
"num_channels": 3,
|
| 133 |
+
"num_hidden_layers": 24,
|
| 134 |
+
"output_attentions": false,
|
| 135 |
+
"output_hidden_states": false,
|
| 136 |
+
"patch_size": 14,
|
| 137 |
+
"qk_normalization": false,
|
| 138 |
+
"qkv_bias": true,
|
| 139 |
+
"return_dict": true,
|
| 140 |
+
"torch_dtype": "bfloat16",
|
| 141 |
+
"transformers_version": "4.37.2",
|
| 142 |
+
"use_bfloat16": true,
|
| 143 |
+
"use_flash_attn": true
|
| 144 |
+
}
|
| 145 |
+
}
|
InternVL/InternVL_2_5/configuration_intern_vit.py
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------
|
| 2 |
+
# InternVL
|
| 3 |
+
# Copyright (c) 2024 OpenGVLab
|
| 4 |
+
# Licensed under The MIT License [see LICENSE for details]
|
| 5 |
+
# --------------------------------------------------------
|
| 6 |
+
|
| 7 |
+
import os
|
| 8 |
+
from typing import Union
|
| 9 |
+
|
| 10 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 11 |
+
from transformers.utils import logging
|
| 12 |
+
|
| 13 |
+
logger = logging.get_logger(__name__)
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class InternVisionConfig(PretrainedConfig):
|
| 17 |
+
r"""
|
| 18 |
+
This is the configuration class to store the configuration of a [`InternVisionModel`]. It is used to
|
| 19 |
+
instantiate a vision encoder according to the specified arguments, defining the model architecture.
|
| 20 |
+
|
| 21 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
| 22 |
+
documentation from [`PretrainedConfig`] for more information.
|
| 23 |
+
|
| 24 |
+
Args:
|
| 25 |
+
num_channels (`int`, *optional*, defaults to 3):
|
| 26 |
+
Number of color channels in the input images (e.g., 3 for RGB).
|
| 27 |
+
patch_size (`int`, *optional*, defaults to 14):
|
| 28 |
+
The size (resolution) of each patch.
|
| 29 |
+
image_size (`int`, *optional*, defaults to 224):
|
| 30 |
+
The size (resolution) of each image.
|
| 31 |
+
qkv_bias (`bool`, *optional*, defaults to `False`):
|
| 32 |
+
Whether to add a bias to the queries and values in the self-attention layers.
|
| 33 |
+
hidden_size (`int`, *optional*, defaults to 3200):
|
| 34 |
+
Dimensionality of the encoder layers and the pooler layer.
|
| 35 |
+
num_attention_heads (`int`, *optional*, defaults to 25):
|
| 36 |
+
Number of attention heads for each attention layer in the Transformer encoder.
|
| 37 |
+
intermediate_size (`int`, *optional*, defaults to 12800):
|
| 38 |
+
Dimensionality of the "intermediate" (i.e., feed-forward) layer in the Transformer encoder.
|
| 39 |
+
qk_normalization (`bool`, *optional*, defaults to `True`):
|
| 40 |
+
Whether to normalize the queries and keys in the self-attention layers.
|
| 41 |
+
num_hidden_layers (`int`, *optional*, defaults to 48):
|
| 42 |
+
Number of hidden layers in the Transformer encoder.
|
| 43 |
+
use_flash_attn (`bool`, *optional*, defaults to `True`):
|
| 44 |
+
Whether to use flash attention mechanism.
|
| 45 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"gelu"`):
|
| 46 |
+
The non-linear activation function (function or string) in the encoder and pooler. If string, `"gelu"`,
|
| 47 |
+
`"relu"`, `"selu"` and `"gelu_new"` ``"gelu"` are supported.
|
| 48 |
+
layer_norm_eps (`float`, *optional*, defaults to 1e-6):
|
| 49 |
+
The epsilon used by the layer normalization layers.
|
| 50 |
+
dropout (`float`, *optional*, defaults to 0.0):
|
| 51 |
+
The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.
|
| 52 |
+
drop_path_rate (`float`, *optional*, defaults to 0.0):
|
| 53 |
+
Dropout rate for stochastic depth.
|
| 54 |
+
attention_dropout (`float`, *optional*, defaults to 0.0):
|
| 55 |
+
The dropout ratio for the attention probabilities.
|
| 56 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
| 57 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
| 58 |
+
initializer_factor (`float`, *optional*, defaults to 0.1):
|
| 59 |
+
A factor for layer scale.
|
| 60 |
+
"""
|
| 61 |
+
|
| 62 |
+
model_type = 'intern_vit_6b'
|
| 63 |
+
|
| 64 |
+
def __init__(
|
| 65 |
+
self,
|
| 66 |
+
num_channels=3,
|
| 67 |
+
patch_size=14,
|
| 68 |
+
image_size=224,
|
| 69 |
+
qkv_bias=False,
|
| 70 |
+
hidden_size=3200,
|
| 71 |
+
num_attention_heads=25,
|
| 72 |
+
intermediate_size=12800,
|
| 73 |
+
qk_normalization=True,
|
| 74 |
+
num_hidden_layers=48,
|
| 75 |
+
use_flash_attn=True,
|
| 76 |
+
hidden_act='gelu',
|
| 77 |
+
norm_type='rms_norm',
|
| 78 |
+
layer_norm_eps=1e-6,
|
| 79 |
+
dropout=0.0,
|
| 80 |
+
drop_path_rate=0.0,
|
| 81 |
+
attention_dropout=0.0,
|
| 82 |
+
initializer_range=0.02,
|
| 83 |
+
initializer_factor=0.1,
|
| 84 |
+
**kwargs,
|
| 85 |
+
):
|
| 86 |
+
super().__init__(**kwargs)
|
| 87 |
+
|
| 88 |
+
self.hidden_size = hidden_size
|
| 89 |
+
self.intermediate_size = intermediate_size
|
| 90 |
+
self.dropout = dropout
|
| 91 |
+
self.drop_path_rate = drop_path_rate
|
| 92 |
+
self.num_hidden_layers = num_hidden_layers
|
| 93 |
+
self.num_attention_heads = num_attention_heads
|
| 94 |
+
self.num_channels = num_channels
|
| 95 |
+
self.patch_size = patch_size
|
| 96 |
+
self.image_size = image_size
|
| 97 |
+
self.initializer_range = initializer_range
|
| 98 |
+
self.initializer_factor = initializer_factor
|
| 99 |
+
self.attention_dropout = attention_dropout
|
| 100 |
+
self.layer_norm_eps = layer_norm_eps
|
| 101 |
+
self.hidden_act = hidden_act
|
| 102 |
+
self.norm_type = norm_type
|
| 103 |
+
self.qkv_bias = qkv_bias
|
| 104 |
+
self.qk_normalization = qk_normalization
|
| 105 |
+
self.use_flash_attn = use_flash_attn
|
| 106 |
+
|
| 107 |
+
@classmethod
|
| 108 |
+
def from_pretrained(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs) -> 'PretrainedConfig':
|
| 109 |
+
config_dict, kwargs = cls.get_config_dict(pretrained_model_name_or_path, **kwargs)
|
| 110 |
+
|
| 111 |
+
if 'vision_config' in config_dict:
|
| 112 |
+
config_dict = config_dict['vision_config']
|
| 113 |
+
|
| 114 |
+
if 'model_type' in config_dict and hasattr(cls, 'model_type') and config_dict['model_type'] != cls.model_type:
|
| 115 |
+
logger.warning(
|
| 116 |
+
f"You are using a model of type {config_dict['model_type']} to instantiate a model of type "
|
| 117 |
+
f'{cls.model_type}. This is not supported for all configurations of models and can yield errors.'
|
| 118 |
+
)
|
| 119 |
+
|
| 120 |
+
return cls.from_dict(config_dict, **kwargs)
|
InternVL/InternVL_2_5/configuration_internlm2.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) The InternLM team and The HuggingFace Inc. team. All rights reserved.
|
| 2 |
+
#
|
| 3 |
+
# This code is based on transformers/src/transformers/models/llama/configuration_llama.py
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
""" InternLM2 model configuration"""
|
| 17 |
+
|
| 18 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 19 |
+
from transformers.utils import logging
|
| 20 |
+
|
| 21 |
+
logger = logging.get_logger(__name__)
|
| 22 |
+
|
| 23 |
+
INTERNLM2_PRETRAINED_CONFIG_ARCHIVE_MAP = {}
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
# Modified from transformers.model.llama.configuration_llama.LlamaConfig
|
| 27 |
+
class InternLM2Config(PretrainedConfig):
|
| 28 |
+
r"""
|
| 29 |
+
This is the configuration class to store the configuration of a [`InternLM2Model`]. It is used to instantiate
|
| 30 |
+
an InternLM2 model according to the specified arguments, defining the model architecture. Instantiating a
|
| 31 |
+
configuration with the defaults will yield a similar configuration to that of the InternLM2-7B.
|
| 32 |
+
|
| 33 |
+
Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model outputs. Read the
|
| 34 |
+
documentation from [`PretrainedConfig`] for more information.
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
Args:
|
| 38 |
+
vocab_size (`int`, *optional*, defaults to 32000):
|
| 39 |
+
Vocabulary size of the InternLM2 model. Defines the number of different tokens that can be represented by the
|
| 40 |
+
`inputs_ids` passed when calling [`InternLM2Model`]
|
| 41 |
+
hidden_size (`int`, *optional*, defaults to 4096):
|
| 42 |
+
Dimension of the hidden representations.
|
| 43 |
+
intermediate_size (`int`, *optional*, defaults to 11008):
|
| 44 |
+
Dimension of the MLP representations.
|
| 45 |
+
num_hidden_layers (`int`, *optional*, defaults to 32):
|
| 46 |
+
Number of hidden layers in the Transformer encoder.
|
| 47 |
+
num_attention_heads (`int`, *optional*, defaults to 32):
|
| 48 |
+
Number of attention heads for each attention layer in the Transformer encoder.
|
| 49 |
+
num_key_value_heads (`int`, *optional*):
|
| 50 |
+
This is the number of key_value heads that should be used to implement Grouped Query Attention. If
|
| 51 |
+
`num_key_value_heads=num_attention_heads`, the model will use Multi Head Attention (MHA), if
|
| 52 |
+
`num_key_value_heads=1 the model will use Multi Query Attention (MQA) otherwise GQA is used. When
|
| 53 |
+
converting a multi-head checkpoint to a GQA checkpoint, each group key and value head should be constructed
|
| 54 |
+
by meanpooling all the original heads within that group. For more details checkout [this
|
| 55 |
+
paper](https://arxiv.org/pdf/2305.13245.pdf). If it is not specified, will default to
|
| 56 |
+
`num_attention_heads`.
|
| 57 |
+
hidden_act (`str` or `function`, *optional*, defaults to `"silu"`):
|
| 58 |
+
The non-linear activation function (function or string) in the decoder.
|
| 59 |
+
max_position_embeddings (`int`, *optional*, defaults to 2048):
|
| 60 |
+
The maximum sequence length that this model might ever be used with. Typically set this to something large
|
| 61 |
+
just in case (e.g., 512 or 1024 or 2048).
|
| 62 |
+
initializer_range (`float`, *optional*, defaults to 0.02):
|
| 63 |
+
The standard deviation of the truncated_normal_initializer for initializing all weight matrices.
|
| 64 |
+
rms_norm_eps (`float`, *optional*, defaults to 1e-12):
|
| 65 |
+
The epsilon used by the rms normalization layers.
|
| 66 |
+
use_cache (`bool`, *optional*, defaults to `True`):
|
| 67 |
+
Whether or not the model should return the last key/values attentions (not used by all models). Only
|
| 68 |
+
relevant if `config.is_decoder=True`.
|
| 69 |
+
tie_word_embeddings(`bool`, *optional*, defaults to `False`):
|
| 70 |
+
Whether to tie weight embeddings
|
| 71 |
+
Example:
|
| 72 |
+
|
| 73 |
+
"""
|
| 74 |
+
model_type = 'internlm2'
|
| 75 |
+
_auto_class = 'AutoConfig'
|
| 76 |
+
|
| 77 |
+
def __init__( # pylint: disable=W0102
|
| 78 |
+
self,
|
| 79 |
+
vocab_size=103168,
|
| 80 |
+
hidden_size=4096,
|
| 81 |
+
intermediate_size=11008,
|
| 82 |
+
num_hidden_layers=32,
|
| 83 |
+
num_attention_heads=32,
|
| 84 |
+
num_key_value_heads=None,
|
| 85 |
+
hidden_act='silu',
|
| 86 |
+
max_position_embeddings=2048,
|
| 87 |
+
initializer_range=0.02,
|
| 88 |
+
rms_norm_eps=1e-6,
|
| 89 |
+
use_cache=True,
|
| 90 |
+
pad_token_id=0,
|
| 91 |
+
bos_token_id=1,
|
| 92 |
+
eos_token_id=2,
|
| 93 |
+
tie_word_embeddings=False,
|
| 94 |
+
bias=True,
|
| 95 |
+
rope_theta=10000,
|
| 96 |
+
rope_scaling=None,
|
| 97 |
+
attn_implementation='eager',
|
| 98 |
+
**kwargs,
|
| 99 |
+
):
|
| 100 |
+
self.vocab_size = vocab_size
|
| 101 |
+
self.max_position_embeddings = max_position_embeddings
|
| 102 |
+
self.hidden_size = hidden_size
|
| 103 |
+
self.intermediate_size = intermediate_size
|
| 104 |
+
self.num_hidden_layers = num_hidden_layers
|
| 105 |
+
self.num_attention_heads = num_attention_heads
|
| 106 |
+
self.bias = bias
|
| 107 |
+
|
| 108 |
+
if num_key_value_heads is None:
|
| 109 |
+
num_key_value_heads = num_attention_heads
|
| 110 |
+
self.num_key_value_heads = num_key_value_heads
|
| 111 |
+
|
| 112 |
+
self.hidden_act = hidden_act
|
| 113 |
+
self.initializer_range = initializer_range
|
| 114 |
+
self.rms_norm_eps = rms_norm_eps
|
| 115 |
+
self.use_cache = use_cache
|
| 116 |
+
self.rope_theta = rope_theta
|
| 117 |
+
self.rope_scaling = rope_scaling
|
| 118 |
+
self._rope_scaling_validation()
|
| 119 |
+
|
| 120 |
+
self.attn_implementation = attn_implementation
|
| 121 |
+
if self.attn_implementation is None:
|
| 122 |
+
self.attn_implementation = 'eager'
|
| 123 |
+
super().__init__(
|
| 124 |
+
pad_token_id=pad_token_id,
|
| 125 |
+
bos_token_id=bos_token_id,
|
| 126 |
+
eos_token_id=eos_token_id,
|
| 127 |
+
tie_word_embeddings=tie_word_embeddings,
|
| 128 |
+
**kwargs,
|
| 129 |
+
)
|
| 130 |
+
|
| 131 |
+
def _rope_scaling_validation(self):
|
| 132 |
+
"""
|
| 133 |
+
Validate the `rope_scaling` configuration.
|
| 134 |
+
"""
|
| 135 |
+
if self.rope_scaling is None:
|
| 136 |
+
return
|
| 137 |
+
|
| 138 |
+
if not isinstance(self.rope_scaling, dict) or len(self.rope_scaling) != 2:
|
| 139 |
+
raise ValueError(
|
| 140 |
+
'`rope_scaling` must be a dictionary with with two fields, `type` and `factor`, '
|
| 141 |
+
f'got {self.rope_scaling}'
|
| 142 |
+
)
|
| 143 |
+
rope_scaling_type = self.rope_scaling.get('type', None)
|
| 144 |
+
rope_scaling_factor = self.rope_scaling.get('factor', None)
|
| 145 |
+
if rope_scaling_type is None or rope_scaling_type not in ['linear', 'dynamic']:
|
| 146 |
+
raise ValueError(
|
| 147 |
+
f"`rope_scaling`'s type field must be one of ['linear', 'dynamic'], got {rope_scaling_type}"
|
| 148 |
+
)
|
| 149 |
+
if rope_scaling_factor is None or not isinstance(rope_scaling_factor, float) or rope_scaling_factor < 1.0:
|
| 150 |
+
raise ValueError(f"`rope_scaling`'s factor field must be a float >= 1, got {rope_scaling_factor}")
|
InternVL/InternVL_2_5/configuration_internvl_chat.py
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------
|
| 2 |
+
# InternVL
|
| 3 |
+
# Copyright (c) 2024 OpenGVLab
|
| 4 |
+
# Licensed under The MIT License [see LICENSE for details]
|
| 5 |
+
# --------------------------------------------------------
|
| 6 |
+
|
| 7 |
+
import copy
|
| 8 |
+
|
| 9 |
+
from transformers import AutoConfig, LlamaConfig
|
| 10 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 11 |
+
from transformers.utils import logging
|
| 12 |
+
|
| 13 |
+
from .configuration_intern_vit import InternVisionConfig
|
| 14 |
+
from .configuration_internlm2 import InternLM2Config
|
| 15 |
+
|
| 16 |
+
logger = logging.get_logger(__name__)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class InternVLChatConfig(PretrainedConfig):
|
| 20 |
+
model_type = 'internvl_chat'
|
| 21 |
+
is_composition = True
|
| 22 |
+
|
| 23 |
+
def __init__(
|
| 24 |
+
self,
|
| 25 |
+
vision_config=None,
|
| 26 |
+
llm_config=None,
|
| 27 |
+
use_backbone_lora=0,
|
| 28 |
+
use_llm_lora=0,
|
| 29 |
+
select_layer=-1,
|
| 30 |
+
force_image_size=None,
|
| 31 |
+
downsample_ratio=0.5,
|
| 32 |
+
template=None,
|
| 33 |
+
dynamic_image_size=False,
|
| 34 |
+
use_thumbnail=False,
|
| 35 |
+
ps_version='v1',
|
| 36 |
+
min_dynamic_patch=1,
|
| 37 |
+
max_dynamic_patch=6,
|
| 38 |
+
**kwargs):
|
| 39 |
+
super().__init__(**kwargs)
|
| 40 |
+
|
| 41 |
+
if vision_config is None:
|
| 42 |
+
vision_config = {'architectures': ['InternVisionModel']}
|
| 43 |
+
logger.info('vision_config is None. Initializing the InternVisionConfig with default values.')
|
| 44 |
+
|
| 45 |
+
if llm_config is None:
|
| 46 |
+
llm_config = {'architectures': ['InternLM2ForCausalLM']}
|
| 47 |
+
logger.info('llm_config is None. Initializing the LlamaConfig config with default values (`LlamaConfig`).')
|
| 48 |
+
|
| 49 |
+
self.vision_config = InternVisionConfig(**vision_config)
|
| 50 |
+
if llm_config.get('architectures')[0] == 'LlamaForCausalLM':
|
| 51 |
+
self.llm_config = LlamaConfig(**llm_config)
|
| 52 |
+
elif llm_config.get('architectures')[0] == 'InternLM2ForCausalLM':
|
| 53 |
+
self.llm_config = InternLM2Config(**llm_config)
|
| 54 |
+
else:
|
| 55 |
+
raise ValueError('Unsupported architecture: {}'.format(llm_config.get('architectures')[0]))
|
| 56 |
+
self.use_backbone_lora = use_backbone_lora
|
| 57 |
+
self.use_llm_lora = use_llm_lora
|
| 58 |
+
self.select_layer = select_layer
|
| 59 |
+
self.force_image_size = force_image_size
|
| 60 |
+
self.downsample_ratio = downsample_ratio
|
| 61 |
+
self.template = template
|
| 62 |
+
self.dynamic_image_size = dynamic_image_size
|
| 63 |
+
self.use_thumbnail = use_thumbnail
|
| 64 |
+
self.ps_version = ps_version # pixel shuffle version
|
| 65 |
+
self.min_dynamic_patch = min_dynamic_patch
|
| 66 |
+
self.max_dynamic_patch = max_dynamic_patch
|
| 67 |
+
|
| 68 |
+
logger.info(f'vision_select_layer: {self.select_layer}')
|
| 69 |
+
logger.info(f'ps_version: {self.ps_version}')
|
| 70 |
+
logger.info(f'min_dynamic_patch: {self.min_dynamic_patch}')
|
| 71 |
+
logger.info(f'max_dynamic_patch: {self.max_dynamic_patch}')
|
| 72 |
+
|
| 73 |
+
def to_dict(self):
|
| 74 |
+
"""
|
| 75 |
+
Serializes this instance to a Python dictionary. Override the default [`~PretrainedConfig.to_dict`].
|
| 76 |
+
|
| 77 |
+
Returns:
|
| 78 |
+
`Dict[str, any]`: Dictionary of all the attributes that make up this configuration instance,
|
| 79 |
+
"""
|
| 80 |
+
output = copy.deepcopy(self.__dict__)
|
| 81 |
+
output['vision_config'] = self.vision_config.to_dict()
|
| 82 |
+
output['llm_config'] = self.llm_config.to_dict()
|
| 83 |
+
output['model_type'] = self.__class__.model_type
|
| 84 |
+
output['use_backbone_lora'] = self.use_backbone_lora
|
| 85 |
+
output['use_llm_lora'] = self.use_llm_lora
|
| 86 |
+
output['select_layer'] = self.select_layer
|
| 87 |
+
output['force_image_size'] = self.force_image_size
|
| 88 |
+
output['downsample_ratio'] = self.downsample_ratio
|
| 89 |
+
output['template'] = self.template
|
| 90 |
+
output['dynamic_image_size'] = self.dynamic_image_size
|
| 91 |
+
output['use_thumbnail'] = self.use_thumbnail
|
| 92 |
+
output['ps_version'] = self.ps_version
|
| 93 |
+
output['min_dynamic_patch'] = self.min_dynamic_patch
|
| 94 |
+
output['max_dynamic_patch'] = self.max_dynamic_patch
|
| 95 |
+
|
| 96 |
+
return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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Conversation prompt templates.
|
| 3 |
+
|
| 4 |
+
We kindly request that you import fastchat instead of copying this file if you wish to use it.
|
| 5 |
+
If you have changes in mind, please contribute back so the community can benefit collectively and continue to maintain these valuable templates.
|
| 6 |
+
|
| 7 |
+
Modified from https://github.com/lm-sys/FastChat/blob/main/fastchat/conversation.py
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
import dataclasses
|
| 11 |
+
from enum import IntEnum, auto
|
| 12 |
+
from typing import Dict, List, Tuple, Union
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class SeparatorStyle(IntEnum):
|
| 16 |
+
"""Separator styles."""
|
| 17 |
+
|
| 18 |
+
ADD_COLON_SINGLE = auto()
|
| 19 |
+
ADD_COLON_TWO = auto()
|
| 20 |
+
ADD_COLON_SPACE_SINGLE = auto()
|
| 21 |
+
NO_COLON_SINGLE = auto()
|
| 22 |
+
NO_COLON_TWO = auto()
|
| 23 |
+
ADD_NEW_LINE_SINGLE = auto()
|
| 24 |
+
LLAMA2 = auto()
|
| 25 |
+
CHATGLM = auto()
|
| 26 |
+
CHATML = auto()
|
| 27 |
+
CHATINTERN = auto()
|
| 28 |
+
DOLLY = auto()
|
| 29 |
+
RWKV = auto()
|
| 30 |
+
PHOENIX = auto()
|
| 31 |
+
ROBIN = auto()
|
| 32 |
+
FALCON_CHAT = auto()
|
| 33 |
+
CHATGLM3 = auto()
|
| 34 |
+
INTERNVL_ZH = auto()
|
| 35 |
+
MPT = auto()
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
@dataclasses.dataclass
|
| 39 |
+
class Conversation:
|
| 40 |
+
"""A class that manages prompt templates and keeps all conversation history."""
|
| 41 |
+
|
| 42 |
+
# The name of this template
|
| 43 |
+
name: str
|
| 44 |
+
# The template of the system prompt
|
| 45 |
+
system_template: str = '{system_message}'
|
| 46 |
+
# The system message
|
| 47 |
+
system_message: str = ''
|
| 48 |
+
# The names of two roles
|
| 49 |
+
roles: Tuple[str] = ('USER', 'ASSISTANT')
|
| 50 |
+
# All messages. Each item is (role, message).
|
| 51 |
+
messages: List[List[str]] = ()
|
| 52 |
+
# The number of few shot examples
|
| 53 |
+
offset: int = 0
|
| 54 |
+
# The separator style and configurations
|
| 55 |
+
sep_style: SeparatorStyle = SeparatorStyle.ADD_COLON_SINGLE
|
| 56 |
+
sep: str = '\n'
|
| 57 |
+
sep2: str = None
|
| 58 |
+
# Stop criteria (the default one is EOS token)
|
| 59 |
+
stop_str: Union[str, List[str]] = None
|
| 60 |
+
# Stops generation if meeting any token in this list
|
| 61 |
+
stop_token_ids: List[int] = None
|
| 62 |
+
|
| 63 |
+
def get_prompt(self) -> str:
|
| 64 |
+
"""Get the prompt for generation."""
|
| 65 |
+
system_prompt = self.system_template.format(system_message=self.system_message)
|
| 66 |
+
if self.sep_style == SeparatorStyle.ADD_COLON_SINGLE:
|
| 67 |
+
ret = system_prompt + self.sep
|
| 68 |
+
for role, message in self.messages:
|
| 69 |
+
if message:
|
| 70 |
+
ret += role + ': ' + message + self.sep
|
| 71 |
+
else:
|
| 72 |
+
ret += role + ':'
|
| 73 |
+
return ret
|
| 74 |
+
elif self.sep_style == SeparatorStyle.ADD_COLON_TWO:
|
| 75 |
+
seps = [self.sep, self.sep2]
|
| 76 |
+
ret = system_prompt + seps[0]
|
| 77 |
+
for i, (role, message) in enumerate(self.messages):
|
| 78 |
+
if message:
|
| 79 |
+
ret += role + ': ' + message + seps[i % 2]
|
| 80 |
+
else:
|
| 81 |
+
ret += role + ':'
|
| 82 |
+
return ret
|
| 83 |
+
elif self.sep_style == SeparatorStyle.ADD_COLON_SPACE_SINGLE:
|
| 84 |
+
ret = system_prompt + self.sep
|
| 85 |
+
for role, message in self.messages:
|
| 86 |
+
if message:
|
| 87 |
+
ret += role + ': ' + message + self.sep
|
| 88 |
+
else:
|
| 89 |
+
ret += role + ': ' # must be end with a space
|
| 90 |
+
return ret
|
| 91 |
+
elif self.sep_style == SeparatorStyle.ADD_NEW_LINE_SINGLE:
|
| 92 |
+
ret = '' if system_prompt == '' else system_prompt + self.sep
|
| 93 |
+
for role, message in self.messages:
|
| 94 |
+
if message:
|
| 95 |
+
ret += role + '\n' + message + self.sep
|
| 96 |
+
else:
|
| 97 |
+
ret += role + '\n'
|
| 98 |
+
return ret
|
| 99 |
+
elif self.sep_style == SeparatorStyle.NO_COLON_SINGLE:
|
| 100 |
+
ret = system_prompt
|
| 101 |
+
for role, message in self.messages:
|
| 102 |
+
if message:
|
| 103 |
+
ret += role + message + self.sep
|
| 104 |
+
else:
|
| 105 |
+
ret += role
|
| 106 |
+
return ret
|
| 107 |
+
elif self.sep_style == SeparatorStyle.NO_COLON_TWO:
|
| 108 |
+
seps = [self.sep, self.sep2]
|
| 109 |
+
ret = system_prompt
|
| 110 |
+
for i, (role, message) in enumerate(self.messages):
|
| 111 |
+
if message:
|
| 112 |
+
ret += role + message + seps[i % 2]
|
| 113 |
+
else:
|
| 114 |
+
ret += role
|
| 115 |
+
return ret
|
| 116 |
+
elif self.sep_style == SeparatorStyle.RWKV:
|
| 117 |
+
ret = system_prompt
|
| 118 |
+
for i, (role, message) in enumerate(self.messages):
|
| 119 |
+
if message:
|
| 120 |
+
ret += (
|
| 121 |
+
role
|
| 122 |
+
+ ': '
|
| 123 |
+
+ message.replace('\r\n', '\n').replace('\n\n', '\n')
|
| 124 |
+
)
|
| 125 |
+
ret += '\n\n'
|
| 126 |
+
else:
|
| 127 |
+
ret += role + ':'
|
| 128 |
+
return ret
|
| 129 |
+
elif self.sep_style == SeparatorStyle.LLAMA2:
|
| 130 |
+
seps = [self.sep, self.sep2]
|
| 131 |
+
if self.system_message:
|
| 132 |
+
ret = system_prompt
|
| 133 |
+
else:
|
| 134 |
+
ret = '[INST] '
|
| 135 |
+
for i, (role, message) in enumerate(self.messages):
|
| 136 |
+
tag = self.roles[i % 2]
|
| 137 |
+
if message:
|
| 138 |
+
if i == 0:
|
| 139 |
+
ret += message + ' '
|
| 140 |
+
else:
|
| 141 |
+
ret += tag + ' ' + message + seps[i % 2]
|
| 142 |
+
else:
|
| 143 |
+
ret += tag
|
| 144 |
+
return ret
|
| 145 |
+
elif self.sep_style == SeparatorStyle.CHATGLM:
|
| 146 |
+
# source: https://huggingface.co/THUDM/chatglm-6b/blob/1d240ba371910e9282298d4592532d7f0f3e9f3e/modeling_chatglm.py#L1302-L1308
|
| 147 |
+
# source2: https://huggingface.co/THUDM/chatglm2-6b/blob/e186c891cf64310ac66ef10a87e6635fa6c2a579/modeling_chatglm.py#L926
|
| 148 |
+
round_add_n = 1 if self.name == 'chatglm2' else 0
|
| 149 |
+
if system_prompt:
|
| 150 |
+
ret = system_prompt + self.sep
|
| 151 |
+
else:
|
| 152 |
+
ret = ''
|
| 153 |
+
|
| 154 |
+
for i, (role, message) in enumerate(self.messages):
|
| 155 |
+
if i % 2 == 0:
|
| 156 |
+
ret += f'[Round {i//2 + round_add_n}]{self.sep}'
|
| 157 |
+
|
| 158 |
+
if message:
|
| 159 |
+
ret += f'{role}:{message}{self.sep}'
|
| 160 |
+
else:
|
| 161 |
+
ret += f'{role}:'
|
| 162 |
+
return ret
|
| 163 |
+
elif self.sep_style == SeparatorStyle.CHATML:
|
| 164 |
+
ret = '' if system_prompt == '' else system_prompt + self.sep + '\n'
|
| 165 |
+
for role, message in self.messages:
|
| 166 |
+
if message:
|
| 167 |
+
ret += role + '\n' + message + self.sep + '\n'
|
| 168 |
+
else:
|
| 169 |
+
ret += role + '\n'
|
| 170 |
+
return ret
|
| 171 |
+
elif self.sep_style == SeparatorStyle.CHATGLM3:
|
| 172 |
+
ret = ''
|
| 173 |
+
if self.system_message:
|
| 174 |
+
ret += system_prompt
|
| 175 |
+
for role, message in self.messages:
|
| 176 |
+
if message:
|
| 177 |
+
ret += role + '\n' + ' ' + message
|
| 178 |
+
else:
|
| 179 |
+
ret += role
|
| 180 |
+
return ret
|
| 181 |
+
elif self.sep_style == SeparatorStyle.CHATINTERN:
|
| 182 |
+
# source: https://huggingface.co/internlm/internlm-chat-7b-8k/blob/bd546fa984b4b0b86958f56bf37f94aa75ab8831/modeling_internlm.py#L771
|
| 183 |
+
seps = [self.sep, self.sep2]
|
| 184 |
+
ret = system_prompt
|
| 185 |
+
for i, (role, message) in enumerate(self.messages):
|
| 186 |
+
# if i % 2 == 0:
|
| 187 |
+
# ret += "<s>"
|
| 188 |
+
if message:
|
| 189 |
+
ret += role + ':' + message + seps[i % 2] + '\n'
|
| 190 |
+
else:
|
| 191 |
+
ret += role + ':'
|
| 192 |
+
return ret
|
| 193 |
+
elif self.sep_style == SeparatorStyle.DOLLY:
|
| 194 |
+
seps = [self.sep, self.sep2]
|
| 195 |
+
ret = system_prompt
|
| 196 |
+
for i, (role, message) in enumerate(self.messages):
|
| 197 |
+
if message:
|
| 198 |
+
ret += role + ':\n' + message + seps[i % 2]
|
| 199 |
+
if i % 2 == 1:
|
| 200 |
+
ret += '\n\n'
|
| 201 |
+
else:
|
| 202 |
+
ret += role + ':\n'
|
| 203 |
+
return ret
|
| 204 |
+
elif self.sep_style == SeparatorStyle.PHOENIX:
|
| 205 |
+
ret = system_prompt
|
| 206 |
+
for role, message in self.messages:
|
| 207 |
+
if message:
|
| 208 |
+
ret += role + ': ' + '<s>' + message + '</s>'
|
| 209 |
+
else:
|
| 210 |
+
ret += role + ': ' + '<s>'
|
| 211 |
+
return ret
|
| 212 |
+
elif self.sep_style == SeparatorStyle.ROBIN:
|
| 213 |
+
ret = system_prompt + self.sep
|
| 214 |
+
for role, message in self.messages:
|
| 215 |
+
if message:
|
| 216 |
+
ret += role + ':\n' + message + self.sep
|
| 217 |
+
else:
|
| 218 |
+
ret += role + ':\n'
|
| 219 |
+
return ret
|
| 220 |
+
elif self.sep_style == SeparatorStyle.FALCON_CHAT:
|
| 221 |
+
ret = ''
|
| 222 |
+
if self.system_message:
|
| 223 |
+
ret += system_prompt + self.sep
|
| 224 |
+
for role, message in self.messages:
|
| 225 |
+
if message:
|
| 226 |
+
ret += role + ': ' + message + self.sep
|
| 227 |
+
else:
|
| 228 |
+
ret += role + ':'
|
| 229 |
+
|
| 230 |
+
return ret
|
| 231 |
+
elif self.sep_style == SeparatorStyle.INTERNVL_ZH:
|
| 232 |
+
seps = [self.sep, self.sep2]
|
| 233 |
+
ret = self.system_message + seps[0]
|
| 234 |
+
for i, (role, message) in enumerate(self.messages):
|
| 235 |
+
if message:
|
| 236 |
+
ret += role + ': ' + message + seps[i % 2]
|
| 237 |
+
else:
|
| 238 |
+
ret += role + ':'
|
| 239 |
+
return ret
|
| 240 |
+
elif self.sep_style == SeparatorStyle.MPT:
|
| 241 |
+
ret = system_prompt + self.sep
|
| 242 |
+
for role, message in self.messages:
|
| 243 |
+
if message:
|
| 244 |
+
if type(message) is tuple:
|
| 245 |
+
message, _, _ = message
|
| 246 |
+
ret += role + message + self.sep
|
| 247 |
+
else:
|
| 248 |
+
ret += role
|
| 249 |
+
return ret
|
| 250 |
+
else:
|
| 251 |
+
raise ValueError(f'Invalid style: {self.sep_style}')
|
| 252 |
+
|
| 253 |
+
def set_system_message(self, system_message: str):
|
| 254 |
+
"""Set the system message."""
|
| 255 |
+
self.system_message = system_message
|
| 256 |
+
|
| 257 |
+
def append_message(self, role: str, message: str):
|
| 258 |
+
"""Append a new message."""
|
| 259 |
+
self.messages.append([role, message])
|
| 260 |
+
|
| 261 |
+
def update_last_message(self, message: str):
|
| 262 |
+
"""Update the last output.
|
| 263 |
+
|
| 264 |
+
The last message is typically set to be None when constructing the prompt,
|
| 265 |
+
so we need to update it in-place after getting the response from a model.
|
| 266 |
+
"""
|
| 267 |
+
self.messages[-1][1] = message
|
| 268 |
+
|
| 269 |
+
def to_gradio_chatbot(self):
|
| 270 |
+
"""Convert the conversation to gradio chatbot format."""
|
| 271 |
+
ret = []
|
| 272 |
+
for i, (role, msg) in enumerate(self.messages[self.offset :]):
|
| 273 |
+
if i % 2 == 0:
|
| 274 |
+
ret.append([msg, None])
|
| 275 |
+
else:
|
| 276 |
+
ret[-1][-1] = msg
|
| 277 |
+
return ret
|
| 278 |
+
|
| 279 |
+
def to_openai_api_messages(self):
|
| 280 |
+
"""Convert the conversation to OpenAI chat completion format."""
|
| 281 |
+
ret = [{'role': 'system', 'content': self.system_message}]
|
| 282 |
+
|
| 283 |
+
for i, (_, msg) in enumerate(self.messages[self.offset :]):
|
| 284 |
+
if i % 2 == 0:
|
| 285 |
+
ret.append({'role': 'user', 'content': msg})
|
| 286 |
+
else:
|
| 287 |
+
if msg is not None:
|
| 288 |
+
ret.append({'role': 'assistant', 'content': msg})
|
| 289 |
+
return ret
|
| 290 |
+
|
| 291 |
+
def copy(self):
|
| 292 |
+
return Conversation(
|
| 293 |
+
name=self.name,
|
| 294 |
+
system_template=self.system_template,
|
| 295 |
+
system_message=self.system_message,
|
| 296 |
+
roles=self.roles,
|
| 297 |
+
messages=[[x, y] for x, y in self.messages],
|
| 298 |
+
offset=self.offset,
|
| 299 |
+
sep_style=self.sep_style,
|
| 300 |
+
sep=self.sep,
|
| 301 |
+
sep2=self.sep2,
|
| 302 |
+
stop_str=self.stop_str,
|
| 303 |
+
stop_token_ids=self.stop_token_ids,
|
| 304 |
+
)
|
| 305 |
+
|
| 306 |
+
def dict(self):
|
| 307 |
+
return {
|
| 308 |
+
'template_name': self.name,
|
| 309 |
+
'system_message': self.system_message,
|
| 310 |
+
'roles': self.roles,
|
| 311 |
+
'messages': self.messages,
|
| 312 |
+
'offset': self.offset,
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
# A global registry for all conversation templates
|
| 317 |
+
conv_templates: Dict[str, Conversation] = {}
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
def register_conv_template(template: Conversation, override: bool = False):
|
| 321 |
+
"""Register a new conversation template."""
|
| 322 |
+
if not override:
|
| 323 |
+
assert (
|
| 324 |
+
template.name not in conv_templates
|
| 325 |
+
), f'{template.name} has been registered.'
|
| 326 |
+
|
| 327 |
+
conv_templates[template.name] = template
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
def get_conv_template(name: str) -> Conversation:
|
| 331 |
+
"""Get a conversation template."""
|
| 332 |
+
return conv_templates[name].copy()
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
# Both Hermes-2 and internlm2-chat are chatml-format conversation templates. The difference
|
| 336 |
+
# is that during training, the preprocessing function for the Hermes-2 template doesn't add
|
| 337 |
+
# <s> at the beginning of the tokenized sequence, while the internlm2-chat template does.
|
| 338 |
+
# Therefore, they are completely equivalent during inference.
|
| 339 |
+
register_conv_template(
|
| 340 |
+
Conversation(
|
| 341 |
+
name='Hermes-2',
|
| 342 |
+
system_template='<|im_start|>system\n{system_message}',
|
| 343 |
+
# note: The new system prompt was not used here to avoid changes in benchmark performance.
|
| 344 |
+
# system_message='我是书生·万象,英文名是InternVL,是由上海人工智能实验室、清华大学及多家合作单位联合开发的多模态大语言模型。',
|
| 345 |
+
system_message='你是由上海人工智能实验室联合商汤科技开发的书生多模态大模型,英文名叫InternVL, 是一个有用无害的人工智能助手。',
|
| 346 |
+
roles=('<|im_start|>user\n', '<|im_start|>assistant\n'),
|
| 347 |
+
sep_style=SeparatorStyle.MPT,
|
| 348 |
+
sep='<|im_end|>',
|
| 349 |
+
stop_str='<|endoftext|>',
|
| 350 |
+
)
|
| 351 |
+
)
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
register_conv_template(
|
| 355 |
+
Conversation(
|
| 356 |
+
name='internlm2-chat',
|
| 357 |
+
system_template='<|im_start|>system\n{system_message}',
|
| 358 |
+
# note: The new system prompt was not used here to avoid changes in benchmark performance.
|
| 359 |
+
# system_message='我是书生·万象,英文名是InternVL,是由上海人工智能实验室、清华大学及多家合作单位联合开发的多模态大语言模型。',
|
| 360 |
+
system_message='你是由上海人工智能实验室联合商汤科技开发的书生多模态大模型,英文名叫InternVL, 是一个有用无害的人工智能助手。',
|
| 361 |
+
roles=('<|im_start|>user\n', '<|im_start|>assistant\n'),
|
| 362 |
+
sep_style=SeparatorStyle.MPT,
|
| 363 |
+
sep='<|im_end|>',
|
| 364 |
+
)
|
| 365 |
+
)
|
| 366 |
+
|
| 367 |
+
|
| 368 |
+
register_conv_template(
|
| 369 |
+
Conversation(
|
| 370 |
+
name='phi3-chat',
|
| 371 |
+
system_template='<|system|>\n{system_message}',
|
| 372 |
+
# note: The new system prompt was not used here to avoid changes in benchmark performance.
|
| 373 |
+
# system_message='我是书生·万象,英文名是InternVL,是由上海人工智能实验室、清华大学及多家合作单位联合开发的多模态大语言模型。',
|
| 374 |
+
system_message='你是由上海人工智能实验室联合商汤科技开发的书生多模态大模型,英文名叫InternVL, 是一个有用无害的人工智能助手。',
|
| 375 |
+
roles=('<|user|>\n', '<|assistant|>\n'),
|
| 376 |
+
sep_style=SeparatorStyle.MPT,
|
| 377 |
+
sep='<|end|>',
|
| 378 |
+
)
|
| 379 |
+
)
|
| 380 |
+
|
| 381 |
+
|
| 382 |
+
register_conv_template(
|
| 383 |
+
Conversation(
|
| 384 |
+
name='internvl2_5',
|
| 385 |
+
system_template='<|im_start|>system\n{system_message}',
|
| 386 |
+
system_message='你是书生·万象,英文名是InternVL,是由上海人工智能实验室、清华大学及多家合作单位联合开发的多模态大语言模型。',
|
| 387 |
+
roles=('<|im_start|>user\n', '<|im_start|>assistant\n'),
|
| 388 |
+
sep_style=SeparatorStyle.MPT,
|
| 389 |
+
sep='<|im_end|>\n',
|
| 390 |
+
)
|
| 391 |
+
)
|
InternVL/InternVL_2_5/eval_llm_benchmark.log
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/mnt/petrelfs/wangweiyun/miniconda3/envs/internvl_eval2/lib/python3.10/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
|
| 2 |
+
warn("The installed version of bitsandbytes was compiled without GPU support. "
|
| 3 |
+
/mnt/petrelfs/wangweiyun/miniconda3/envs/internvl_eval2/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so: undefined symbol: cadam32bit_grad_fp32
|
| 4 |
+
model path is /mnt/petrelfs/wangweiyun/workspace_cz/InternVL/internvl_chat_dev/share_internvl/InternVL2_5-2B
|
| 5 |
+
11/22 18:39:59 - OpenCompass - WARNING - No previous results to reuse!
|
| 6 |
+
11/22 18:39:59 - OpenCompass - INFO - Reusing experiements from 20241122_183959
|
| 7 |
+
11/22 18:39:59 - OpenCompass - INFO - Current exp folder: /mnt/petrelfs/wangweiyun/workspace_cz/InternVL/internvl_chat_dev/share_internvl/InternVL2_5-2B/20241122_183959
|
| 8 |
+
11/22 18:40:02 - OpenCompass - INFO - Partitioned into 256 tasks.
|
| 9 |
+
[ ] 0/256, elapsed: 0s, ETA:
|
| 10 |
+
11/22 18:51:40 - OpenCompass - INFO - Partitioned into 287 tasks.
|
| 11 |
+
[ ] 0/287, elapsed: 0s, ETA:
|
| 12 |
+
dataset version metric mode internvl-chat-20b
|
| 13 |
+
---------------------------- --------- ---------------------------- ------ -------------------
|
| 14 |
+
mmlu - naive_average gen 52.60
|
| 15 |
+
mmlu_pro - - - -
|
| 16 |
+
cmmlu - naive_average gen 57.00
|
| 17 |
+
ceval - naive_average gen 56.16
|
| 18 |
+
agieval - - - -
|
| 19 |
+
GaokaoBench - weighted_average gen 52.58
|
| 20 |
+
GPQA_extended - - - -
|
| 21 |
+
GPQA_main - - - -
|
| 22 |
+
GPQA_diamond - - - -
|
| 23 |
+
ARC-c - - - -
|
| 24 |
+
truthfulqa - - - -
|
| 25 |
+
triviaqa 2121ce score gen 31.23
|
| 26 |
+
triviaqa_wiki_1shot - - - -
|
| 27 |
+
nq 3dcea1 score gen 11.75
|
| 28 |
+
C3 8c358f accuracy gen 78.03
|
| 29 |
+
race-high 9a54b6 accuracy gen 77.39
|
| 30 |
+
flores_100 - - - -
|
| 31 |
+
winogrande b36770 accuracy gen 59.12
|
| 32 |
+
hellaswag e42710 accuracy gen 68.19
|
| 33 |
+
bbh - naive_average gen 40.85
|
| 34 |
+
gsm8k 1d7fe4 accuracy gen 55.12
|
| 35 |
+
math 393424 accuracy gen 33.54
|
| 36 |
+
TheoremQA 6f0af8 score gen 12.00
|
| 37 |
+
MathBench - - - -
|
| 38 |
+
openai_humaneval 8e312c humaneval_pass@1 gen 52.44
|
| 39 |
+
humaneval_plus - - - -
|
| 40 |
+
humanevalx - - - -
|
| 41 |
+
sanitized_mbpp a447ff score gen 50.58
|
| 42 |
+
mbpp_plus - - - -
|
| 43 |
+
mbpp_cn 6fb572 score gen 34.20
|
| 44 |
+
leval - - - -
|
| 45 |
+
leval_closed - - - -
|
| 46 |
+
leval_open - - - -
|
| 47 |
+
longbench - - - -
|
| 48 |
+
longbench_single-document-qa - - - -
|
| 49 |
+
longbench_multi-document-qa - - - -
|
| 50 |
+
longbench_summarization - - - -
|
| 51 |
+
longbench_few-shot-learning - - - -
|
| 52 |
+
longbench_synthetic-tasks - - - -
|
| 53 |
+
longbench_code-completion - - - -
|
| 54 |
+
teval - - - -
|
| 55 |
+
teval_zh - - - -
|
| 56 |
+
IFEval 3321a3 Prompt-level-strict-accuracy gen 31.05
|
| 57 |
+
IFEval 3321a3 Inst-level-strict-accuracy gen 43.17
|
| 58 |
+
IFEval 3321a3 Prompt-level-loose-accuracy gen 32.72
|
| 59 |
+
IFEval 3321a3 Inst-level-loose-accuracy gen 45.44
|
| 60 |
+
11/22 18:56:09 - OpenCompass - INFO - write summary to /mnt/petrelfs/wangweiyun/workspace_cz/InternVL/internvl_chat_dev/share_internvl/InternVL2_5-2B/20241122_183959/summary/summary_20241122_183959.txt
|
| 61 |
+
11/22 18:56:09 - OpenCompass - INFO - write csv to /mnt/petrelfs/wangweiyun/workspace_cz/InternVL/internvl_chat_dev/share_internvl/InternVL2_5-2B/20241122_183959/summary/summary_20241122_183959.csv
|
InternVL/InternVL_2_5/generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"transformers_version": "4.37.2",
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
92542,
|
| 6 |
+
92543
|
| 7 |
+
]
|
| 8 |
+
}
|
InternVL/InternVL_2_5/modeling_intern_vit.py
ADDED
|
@@ -0,0 +1,430 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------
|
| 2 |
+
# InternVL
|
| 3 |
+
# Copyright (c) 2024 OpenGVLab
|
| 4 |
+
# Licensed under The MIT License [see LICENSE for details]
|
| 5 |
+
# --------------------------------------------------------
|
| 6 |
+
|
| 7 |
+
from typing import Optional, Tuple, Union
|
| 8 |
+
|
| 9 |
+
import torch
|
| 10 |
+
import torch.nn.functional as F
|
| 11 |
+
import torch.utils.checkpoint
|
| 12 |
+
from einops import rearrange
|
| 13 |
+
from timm.models.layers import DropPath
|
| 14 |
+
from torch import nn
|
| 15 |
+
from transformers.activations import ACT2FN
|
| 16 |
+
from transformers.modeling_outputs import (BaseModelOutput,
|
| 17 |
+
BaseModelOutputWithPooling)
|
| 18 |
+
from transformers.modeling_utils import PreTrainedModel
|
| 19 |
+
from transformers.utils import logging
|
| 20 |
+
|
| 21 |
+
from .configuration_intern_vit import InternVisionConfig
|
| 22 |
+
|
| 23 |
+
try:
|
| 24 |
+
from flash_attn.bert_padding import pad_input, unpad_input
|
| 25 |
+
from flash_attn.flash_attn_interface import \
|
| 26 |
+
flash_attn_varlen_qkvpacked_func
|
| 27 |
+
has_flash_attn = True
|
| 28 |
+
except:
|
| 29 |
+
print('FlashAttention2 is not installed.')
|
| 30 |
+
has_flash_attn = False
|
| 31 |
+
|
| 32 |
+
logger = logging.get_logger(__name__)
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
class FlashAttention(nn.Module):
|
| 36 |
+
"""Implement the scaled dot product attention with softmax.
|
| 37 |
+
Arguments
|
| 38 |
+
---------
|
| 39 |
+
softmax_scale: The temperature to use for the softmax attention.
|
| 40 |
+
(default: 1/sqrt(d_keys) where d_keys is computed at
|
| 41 |
+
runtime)
|
| 42 |
+
attention_dropout: The dropout rate to apply to the attention
|
| 43 |
+
(default: 0.0)
|
| 44 |
+
"""
|
| 45 |
+
|
| 46 |
+
def __init__(self, softmax_scale=None, attention_dropout=0.0, device=None, dtype=None):
|
| 47 |
+
super().__init__()
|
| 48 |
+
self.softmax_scale = softmax_scale
|
| 49 |
+
self.dropout_p = attention_dropout
|
| 50 |
+
|
| 51 |
+
def forward(self, qkv, key_padding_mask=None, causal=False, cu_seqlens=None,
|
| 52 |
+
max_s=None, need_weights=False):
|
| 53 |
+
"""Implements the multihead softmax attention.
|
| 54 |
+
Arguments
|
| 55 |
+
---------
|
| 56 |
+
qkv: The tensor containing the query, key, and value. (B, S, 3, H, D) if key_padding_mask is None
|
| 57 |
+
if unpadded: (nnz, 3, h, d)
|
| 58 |
+
key_padding_mask: a bool tensor of shape (B, S)
|
| 59 |
+
"""
|
| 60 |
+
assert not need_weights
|
| 61 |
+
assert qkv.dtype in [torch.float16, torch.bfloat16]
|
| 62 |
+
assert qkv.is_cuda
|
| 63 |
+
|
| 64 |
+
if cu_seqlens is None:
|
| 65 |
+
batch_size = qkv.shape[0]
|
| 66 |
+
seqlen = qkv.shape[1]
|
| 67 |
+
if key_padding_mask is None:
|
| 68 |
+
qkv = rearrange(qkv, 'b s ... -> (b s) ...')
|
| 69 |
+
max_s = seqlen
|
| 70 |
+
cu_seqlens = torch.arange(0, (batch_size + 1) * seqlen, step=seqlen, dtype=torch.int32,
|
| 71 |
+
device=qkv.device)
|
| 72 |
+
output = flash_attn_varlen_qkvpacked_func(
|
| 73 |
+
qkv, cu_seqlens, max_s, self.dropout_p if self.training else 0.0,
|
| 74 |
+
softmax_scale=self.softmax_scale, causal=causal
|
| 75 |
+
)
|
| 76 |
+
output = rearrange(output, '(b s) ... -> b s ...', b=batch_size)
|
| 77 |
+
else:
|
| 78 |
+
nheads = qkv.shape[-2]
|
| 79 |
+
x = rearrange(qkv, 'b s three h d -> b s (three h d)')
|
| 80 |
+
x_unpad, indices, cu_seqlens, max_s = unpad_input(x, key_padding_mask)
|
| 81 |
+
x_unpad = rearrange(x_unpad, 'nnz (three h d) -> nnz three h d', three=3, h=nheads)
|
| 82 |
+
output_unpad = flash_attn_varlen_qkvpacked_func(
|
| 83 |
+
x_unpad, cu_seqlens, max_s, self.dropout_p if self.training else 0.0,
|
| 84 |
+
softmax_scale=self.softmax_scale, causal=causal
|
| 85 |
+
)
|
| 86 |
+
output = rearrange(pad_input(rearrange(output_unpad, 'nnz h d -> nnz (h d)'),
|
| 87 |
+
indices, batch_size, seqlen),
|
| 88 |
+
'b s (h d) -> b s h d', h=nheads)
|
| 89 |
+
else:
|
| 90 |
+
assert max_s is not None
|
| 91 |
+
output = flash_attn_varlen_qkvpacked_func(
|
| 92 |
+
qkv, cu_seqlens, max_s, self.dropout_p if self.training else 0.0,
|
| 93 |
+
softmax_scale=self.softmax_scale, causal=causal
|
| 94 |
+
)
|
| 95 |
+
|
| 96 |
+
return output, None
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
class InternRMSNorm(nn.Module):
|
| 100 |
+
def __init__(self, hidden_size, eps=1e-6):
|
| 101 |
+
super().__init__()
|
| 102 |
+
self.weight = nn.Parameter(torch.ones(hidden_size))
|
| 103 |
+
self.variance_epsilon = eps
|
| 104 |
+
|
| 105 |
+
def forward(self, hidden_states):
|
| 106 |
+
input_dtype = hidden_states.dtype
|
| 107 |
+
hidden_states = hidden_states.to(torch.float32)
|
| 108 |
+
variance = hidden_states.pow(2).mean(-1, keepdim=True)
|
| 109 |
+
hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
|
| 110 |
+
return self.weight * hidden_states.to(input_dtype)
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
try:
|
| 114 |
+
from apex.normalization import FusedRMSNorm
|
| 115 |
+
|
| 116 |
+
InternRMSNorm = FusedRMSNorm # noqa
|
| 117 |
+
|
| 118 |
+
logger.info('Discovered apex.normalization.FusedRMSNorm - will use it instead of InternRMSNorm')
|
| 119 |
+
except ImportError:
|
| 120 |
+
# using the normal InternRMSNorm
|
| 121 |
+
pass
|
| 122 |
+
except Exception:
|
| 123 |
+
logger.warning('discovered apex but it failed to load, falling back to InternRMSNorm')
|
| 124 |
+
pass
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
NORM2FN = {
|
| 128 |
+
'rms_norm': InternRMSNorm,
|
| 129 |
+
'layer_norm': nn.LayerNorm,
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
class InternVisionEmbeddings(nn.Module):
|
| 134 |
+
def __init__(self, config: InternVisionConfig):
|
| 135 |
+
super().__init__()
|
| 136 |
+
self.config = config
|
| 137 |
+
self.embed_dim = config.hidden_size
|
| 138 |
+
self.image_size = config.image_size
|
| 139 |
+
self.patch_size = config.patch_size
|
| 140 |
+
|
| 141 |
+
self.class_embedding = nn.Parameter(
|
| 142 |
+
torch.randn(1, 1, self.embed_dim),
|
| 143 |
+
)
|
| 144 |
+
|
| 145 |
+
self.patch_embedding = nn.Conv2d(
|
| 146 |
+
in_channels=3, out_channels=self.embed_dim, kernel_size=self.patch_size, stride=self.patch_size
|
| 147 |
+
)
|
| 148 |
+
|
| 149 |
+
self.num_patches = (self.image_size // self.patch_size) ** 2
|
| 150 |
+
self.num_positions = self.num_patches + 1
|
| 151 |
+
|
| 152 |
+
self.position_embedding = nn.Parameter(torch.randn(1, self.num_positions, self.embed_dim))
|
| 153 |
+
|
| 154 |
+
def _get_pos_embed(self, pos_embed, H, W):
|
| 155 |
+
target_dtype = pos_embed.dtype
|
| 156 |
+
pos_embed = pos_embed.float().reshape(
|
| 157 |
+
1, self.image_size // self.patch_size, self.image_size // self.patch_size, -1).permute(0, 3, 1, 2)
|
| 158 |
+
pos_embed = F.interpolate(pos_embed, size=(H, W), mode='bicubic', align_corners=False). \
|
| 159 |
+
reshape(1, -1, H * W).permute(0, 2, 1).to(target_dtype)
|
| 160 |
+
return pos_embed
|
| 161 |
+
|
| 162 |
+
def forward(self, pixel_values: torch.FloatTensor) -> torch.Tensor:
|
| 163 |
+
target_dtype = self.patch_embedding.weight.dtype
|
| 164 |
+
patch_embeds = self.patch_embedding(pixel_values) # shape = [*, channel, width, height]
|
| 165 |
+
batch_size, _, height, width = patch_embeds.shape
|
| 166 |
+
patch_embeds = patch_embeds.flatten(2).transpose(1, 2)
|
| 167 |
+
class_embeds = self.class_embedding.expand(batch_size, 1, -1).to(target_dtype)
|
| 168 |
+
embeddings = torch.cat([class_embeds, patch_embeds], dim=1)
|
| 169 |
+
position_embedding = torch.cat([
|
| 170 |
+
self.position_embedding[:, :1, :],
|
| 171 |
+
self._get_pos_embed(self.position_embedding[:, 1:, :], height, width)
|
| 172 |
+
], dim=1)
|
| 173 |
+
embeddings = embeddings + position_embedding.to(target_dtype)
|
| 174 |
+
return embeddings
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
class InternAttention(nn.Module):
|
| 178 |
+
"""Multi-headed attention from 'Attention Is All You Need' paper"""
|
| 179 |
+
|
| 180 |
+
def __init__(self, config: InternVisionConfig):
|
| 181 |
+
super().__init__()
|
| 182 |
+
self.config = config
|
| 183 |
+
self.embed_dim = config.hidden_size
|
| 184 |
+
self.num_heads = config.num_attention_heads
|
| 185 |
+
self.use_flash_attn = config.use_flash_attn and has_flash_attn
|
| 186 |
+
if config.use_flash_attn and not has_flash_attn:
|
| 187 |
+
print('Warning: Flash Attention is not available, use_flash_attn is set to False.')
|
| 188 |
+
self.head_dim = self.embed_dim // self.num_heads
|
| 189 |
+
if self.head_dim * self.num_heads != self.embed_dim:
|
| 190 |
+
raise ValueError(
|
| 191 |
+
f'embed_dim must be divisible by num_heads (got `embed_dim`: {self.embed_dim} and `num_heads`:'
|
| 192 |
+
f' {self.num_heads}).'
|
| 193 |
+
)
|
| 194 |
+
|
| 195 |
+
self.scale = self.head_dim ** -0.5
|
| 196 |
+
self.qkv = nn.Linear(self.embed_dim, 3 * self.embed_dim, bias=config.qkv_bias)
|
| 197 |
+
self.attn_drop = nn.Dropout(config.attention_dropout)
|
| 198 |
+
self.proj_drop = nn.Dropout(config.dropout)
|
| 199 |
+
|
| 200 |
+
self.qk_normalization = config.qk_normalization
|
| 201 |
+
|
| 202 |
+
if self.qk_normalization:
|
| 203 |
+
self.q_norm = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 204 |
+
self.k_norm = InternRMSNorm(self.embed_dim, eps=config.layer_norm_eps)
|
| 205 |
+
|
| 206 |
+
if self.use_flash_attn:
|
| 207 |
+
self.inner_attn = FlashAttention(attention_dropout=config.attention_dropout)
|
| 208 |
+
self.proj = nn.Linear(self.embed_dim, self.embed_dim)
|
| 209 |
+
|
| 210 |
+
def _naive_attn(self, x):
|
| 211 |
+
B, N, C = x.shape
|
| 212 |
+
qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
|
| 213 |
+
q, k, v = qkv.unbind(0) # make torchscript happy (cannot use tensor as tuple)
|
| 214 |
+
|
| 215 |
+
if self.qk_normalization:
|
| 216 |
+
B_, H_, N_, D_ = q.shape
|
| 217 |
+
q = self.q_norm(q.transpose(1, 2).flatten(-2, -1)).view(B_, N_, H_, D_).transpose(1, 2)
|
| 218 |
+
k = self.k_norm(k.transpose(1, 2).flatten(-2, -1)).view(B_, N_, H_, D_).transpose(1, 2)
|
| 219 |
+
|
| 220 |
+
attn = ((q * self.scale) @ k.transpose(-2, -1))
|
| 221 |
+
attn = attn.softmax(dim=-1)
|
| 222 |
+
attn = self.attn_drop(attn)
|
| 223 |
+
|
| 224 |
+
x = (attn @ v).transpose(1, 2).reshape(B, N, C)
|
| 225 |
+
x = self.proj(x)
|
| 226 |
+
x = self.proj_drop(x)
|
| 227 |
+
return x
|
| 228 |
+
|
| 229 |
+
def _flash_attn(self, x, key_padding_mask=None, need_weights=False):
|
| 230 |
+
qkv = self.qkv(x)
|
| 231 |
+
qkv = rearrange(qkv, 'b s (three h d) -> b s three h d', three=3, h=self.num_heads)
|
| 232 |
+
|
| 233 |
+
if self.qk_normalization:
|
| 234 |
+
q, k, v = qkv.unbind(2)
|
| 235 |
+
q = self.q_norm(q.flatten(-2, -1)).view(q.shape)
|
| 236 |
+
k = self.k_norm(k.flatten(-2, -1)).view(k.shape)
|
| 237 |
+
qkv = torch.stack([q, k, v], dim=2)
|
| 238 |
+
|
| 239 |
+
context, _ = self.inner_attn(
|
| 240 |
+
qkv, key_padding_mask=key_padding_mask, need_weights=need_weights, causal=False
|
| 241 |
+
)
|
| 242 |
+
outs = self.proj(rearrange(context, 'b s h d -> b s (h d)'))
|
| 243 |
+
outs = self.proj_drop(outs)
|
| 244 |
+
return outs
|
| 245 |
+
|
| 246 |
+
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
| 247 |
+
x = self._naive_attn(hidden_states) if not self.use_flash_attn else self._flash_attn(hidden_states)
|
| 248 |
+
return x
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
class InternMLP(nn.Module):
|
| 252 |
+
def __init__(self, config: InternVisionConfig):
|
| 253 |
+
super().__init__()
|
| 254 |
+
self.config = config
|
| 255 |
+
self.act = ACT2FN[config.hidden_act]
|
| 256 |
+
self.fc1 = nn.Linear(config.hidden_size, config.intermediate_size)
|
| 257 |
+
self.fc2 = nn.Linear(config.intermediate_size, config.hidden_size)
|
| 258 |
+
|
| 259 |
+
def forward(self, hidden_states: torch.Tensor) -> torch.Tensor:
|
| 260 |
+
hidden_states = self.fc1(hidden_states)
|
| 261 |
+
hidden_states = self.act(hidden_states)
|
| 262 |
+
hidden_states = self.fc2(hidden_states)
|
| 263 |
+
return hidden_states
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
class InternVisionEncoderLayer(nn.Module):
|
| 267 |
+
def __init__(self, config: InternVisionConfig, drop_path_rate: float):
|
| 268 |
+
super().__init__()
|
| 269 |
+
self.embed_dim = config.hidden_size
|
| 270 |
+
self.intermediate_size = config.intermediate_size
|
| 271 |
+
self.norm_type = config.norm_type
|
| 272 |
+
|
| 273 |
+
self.attn = InternAttention(config)
|
| 274 |
+
self.mlp = InternMLP(config)
|
| 275 |
+
self.norm1 = NORM2FN[self.norm_type](self.embed_dim, eps=config.layer_norm_eps)
|
| 276 |
+
self.norm2 = NORM2FN[self.norm_type](self.embed_dim, eps=config.layer_norm_eps)
|
| 277 |
+
|
| 278 |
+
self.ls1 = nn.Parameter(config.initializer_factor * torch.ones(self.embed_dim))
|
| 279 |
+
self.ls2 = nn.Parameter(config.initializer_factor * torch.ones(self.embed_dim))
|
| 280 |
+
self.drop_path1 = DropPath(drop_path_rate) if drop_path_rate > 0. else nn.Identity()
|
| 281 |
+
self.drop_path2 = DropPath(drop_path_rate) if drop_path_rate > 0. else nn.Identity()
|
| 282 |
+
|
| 283 |
+
def forward(
|
| 284 |
+
self,
|
| 285 |
+
hidden_states: torch.Tensor,
|
| 286 |
+
) -> Tuple[torch.FloatTensor, Optional[torch.FloatTensor], Optional[Tuple[torch.FloatTensor]]]:
|
| 287 |
+
"""
|
| 288 |
+
Args:
|
| 289 |
+
hidden_states (`Tuple[torch.FloatTensor, Optional[torch.FloatTensor]]`): input to the layer of shape `(batch, seq_len, embed_dim)`
|
| 290 |
+
"""
|
| 291 |
+
hidden_states = hidden_states + self.drop_path1(self.attn(self.norm1(hidden_states).to(hidden_states.dtype)) * self.ls1)
|
| 292 |
+
|
| 293 |
+
hidden_states = hidden_states + self.drop_path2(self.mlp(self.norm2(hidden_states).to(hidden_states.dtype)) * self.ls2)
|
| 294 |
+
|
| 295 |
+
return hidden_states
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
class InternVisionEncoder(nn.Module):
|
| 299 |
+
"""
|
| 300 |
+
Transformer encoder consisting of `config.num_hidden_layers` self attention layers. Each layer is a
|
| 301 |
+
[`InternEncoderLayer`].
|
| 302 |
+
|
| 303 |
+
Args:
|
| 304 |
+
config (`InternConfig`):
|
| 305 |
+
The corresponding vision configuration for the `InternEncoder`.
|
| 306 |
+
"""
|
| 307 |
+
|
| 308 |
+
def __init__(self, config: InternVisionConfig):
|
| 309 |
+
super().__init__()
|
| 310 |
+
self.config = config
|
| 311 |
+
# stochastic depth decay rule
|
| 312 |
+
dpr = [x.item() for x in torch.linspace(0, config.drop_path_rate, config.num_hidden_layers)]
|
| 313 |
+
self.layers = nn.ModuleList([
|
| 314 |
+
InternVisionEncoderLayer(config, dpr[idx]) for idx in range(config.num_hidden_layers)])
|
| 315 |
+
self.gradient_checkpointing = True
|
| 316 |
+
|
| 317 |
+
def forward(
|
| 318 |
+
self,
|
| 319 |
+
inputs_embeds,
|
| 320 |
+
output_hidden_states: Optional[bool] = None,
|
| 321 |
+
return_dict: Optional[bool] = None,
|
| 322 |
+
) -> Union[Tuple, BaseModelOutput]:
|
| 323 |
+
r"""
|
| 324 |
+
Args:
|
| 325 |
+
inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`):
|
| 326 |
+
Embedded representation of the inputs. Should be float, not int tokens.
|
| 327 |
+
output_hidden_states (`bool`, *optional*):
|
| 328 |
+
Whether or not to return the hidden states of all layers. See `hidden_states` under returned tensors
|
| 329 |
+
for more detail.
|
| 330 |
+
return_dict (`bool`, *optional*):
|
| 331 |
+
Whether or not to return a [`~utils.ModelOutput`] instead of a plain tuple.
|
| 332 |
+
"""
|
| 333 |
+
output_hidden_states = (
|
| 334 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 335 |
+
)
|
| 336 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 337 |
+
|
| 338 |
+
encoder_states = () if output_hidden_states else None
|
| 339 |
+
hidden_states = inputs_embeds
|
| 340 |
+
|
| 341 |
+
for idx, encoder_layer in enumerate(self.layers):
|
| 342 |
+
if output_hidden_states:
|
| 343 |
+
encoder_states = encoder_states + (hidden_states,)
|
| 344 |
+
if self.gradient_checkpointing and self.training:
|
| 345 |
+
layer_outputs = torch.utils.checkpoint.checkpoint(
|
| 346 |
+
encoder_layer,
|
| 347 |
+
hidden_states)
|
| 348 |
+
else:
|
| 349 |
+
layer_outputs = encoder_layer(
|
| 350 |
+
hidden_states,
|
| 351 |
+
)
|
| 352 |
+
hidden_states = layer_outputs
|
| 353 |
+
|
| 354 |
+
if output_hidden_states:
|
| 355 |
+
encoder_states = encoder_states + (hidden_states,)
|
| 356 |
+
|
| 357 |
+
if not return_dict:
|
| 358 |
+
return tuple(v for v in [hidden_states, encoder_states] if v is not None)
|
| 359 |
+
return BaseModelOutput(
|
| 360 |
+
last_hidden_state=hidden_states, hidden_states=encoder_states
|
| 361 |
+
)
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
class InternVisionModel(PreTrainedModel):
|
| 365 |
+
main_input_name = 'pixel_values'
|
| 366 |
+
_supports_flash_attn_2 = True
|
| 367 |
+
config_class = InternVisionConfig
|
| 368 |
+
_no_split_modules = ['InternVisionEncoderLayer']
|
| 369 |
+
|
| 370 |
+
def __init__(self, config: InternVisionConfig):
|
| 371 |
+
super().__init__(config)
|
| 372 |
+
self.config = config
|
| 373 |
+
|
| 374 |
+
self.embeddings = InternVisionEmbeddings(config)
|
| 375 |
+
self.encoder = InternVisionEncoder(config)
|
| 376 |
+
|
| 377 |
+
def resize_pos_embeddings(self, old_size, new_size, patch_size):
|
| 378 |
+
pos_emb = self.embeddings.position_embedding
|
| 379 |
+
_, num_positions, embed_dim = pos_emb.shape
|
| 380 |
+
cls_emb = pos_emb[:, :1, :]
|
| 381 |
+
pos_emb = pos_emb[:, 1:, :].reshape(1, old_size // patch_size, old_size // patch_size, -1).permute(0, 3, 1, 2)
|
| 382 |
+
pos_emb = F.interpolate(pos_emb.float(), size=new_size // patch_size, mode='bicubic', align_corners=False)
|
| 383 |
+
pos_emb = pos_emb.to(cls_emb.dtype).reshape(1, embed_dim, -1).permute(0, 2, 1)
|
| 384 |
+
pos_emb = torch.cat([cls_emb, pos_emb], dim=1)
|
| 385 |
+
self.embeddings.position_embedding = nn.Parameter(pos_emb)
|
| 386 |
+
self.embeddings.image_size = new_size
|
| 387 |
+
logger.info('Resized position embeddings from {} to {}'.format(old_size, new_size))
|
| 388 |
+
|
| 389 |
+
def get_input_embeddings(self):
|
| 390 |
+
return self.embeddings
|
| 391 |
+
|
| 392 |
+
def forward(
|
| 393 |
+
self,
|
| 394 |
+
pixel_values: Optional[torch.FloatTensor] = None,
|
| 395 |
+
output_hidden_states: Optional[bool] = None,
|
| 396 |
+
return_dict: Optional[bool] = None,
|
| 397 |
+
pixel_embeds: Optional[torch.FloatTensor] = None,
|
| 398 |
+
) -> Union[Tuple, BaseModelOutputWithPooling]:
|
| 399 |
+
output_hidden_states = (
|
| 400 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 401 |
+
)
|
| 402 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 403 |
+
|
| 404 |
+
if pixel_values is None and pixel_embeds is None:
|
| 405 |
+
raise ValueError('You have to specify pixel_values or pixel_embeds')
|
| 406 |
+
|
| 407 |
+
if pixel_embeds is not None:
|
| 408 |
+
hidden_states = pixel_embeds
|
| 409 |
+
else:
|
| 410 |
+
if len(pixel_values.shape) == 4:
|
| 411 |
+
hidden_states = self.embeddings(pixel_values)
|
| 412 |
+
else:
|
| 413 |
+
raise ValueError(f'wrong pixel_values size: {pixel_values.shape}')
|
| 414 |
+
encoder_outputs = self.encoder(
|
| 415 |
+
inputs_embeds=hidden_states,
|
| 416 |
+
output_hidden_states=output_hidden_states,
|
| 417 |
+
return_dict=return_dict,
|
| 418 |
+
)
|
| 419 |
+
last_hidden_state = encoder_outputs.last_hidden_state
|
| 420 |
+
pooled_output = last_hidden_state[:, 0, :]
|
| 421 |
+
|
| 422 |
+
if not return_dict:
|
| 423 |
+
return (last_hidden_state, pooled_output) + encoder_outputs[1:]
|
| 424 |
+
|
| 425 |
+
return BaseModelOutputWithPooling(
|
| 426 |
+
last_hidden_state=last_hidden_state,
|
| 427 |
+
pooler_output=pooled_output,
|
| 428 |
+
hidden_states=encoder_outputs.hidden_states,
|
| 429 |
+
attentions=encoder_outputs.attentions,
|
| 430 |
+
)
|
InternVL/InternVL_2_5/modeling_internlm2.py
ADDED
|
@@ -0,0 +1,1415 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) The InternLM team and The HuggingFace Inc. team. All rights reserved.
|
| 2 |
+
#
|
| 3 |
+
# This code is based on transformers/src/transformers/models/llama/modeling_llama.py
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
""" PyTorch InternLM2 model."""
|
| 17 |
+
import math
|
| 18 |
+
import queue
|
| 19 |
+
import threading
|
| 20 |
+
import warnings
|
| 21 |
+
from typing import List, Optional, Tuple, Union
|
| 22 |
+
|
| 23 |
+
import torch
|
| 24 |
+
import torch.nn.functional as F
|
| 25 |
+
import torch.utils.checkpoint
|
| 26 |
+
from einops import rearrange
|
| 27 |
+
from torch import nn
|
| 28 |
+
from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss
|
| 29 |
+
from transformers.activations import ACT2FN
|
| 30 |
+
from transformers.modeling_outputs import (BaseModelOutputWithPast,
|
| 31 |
+
CausalLMOutputWithPast,
|
| 32 |
+
SequenceClassifierOutputWithPast)
|
| 33 |
+
from transformers.modeling_utils import PreTrainedModel
|
| 34 |
+
from transformers.utils import (add_start_docstrings,
|
| 35 |
+
add_start_docstrings_to_model_forward, logging,
|
| 36 |
+
replace_return_docstrings)
|
| 37 |
+
|
| 38 |
+
try:
|
| 39 |
+
from transformers.generation.streamers import BaseStreamer
|
| 40 |
+
except: # noqa # pylint: disable=bare-except
|
| 41 |
+
BaseStreamer = None
|
| 42 |
+
|
| 43 |
+
from .configuration_internlm2 import InternLM2Config
|
| 44 |
+
|
| 45 |
+
logger = logging.get_logger(__name__)
|
| 46 |
+
|
| 47 |
+
_CONFIG_FOR_DOC = 'InternLM2Config'
|
| 48 |
+
|
| 49 |
+
flash_attn_func, flash_attn_varlen_func = None, None
|
| 50 |
+
pad_input, index_first_axis, unpad_input = None, None, None
|
| 51 |
+
try:
|
| 52 |
+
from flash_attn import flash_attn_func as _flash_attn_func
|
| 53 |
+
from flash_attn import flash_attn_varlen_func as _flash_attn_varlen_func
|
| 54 |
+
from flash_attn.bert_padding import index_first_axis as _index_first_axis
|
| 55 |
+
from flash_attn.bert_padding import pad_input as _pad_input
|
| 56 |
+
from flash_attn.bert_padding import unpad_input as _unpad_input
|
| 57 |
+
|
| 58 |
+
flash_attn_func, flash_attn_varlen_func = _flash_attn_func, _flash_attn_varlen_func
|
| 59 |
+
pad_input, index_first_axis, unpad_input = _pad_input, _index_first_axis, _unpad_input
|
| 60 |
+
has_flash_attn = True
|
| 61 |
+
except:
|
| 62 |
+
has_flash_attn = False
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def _import_flash_attn():
|
| 66 |
+
global flash_attn_func, flash_attn_varlen_func
|
| 67 |
+
global pad_input, index_first_axis, unpad_input
|
| 68 |
+
try:
|
| 69 |
+
from flash_attn import flash_attn_func as _flash_attn_func
|
| 70 |
+
from flash_attn import \
|
| 71 |
+
flash_attn_varlen_func as _flash_attn_varlen_func
|
| 72 |
+
from flash_attn.bert_padding import \
|
| 73 |
+
index_first_axis as _index_first_axis
|
| 74 |
+
from flash_attn.bert_padding import pad_input as _pad_input
|
| 75 |
+
from flash_attn.bert_padding import unpad_input as _unpad_input
|
| 76 |
+
flash_attn_func, flash_attn_varlen_func = _flash_attn_func, _flash_attn_varlen_func
|
| 77 |
+
pad_input, index_first_axis, unpad_input = _pad_input, _index_first_axis, _unpad_input
|
| 78 |
+
except ImportError:
|
| 79 |
+
raise ImportError('flash_attn is not installed.')
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
# Copied from transformers.models.llama.modeling_llama._get_unpad_data
|
| 83 |
+
def _get_unpad_data(attention_mask):
|
| 84 |
+
seqlens_in_batch = attention_mask.sum(dim=-1, dtype=torch.int32)
|
| 85 |
+
indices = torch.nonzero(attention_mask.flatten(), as_tuple=False).flatten()
|
| 86 |
+
max_seqlen_in_batch = seqlens_in_batch.max().item()
|
| 87 |
+
cu_seqlens = F.pad(torch.cumsum(seqlens_in_batch, dim=0, dtype=torch.torch.int32), (1, 0))
|
| 88 |
+
return (
|
| 89 |
+
indices,
|
| 90 |
+
cu_seqlens,
|
| 91 |
+
max_seqlen_in_batch,
|
| 92 |
+
)
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
# Copied from transformers.models.bart.modeling_bart._make_causal_mask
|
| 96 |
+
def _make_causal_mask(
|
| 97 |
+
input_ids_shape: torch.Size, dtype: torch.dtype, device: torch.device, past_key_values_length: int = 0
|
| 98 |
+
):
|
| 99 |
+
"""
|
| 100 |
+
Make causal mask used for bi-directional self-attention.
|
| 101 |
+
"""
|
| 102 |
+
bsz, tgt_len = input_ids_shape
|
| 103 |
+
mask = torch.full((tgt_len, tgt_len), torch.tensor(torch.finfo(dtype).min, device=device), device=device)
|
| 104 |
+
mask_cond = torch.arange(mask.size(-1), device=device)
|
| 105 |
+
mask.masked_fill_(mask_cond < (mask_cond + 1).view(mask.size(-1), 1), 0)
|
| 106 |
+
mask = mask.to(dtype)
|
| 107 |
+
|
| 108 |
+
if past_key_values_length > 0:
|
| 109 |
+
mask = torch.cat([torch.zeros(tgt_len, past_key_values_length, dtype=dtype, device=device), mask], dim=-1)
|
| 110 |
+
return mask[None, None, :, :].expand(bsz, 1, tgt_len, tgt_len + past_key_values_length)
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
# Copied from transformers.models.bart.modeling_bart._expand_mask
|
| 114 |
+
def _expand_mask(mask: torch.Tensor, dtype: torch.dtype, tgt_len: Optional[int] = None):
|
| 115 |
+
"""
|
| 116 |
+
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
|
| 117 |
+
"""
|
| 118 |
+
bsz, src_len = mask.size()
|
| 119 |
+
tgt_len = tgt_len if tgt_len is not None else src_len
|
| 120 |
+
|
| 121 |
+
expanded_mask = mask[:, None, None, :].expand(bsz, 1, tgt_len, src_len).to(dtype)
|
| 122 |
+
|
| 123 |
+
inverted_mask = 1.0 - expanded_mask
|
| 124 |
+
|
| 125 |
+
return inverted_mask.masked_fill(inverted_mask.to(torch.bool), torch.finfo(dtype).min)
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
# Copied from transformers.models.llama.modeling_llama.LlamaRMSNorm with Llama->InternLM2
|
| 129 |
+
class InternLM2RMSNorm(nn.Module):
|
| 130 |
+
def __init__(self, hidden_size, eps=1e-6):
|
| 131 |
+
"""
|
| 132 |
+
InternLM2RMSNorm is equivalent to T5LayerNorm
|
| 133 |
+
"""
|
| 134 |
+
super().__init__()
|
| 135 |
+
self.weight = nn.Parameter(torch.ones(hidden_size))
|
| 136 |
+
self.variance_epsilon = eps
|
| 137 |
+
|
| 138 |
+
def forward(self, hidden_states):
|
| 139 |
+
input_dtype = hidden_states.dtype
|
| 140 |
+
hidden_states = hidden_states.to(torch.float32)
|
| 141 |
+
variance = hidden_states.pow(2).mean(-1, keepdim=True)
|
| 142 |
+
hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
|
| 143 |
+
return self.weight * hidden_states.to(input_dtype)
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
# Copied from transformers.model.llama.modeling_llama.LlamaRotaryEmbedding with Llama->InternLM2
|
| 147 |
+
class InternLM2RotaryEmbedding(nn.Module):
|
| 148 |
+
def __init__(self, dim, max_position_embeddings=2048, base=10000, device=None):
|
| 149 |
+
super().__init__()
|
| 150 |
+
|
| 151 |
+
self.dim = dim
|
| 152 |
+
self.max_position_embeddings = max_position_embeddings
|
| 153 |
+
self.base = base
|
| 154 |
+
inv_freq = 1.0 / (self.base ** (torch.arange(0, self.dim, 2).float().to(device) / self.dim))
|
| 155 |
+
self.register_buffer('inv_freq', inv_freq, persistent=False)
|
| 156 |
+
|
| 157 |
+
# Build here to make `torch.jit.trace` work.
|
| 158 |
+
self._set_cos_sin_cache(
|
| 159 |
+
seq_len=max_position_embeddings, device=self.inv_freq.device, dtype=torch.get_default_dtype()
|
| 160 |
+
)
|
| 161 |
+
|
| 162 |
+
def _set_cos_sin_cache(self, seq_len, device, dtype):
|
| 163 |
+
self.max_seq_len_cached = seq_len
|
| 164 |
+
t = torch.arange(self.max_seq_len_cached, device=device).to(dtype=self.inv_freq.dtype)
|
| 165 |
+
|
| 166 |
+
freqs = torch.einsum('i,j->ij', t, self.inv_freq)
|
| 167 |
+
# Different from paper, but it uses a different permutation in order to obtain the same calculation
|
| 168 |
+
emb = torch.cat((freqs, freqs), dim=-1)
|
| 169 |
+
self.register_buffer('cos_cached', emb.cos().to(dtype), persistent=False)
|
| 170 |
+
self.register_buffer('sin_cached', emb.sin().to(dtype), persistent=False)
|
| 171 |
+
|
| 172 |
+
def forward(self, x, seq_len=None):
|
| 173 |
+
# x: [bs, num_attention_heads, seq_len, head_size]
|
| 174 |
+
if seq_len > self.max_seq_len_cached:
|
| 175 |
+
self._set_cos_sin_cache(seq_len=seq_len, device=x.device, dtype=torch.float32)
|
| 176 |
+
|
| 177 |
+
return (
|
| 178 |
+
self.cos_cached[:seq_len].to(dtype=x.dtype),
|
| 179 |
+
self.sin_cached[:seq_len].to(dtype=x.dtype),
|
| 180 |
+
)
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
# Copied from transformers.model.llama.modeling_llama.LlamaLinearScalingRotaryEmbedding with Llama->InternLM2
|
| 184 |
+
class InternLM2LinearScalingRotaryEmbedding(InternLM2RotaryEmbedding):
|
| 185 |
+
"""InternLM2RotaryEmbedding extended with linear scaling. Credits to the Reddit user /u/kaiokendev"""
|
| 186 |
+
|
| 187 |
+
def __init__(self, dim, max_position_embeddings=2048, base=10000, device=None, scaling_factor=1.0):
|
| 188 |
+
self.scaling_factor = scaling_factor
|
| 189 |
+
super().__init__(dim, max_position_embeddings, base, device)
|
| 190 |
+
|
| 191 |
+
def _set_cos_sin_cache(self, seq_len, device, dtype):
|
| 192 |
+
self.max_seq_len_cached = seq_len
|
| 193 |
+
t = torch.arange(self.max_seq_len_cached, device=device).to(dtype=self.inv_freq.dtype)
|
| 194 |
+
t = t / self.scaling_factor
|
| 195 |
+
|
| 196 |
+
freqs = torch.einsum('i,j->ij', t, self.inv_freq)
|
| 197 |
+
# Different from paper, but it uses a different permutation in order to obtain the same calculation
|
| 198 |
+
emb = torch.cat((freqs, freqs), dim=-1)
|
| 199 |
+
self.register_buffer('cos_cached', emb.cos().to(dtype), persistent=False)
|
| 200 |
+
self.register_buffer('sin_cached', emb.sin().to(dtype), persistent=False)
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
# Copied from transformers.model.llama.modeling_llama.LlamaDynamicNTKScalingRotaryEmbedding with Llama->InternLM2
|
| 204 |
+
class InternLM2DynamicNTKScalingRotaryEmbedding(InternLM2RotaryEmbedding):
|
| 205 |
+
"""InternLM2RotaryEmbedding extended with Dynamic NTK scaling.
|
| 206 |
+
Credits to the Reddit users /u/bloc97 and /u/emozilla.
|
| 207 |
+
"""
|
| 208 |
+
|
| 209 |
+
def __init__(self, dim, max_position_embeddings=2048, base=10000, device=None, scaling_factor=1.0):
|
| 210 |
+
self.scaling_factor = scaling_factor
|
| 211 |
+
super().__init__(dim, max_position_embeddings, base, device)
|
| 212 |
+
|
| 213 |
+
def _set_cos_sin_cache(self, seq_len, device, dtype):
|
| 214 |
+
self.max_seq_len_cached = seq_len
|
| 215 |
+
|
| 216 |
+
if seq_len > self.max_position_embeddings:
|
| 217 |
+
base = self.base * (
|
| 218 |
+
(self.scaling_factor * seq_len / self.max_position_embeddings) - (self.scaling_factor - 1)
|
| 219 |
+
) ** (self.dim / (self.dim - 2))
|
| 220 |
+
inv_freq = 1.0 / (base ** (torch.arange(0, self.dim, 2).float().to(device) / self.dim))
|
| 221 |
+
self.register_buffer('inv_freq', inv_freq, persistent=False)
|
| 222 |
+
|
| 223 |
+
t = torch.arange(self.max_seq_len_cached, device=device).to(dtype=self.inv_freq.dtype)
|
| 224 |
+
|
| 225 |
+
freqs = torch.einsum('i,j->ij', t, self.inv_freq)
|
| 226 |
+
# Different from paper, but it uses a different permutation in order to obtain the same calculation
|
| 227 |
+
emb = torch.cat((freqs, freqs), dim=-1)
|
| 228 |
+
self.register_buffer('cos_cached', emb.cos().to(dtype), persistent=False)
|
| 229 |
+
self.register_buffer('sin_cached', emb.sin().to(dtype), persistent=False)
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
# Copied from transformers.model.llama.modeling_llama.rotate_half
|
| 233 |
+
def rotate_half(x):
|
| 234 |
+
"""Rotates half the hidden dims of the input."""
|
| 235 |
+
x1 = x[..., : x.shape[-1] // 2]
|
| 236 |
+
x2 = x[..., x.shape[-1] // 2 :]
|
| 237 |
+
return torch.cat((-x2, x1), dim=-1)
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
# Copied from transformers.model.llama.modeling_llama.apply_rotary_pos_emb
|
| 241 |
+
def apply_rotary_pos_emb(q, k, cos, sin, position_ids, unsqueeze_dim=1):
|
| 242 |
+
"""Applies Rotary Position Embedding to the query and key tensors."""
|
| 243 |
+
cos = cos[position_ids].unsqueeze(unsqueeze_dim)
|
| 244 |
+
sin = sin[position_ids].unsqueeze(unsqueeze_dim)
|
| 245 |
+
q_embed = (q * cos) + (rotate_half(q) * sin)
|
| 246 |
+
k_embed = (k * cos) + (rotate_half(k) * sin)
|
| 247 |
+
return q_embed, k_embed
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
class InternLM2MLP(nn.Module):
|
| 251 |
+
def __init__(self, config):
|
| 252 |
+
super().__init__()
|
| 253 |
+
self.config = config
|
| 254 |
+
self.hidden_size = config.hidden_size
|
| 255 |
+
self.intermediate_size = config.intermediate_size
|
| 256 |
+
self.w1 = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
|
| 257 |
+
self.w3 = nn.Linear(self.hidden_size, self.intermediate_size, bias=False)
|
| 258 |
+
self.w2 = nn.Linear(self.intermediate_size, self.hidden_size, bias=False)
|
| 259 |
+
self.act_fn = ACT2FN[config.hidden_act]
|
| 260 |
+
|
| 261 |
+
def forward(self, x):
|
| 262 |
+
down_proj = self.w2(self.act_fn(self.w1(x)) * self.w3(x))
|
| 263 |
+
|
| 264 |
+
return down_proj
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
# Copied from transformers.model.llama.modeling_llama.repeat_kv
|
| 268 |
+
def repeat_kv(hidden_states: torch.Tensor, n_rep: int) -> torch.Tensor:
|
| 269 |
+
"""
|
| 270 |
+
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch,
|
| 271 |
+
num_key_value_heads, seqlen, head_dim) to (batch, num_attention_heads, seqlen, head_dim)
|
| 272 |
+
"""
|
| 273 |
+
batch, num_key_value_heads, slen, head_dim = hidden_states.shape
|
| 274 |
+
if n_rep == 1:
|
| 275 |
+
return hidden_states
|
| 276 |
+
hidden_states = hidden_states[:, :, None, :, :].expand(batch, num_key_value_heads, n_rep, slen, head_dim)
|
| 277 |
+
return hidden_states.reshape(batch, num_key_value_heads * n_rep, slen, head_dim)
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
# Modified from transformers.model.llama.modeling_llama.LlamaAttention
|
| 281 |
+
class InternLM2Attention(nn.Module):
|
| 282 |
+
"""Multi-headed attention from 'Attention Is All You Need' paper"""
|
| 283 |
+
|
| 284 |
+
def __init__(self, config: InternLM2Config):
|
| 285 |
+
super().__init__()
|
| 286 |
+
self.config = config
|
| 287 |
+
self.hidden_size = config.hidden_size
|
| 288 |
+
self.num_heads = config.num_attention_heads
|
| 289 |
+
self.head_dim = self.hidden_size // self.num_heads
|
| 290 |
+
self.num_key_value_heads = config.num_key_value_heads
|
| 291 |
+
self.num_key_value_groups = self.num_heads // self.num_key_value_heads
|
| 292 |
+
self.max_position_embeddings = config.max_position_embeddings
|
| 293 |
+
self.is_causal = True
|
| 294 |
+
|
| 295 |
+
if (self.head_dim * self.num_heads) != self.hidden_size:
|
| 296 |
+
raise ValueError(
|
| 297 |
+
f'hidden_size must be divisible by num_heads (got `hidden_size`: {self.hidden_size}'
|
| 298 |
+
f' and `num_heads`: {self.num_heads}).'
|
| 299 |
+
)
|
| 300 |
+
|
| 301 |
+
self.wqkv = nn.Linear(
|
| 302 |
+
self.hidden_size,
|
| 303 |
+
(self.num_heads + 2 * self.num_key_value_heads) * self.head_dim,
|
| 304 |
+
bias=config.bias,
|
| 305 |
+
)
|
| 306 |
+
|
| 307 |
+
self.wo = nn.Linear(self.num_heads * self.head_dim, self.hidden_size, bias=config.bias)
|
| 308 |
+
self._init_rope()
|
| 309 |
+
|
| 310 |
+
def _init_rope(self):
|
| 311 |
+
if self.config.rope_scaling is None:
|
| 312 |
+
self.rotary_emb = InternLM2RotaryEmbedding(
|
| 313 |
+
self.head_dim,
|
| 314 |
+
max_position_embeddings=self.max_position_embeddings,
|
| 315 |
+
base=self.config.rope_theta,
|
| 316 |
+
)
|
| 317 |
+
else:
|
| 318 |
+
scaling_type = self.config.rope_scaling['type']
|
| 319 |
+
scaling_factor = self.config.rope_scaling['factor']
|
| 320 |
+
if scaling_type == 'dynamic':
|
| 321 |
+
self.rotary_emb = InternLM2DynamicNTKScalingRotaryEmbedding(
|
| 322 |
+
self.head_dim,
|
| 323 |
+
max_position_embeddings=self.max_position_embeddings,
|
| 324 |
+
base=self.config.rope_theta,
|
| 325 |
+
scaling_factor=scaling_factor,
|
| 326 |
+
)
|
| 327 |
+
elif scaling_type == 'linear':
|
| 328 |
+
self.rotary_emb = InternLM2LinearScalingRotaryEmbedding(
|
| 329 |
+
self.head_dim,
|
| 330 |
+
max_position_embeddings=self.max_position_embeddings,
|
| 331 |
+
base=self.config.rope_theta,
|
| 332 |
+
scaling_factor=scaling_factor,
|
| 333 |
+
)
|
| 334 |
+
else:
|
| 335 |
+
raise ValueError("Currently we only support rotary embedding's type being 'dynamic' or 'linear'.")
|
| 336 |
+
return self.rotary_emb
|
| 337 |
+
|
| 338 |
+
def _shape(self, tensor: torch.Tensor, seq_len: int, bsz: int):
|
| 339 |
+
return tensor.view(bsz, seq_len, self.num_heads, self.head_dim).transpose(1, 2).contiguous()
|
| 340 |
+
|
| 341 |
+
def forward(
|
| 342 |
+
self,
|
| 343 |
+
hidden_states: torch.Tensor,
|
| 344 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 345 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 346 |
+
past_key_value: Optional[Tuple[torch.Tensor]] = None,
|
| 347 |
+
output_attentions: bool = False,
|
| 348 |
+
use_cache: bool = False,
|
| 349 |
+
**kwargs,
|
| 350 |
+
) -> Tuple[torch.Tensor, Optional[torch.Tensor], Optional[Tuple[torch.Tensor]]]:
|
| 351 |
+
if 'padding_mask' in kwargs:
|
| 352 |
+
warnings.warn(
|
| 353 |
+
'Passing `padding_mask` is deprecated and will be removed in v4.37. '
|
| 354 |
+
'Please make sure use `attention_mask` instead.`'
|
| 355 |
+
)
|
| 356 |
+
|
| 357 |
+
bsz, q_len, _ = hidden_states.size()
|
| 358 |
+
|
| 359 |
+
qkv_states = self.wqkv(hidden_states)
|
| 360 |
+
|
| 361 |
+
qkv_states = rearrange(
|
| 362 |
+
qkv_states,
|
| 363 |
+
'b q (h gs d) -> b q h gs d',
|
| 364 |
+
gs=2 + self.num_key_value_groups,
|
| 365 |
+
d=self.head_dim,
|
| 366 |
+
)
|
| 367 |
+
|
| 368 |
+
query_states = qkv_states[..., : self.num_key_value_groups, :]
|
| 369 |
+
query_states = rearrange(query_states, 'b q h gs d -> b q (h gs) d')
|
| 370 |
+
key_states = qkv_states[..., -2, :]
|
| 371 |
+
value_states = qkv_states[..., -1, :]
|
| 372 |
+
|
| 373 |
+
query_states = query_states.transpose(1, 2)
|
| 374 |
+
key_states = key_states.transpose(1, 2)
|
| 375 |
+
value_states = value_states.transpose(1, 2)
|
| 376 |
+
|
| 377 |
+
kv_seq_len = key_states.shape[-2]
|
| 378 |
+
if past_key_value is not None:
|
| 379 |
+
kv_seq_len += past_key_value[0].shape[-2]
|
| 380 |
+
cos, sin = self.rotary_emb(value_states, seq_len=kv_seq_len)
|
| 381 |
+
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin, position_ids)
|
| 382 |
+
|
| 383 |
+
if past_key_value is not None:
|
| 384 |
+
# reuse k, v, self_attention
|
| 385 |
+
key_states = torch.cat([past_key_value[0], key_states], dim=2)
|
| 386 |
+
value_states = torch.cat([past_key_value[1], value_states], dim=2)
|
| 387 |
+
|
| 388 |
+
past_key_value = (key_states, value_states) if use_cache else None
|
| 389 |
+
|
| 390 |
+
key_states = repeat_kv(key_states, self.num_key_value_groups)
|
| 391 |
+
value_states = repeat_kv(value_states, self.num_key_value_groups)
|
| 392 |
+
|
| 393 |
+
attn_weights = torch.matmul(query_states, key_states.transpose(2, 3)) / math.sqrt(self.head_dim)
|
| 394 |
+
|
| 395 |
+
if attn_weights.size() != (bsz, self.num_heads, q_len, kv_seq_len):
|
| 396 |
+
raise ValueError(
|
| 397 |
+
f'Attention weights should be of size {(bsz, self.num_heads, q_len, kv_seq_len)}, but is'
|
| 398 |
+
f' {attn_weights.size()}'
|
| 399 |
+
)
|
| 400 |
+
|
| 401 |
+
if attention_mask is not None:
|
| 402 |
+
if attention_mask.size() != (bsz, 1, q_len, kv_seq_len):
|
| 403 |
+
raise ValueError(
|
| 404 |
+
f'Attention mask should be of size {(bsz, 1, q_len, kv_seq_len)}, but is {attention_mask.size()}'
|
| 405 |
+
)
|
| 406 |
+
attn_weights = attn_weights + attention_mask
|
| 407 |
+
|
| 408 |
+
# upcast attention to fp32
|
| 409 |
+
attn_weights = nn.functional.softmax(attn_weights, dim=-1, dtype=torch.float32).to(query_states.dtype)
|
| 410 |
+
attn_output = torch.matmul(attn_weights, value_states)
|
| 411 |
+
|
| 412 |
+
if attn_output.size() != (bsz, self.num_heads, q_len, self.head_dim):
|
| 413 |
+
raise ValueError(
|
| 414 |
+
f'`attn_output` should be of size {(bsz, self.num_heads, q_len, self.head_dim)}, but is'
|
| 415 |
+
f' {attn_output.size()}'
|
| 416 |
+
)
|
| 417 |
+
|
| 418 |
+
attn_output = attn_output.transpose(1, 2).contiguous()
|
| 419 |
+
attn_output = attn_output.reshape(bsz, q_len, self.hidden_size)
|
| 420 |
+
|
| 421 |
+
attn_output = self.wo(attn_output)
|
| 422 |
+
|
| 423 |
+
if not output_attentions:
|
| 424 |
+
attn_weights = None
|
| 425 |
+
|
| 426 |
+
return attn_output, attn_weights, past_key_value
|
| 427 |
+
|
| 428 |
+
|
| 429 |
+
# Modified from transformers.model.llama.modeling_llama.InternLM2FlashAttention2
|
| 430 |
+
class InternLM2FlashAttention2(InternLM2Attention):
|
| 431 |
+
"""
|
| 432 |
+
InternLM2 flash attention module. This module inherits from `InternLM2Attention` as the weights of the module stays
|
| 433 |
+
untouched. The only required change would be on the forward pass where it needs to correctly call the public API of
|
| 434 |
+
flash attention and deal with padding tokens in case the input contains any of them.
|
| 435 |
+
"""
|
| 436 |
+
|
| 437 |
+
def forward(
|
| 438 |
+
self,
|
| 439 |
+
hidden_states: torch.Tensor,
|
| 440 |
+
attention_mask: Optional[torch.LongTensor] = None,
|
| 441 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 442 |
+
past_key_value: Optional[Tuple[torch.Tensor]] = None,
|
| 443 |
+
output_attentions: bool = False,
|
| 444 |
+
use_cache: bool = False,
|
| 445 |
+
**kwargs,
|
| 446 |
+
) -> Tuple[torch.Tensor, Optional[torch.Tensor], Optional[Tuple[torch.Tensor]]]:
|
| 447 |
+
# InternLM2FlashAttention2 attention does not support output_attentions
|
| 448 |
+
if 'padding_mask' in kwargs:
|
| 449 |
+
warnings.warn(
|
| 450 |
+
'Passing `padding_mask` is deprecated and will be removed in v4.37. '
|
| 451 |
+
'Please make sure use `attention_mask` instead.`'
|
| 452 |
+
)
|
| 453 |
+
|
| 454 |
+
# overwrite attention_mask with padding_mask
|
| 455 |
+
attention_mask = kwargs.pop('padding_mask')
|
| 456 |
+
|
| 457 |
+
output_attentions = False
|
| 458 |
+
|
| 459 |
+
bsz, q_len, _ = hidden_states.size()
|
| 460 |
+
|
| 461 |
+
qkv_states = self.wqkv(hidden_states)
|
| 462 |
+
|
| 463 |
+
qkv_states = rearrange(
|
| 464 |
+
qkv_states,
|
| 465 |
+
'b q (h gs d) -> b q h gs d',
|
| 466 |
+
gs=2 + self.num_key_value_groups,
|
| 467 |
+
d=self.head_dim,
|
| 468 |
+
)
|
| 469 |
+
|
| 470 |
+
query_states = qkv_states[..., : self.num_key_value_groups, :]
|
| 471 |
+
query_states = rearrange(query_states, 'b q h gs d -> b q (h gs) d')
|
| 472 |
+
key_states = qkv_states[..., -2, :]
|
| 473 |
+
value_states = qkv_states[..., -1, :]
|
| 474 |
+
|
| 475 |
+
query_states = query_states.transpose(1, 2)
|
| 476 |
+
key_states = key_states.transpose(1, 2)
|
| 477 |
+
value_states = value_states.transpose(1, 2)
|
| 478 |
+
|
| 479 |
+
kv_seq_len = key_states.shape[-2]
|
| 480 |
+
if past_key_value is not None:
|
| 481 |
+
kv_seq_len += past_key_value[0].shape[-2]
|
| 482 |
+
|
| 483 |
+
cos, sin = self.rotary_emb(value_states, seq_len=kv_seq_len)
|
| 484 |
+
|
| 485 |
+
query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin, position_ids)
|
| 486 |
+
|
| 487 |
+
if past_key_value is not None:
|
| 488 |
+
# reuse k, v, self_attention
|
| 489 |
+
key_states = torch.cat([past_key_value[0], key_states], dim=2)
|
| 490 |
+
value_states = torch.cat([past_key_value[1], value_states], dim=2)
|
| 491 |
+
|
| 492 |
+
past_key_value = (key_states, value_states) if use_cache else None
|
| 493 |
+
|
| 494 |
+
query_states = query_states.transpose(1, 2)
|
| 495 |
+
key_states = key_states.transpose(1, 2)
|
| 496 |
+
value_states = value_states.transpose(1, 2)
|
| 497 |
+
|
| 498 |
+
attn_output = self._flash_attention_forward(
|
| 499 |
+
query_states, key_states, value_states, attention_mask, q_len
|
| 500 |
+
)
|
| 501 |
+
attn_output = attn_output.reshape(bsz, q_len, self.hidden_size).contiguous()
|
| 502 |
+
attn_output = self.wo(attn_output)
|
| 503 |
+
|
| 504 |
+
if not output_attentions:
|
| 505 |
+
attn_weights = None
|
| 506 |
+
|
| 507 |
+
return attn_output, attn_weights, past_key_value
|
| 508 |
+
|
| 509 |
+
def _flash_attention_forward(
|
| 510 |
+
self, query_states, key_states, value_states, attention_mask, query_length, dropout=0.0, softmax_scale=None
|
| 511 |
+
):
|
| 512 |
+
"""
|
| 513 |
+
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token
|
| 514 |
+
first unpad the input, then computes the attention scores and pad the final attention scores.
|
| 515 |
+
|
| 516 |
+
Args:
|
| 517 |
+
query_states (`torch.Tensor`):
|
| 518 |
+
Input query states to be passed to Flash Attention API
|
| 519 |
+
key_states (`torch.Tensor`):
|
| 520 |
+
Input key states to be passed to Flash Attention API
|
| 521 |
+
value_states (`torch.Tensor`):
|
| 522 |
+
Input value states to be passed to Flash Attention API
|
| 523 |
+
attention_mask (`torch.Tensor`):
|
| 524 |
+
The padding mask - corresponds to a tensor of size `(batch_size, seq_len)` where 0 stands for the
|
| 525 |
+
position of padding tokens and 1 for the position of non-padding tokens.
|
| 526 |
+
dropout (`int`, *optional*):
|
| 527 |
+
Attention dropout
|
| 528 |
+
softmax_scale (`float`, *optional*):
|
| 529 |
+
The scaling of QK^T before applying softmax. Default to 1 / sqrt(head_dim)
|
| 530 |
+
"""
|
| 531 |
+
# Contains at least one padding token in the sequence
|
| 532 |
+
causal = self.is_causal and query_length != 1
|
| 533 |
+
if attention_mask is not None:
|
| 534 |
+
batch_size = query_states.shape[0]
|
| 535 |
+
query_states, key_states, value_states, indices_q, cu_seq_lens, max_seq_lens = self._unpad_input(
|
| 536 |
+
query_states, key_states, value_states, attention_mask, query_length
|
| 537 |
+
)
|
| 538 |
+
|
| 539 |
+
cu_seqlens_q, cu_seqlens_k = cu_seq_lens
|
| 540 |
+
max_seqlen_in_batch_q, max_seqlen_in_batch_k = max_seq_lens
|
| 541 |
+
|
| 542 |
+
attn_output_unpad = flash_attn_varlen_func(
|
| 543 |
+
query_states,
|
| 544 |
+
key_states,
|
| 545 |
+
value_states,
|
| 546 |
+
cu_seqlens_q=cu_seqlens_q,
|
| 547 |
+
cu_seqlens_k=cu_seqlens_k,
|
| 548 |
+
max_seqlen_q=max_seqlen_in_batch_q,
|
| 549 |
+
max_seqlen_k=max_seqlen_in_batch_k,
|
| 550 |
+
dropout_p=dropout,
|
| 551 |
+
softmax_scale=softmax_scale,
|
| 552 |
+
causal=causal,
|
| 553 |
+
)
|
| 554 |
+
|
| 555 |
+
attn_output = pad_input(attn_output_unpad, indices_q, batch_size, query_length)
|
| 556 |
+
else:
|
| 557 |
+
attn_output = flash_attn_func(
|
| 558 |
+
query_states, key_states, value_states, dropout, softmax_scale=softmax_scale, causal=causal
|
| 559 |
+
)
|
| 560 |
+
|
| 561 |
+
return attn_output
|
| 562 |
+
|
| 563 |
+
def _unpad_input(self, query_layer, key_layer, value_layer, attention_mask, query_length):
|
| 564 |
+
indices_k, cu_seqlens_k, max_seqlen_in_batch_k = _get_unpad_data(attention_mask)
|
| 565 |
+
batch_size, kv_seq_len, num_key_value_heads, head_dim = key_layer.shape
|
| 566 |
+
|
| 567 |
+
key_layer = index_first_axis(
|
| 568 |
+
key_layer.reshape(batch_size * kv_seq_len, num_key_value_heads, head_dim), indices_k
|
| 569 |
+
)
|
| 570 |
+
value_layer = index_first_axis(
|
| 571 |
+
value_layer.reshape(batch_size * kv_seq_len, num_key_value_heads, head_dim), indices_k
|
| 572 |
+
)
|
| 573 |
+
|
| 574 |
+
if query_length == kv_seq_len:
|
| 575 |
+
query_layer = index_first_axis(
|
| 576 |
+
query_layer.reshape(batch_size * kv_seq_len, self.num_heads, head_dim), indices_k
|
| 577 |
+
)
|
| 578 |
+
cu_seqlens_q = cu_seqlens_k
|
| 579 |
+
max_seqlen_in_batch_q = max_seqlen_in_batch_k
|
| 580 |
+
indices_q = indices_k
|
| 581 |
+
elif query_length == 1:
|
| 582 |
+
max_seqlen_in_batch_q = 1
|
| 583 |
+
cu_seqlens_q = torch.arange(
|
| 584 |
+
batch_size + 1, dtype=torch.int32, device=query_layer.device
|
| 585 |
+
) # There is a memcpy here, that is very bad.
|
| 586 |
+
indices_q = cu_seqlens_q[:-1]
|
| 587 |
+
query_layer = query_layer.squeeze(1)
|
| 588 |
+
else:
|
| 589 |
+
# The -q_len: slice assumes left padding.
|
| 590 |
+
attention_mask = attention_mask[:, -query_length:]
|
| 591 |
+
query_layer, indices_q, cu_seqlens_q, max_seqlen_in_batch_q = unpad_input(query_layer, attention_mask)
|
| 592 |
+
|
| 593 |
+
return (
|
| 594 |
+
query_layer,
|
| 595 |
+
key_layer,
|
| 596 |
+
value_layer,
|
| 597 |
+
indices_q.to(torch.int64),
|
| 598 |
+
(cu_seqlens_q, cu_seqlens_k),
|
| 599 |
+
(max_seqlen_in_batch_q, max_seqlen_in_batch_k),
|
| 600 |
+
)
|
| 601 |
+
|
| 602 |
+
|
| 603 |
+
INTERNLM2_ATTENTION_CLASSES = {
|
| 604 |
+
'eager': InternLM2Attention,
|
| 605 |
+
'flash_attention_2': InternLM2FlashAttention2,
|
| 606 |
+
}
|
| 607 |
+
|
| 608 |
+
|
| 609 |
+
# Modified from transformers.model.llama.modeling_llama.LlamaDecoderLayer
|
| 610 |
+
class InternLM2DecoderLayer(nn.Module):
|
| 611 |
+
def __init__(self, config: InternLM2Config):
|
| 612 |
+
super().__init__()
|
| 613 |
+
self.hidden_size = config.hidden_size
|
| 614 |
+
|
| 615 |
+
self.attention = INTERNLM2_ATTENTION_CLASSES[config.attn_implementation](config=config)
|
| 616 |
+
|
| 617 |
+
self.feed_forward = InternLM2MLP(config)
|
| 618 |
+
self.attention_norm = InternLM2RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 619 |
+
self.ffn_norm = InternLM2RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 620 |
+
|
| 621 |
+
def forward(
|
| 622 |
+
self,
|
| 623 |
+
hidden_states: torch.Tensor,
|
| 624 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 625 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 626 |
+
past_key_value: Optional[Tuple[torch.Tensor]] = None,
|
| 627 |
+
output_attentions: Optional[bool] = False,
|
| 628 |
+
use_cache: Optional[bool] = False,
|
| 629 |
+
**kwargs,
|
| 630 |
+
) -> Tuple[torch.FloatTensor, Optional[Tuple[torch.FloatTensor, torch.FloatTensor]]]:
|
| 631 |
+
"""
|
| 632 |
+
Args:
|
| 633 |
+
hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)`
|
| 634 |
+
attention_mask (`torch.FloatTensor`, *optional*):
|
| 635 |
+
attention mask of size `(batch_size, sequence_length)` if flash attention is used or `(batch_size, 1,
|
| 636 |
+
query_sequence_length, key_sequence_length)` if default attention is used.
|
| 637 |
+
output_attentions (`bool`, *optional*):
|
| 638 |
+
Whether or not to return the attentions tensors of all attention layers. See `attentions` under
|
| 639 |
+
returned tensors for more detail.
|
| 640 |
+
use_cache (`bool`, *optional*):
|
| 641 |
+
If set to `True`, `past_key_values` key value states are returned and can be used to speed up decoding
|
| 642 |
+
(see `past_key_values`).
|
| 643 |
+
past_key_value (`Tuple(torch.FloatTensor)`, *optional*): cached past key and value projection states
|
| 644 |
+
"""
|
| 645 |
+
if 'padding_mask' in kwargs:
|
| 646 |
+
warnings.warn(
|
| 647 |
+
'Passing `padding_mask` is deprecated and will be removed in v4.37. '
|
| 648 |
+
'Please make sure use `attention_mask` instead.`'
|
| 649 |
+
)
|
| 650 |
+
|
| 651 |
+
residual = hidden_states
|
| 652 |
+
|
| 653 |
+
hidden_states = self.attention_norm(hidden_states)
|
| 654 |
+
|
| 655 |
+
# Self Attention
|
| 656 |
+
hidden_states, self_attn_weights, present_key_value = self.attention(
|
| 657 |
+
hidden_states=hidden_states,
|
| 658 |
+
attention_mask=attention_mask,
|
| 659 |
+
position_ids=position_ids,
|
| 660 |
+
past_key_value=past_key_value,
|
| 661 |
+
output_attentions=output_attentions,
|
| 662 |
+
use_cache=use_cache,
|
| 663 |
+
**kwargs,
|
| 664 |
+
)
|
| 665 |
+
hidden_states = residual + hidden_states
|
| 666 |
+
|
| 667 |
+
# Fully Connected
|
| 668 |
+
residual = hidden_states
|
| 669 |
+
hidden_states = self.ffn_norm(hidden_states)
|
| 670 |
+
hidden_states = self.feed_forward(hidden_states)
|
| 671 |
+
hidden_states = residual + hidden_states
|
| 672 |
+
|
| 673 |
+
outputs = (hidden_states,)
|
| 674 |
+
|
| 675 |
+
if output_attentions:
|
| 676 |
+
outputs += (self_attn_weights,)
|
| 677 |
+
|
| 678 |
+
if use_cache:
|
| 679 |
+
outputs += (present_key_value,)
|
| 680 |
+
|
| 681 |
+
return outputs
|
| 682 |
+
|
| 683 |
+
|
| 684 |
+
InternLM2_START_DOCSTRING = r"""
|
| 685 |
+
This model inherits from [`PreTrainedModel`]. Check the superclass documentation for the generic methods the
|
| 686 |
+
library implements for all its model (such as downloading or saving, resizing the input embeddings, pruning heads
|
| 687 |
+
etc.)
|
| 688 |
+
|
| 689 |
+
This model is also a PyTorch [torch.nn.Module](https://pytorch.org/docs/stable/nn.html#torch.nn.Module) subclass.
|
| 690 |
+
Use it as a regular PyTorch Module and refer to the PyTorch documentation for all matter related to general usage
|
| 691 |
+
and behavior.
|
| 692 |
+
|
| 693 |
+
Parameters:
|
| 694 |
+
config ([`InternLM2Config`]):
|
| 695 |
+
Model configuration class with all the parameters of the model. Initializing with a config file does not
|
| 696 |
+
load the weights associated with the model, only the configuration. Check out the
|
| 697 |
+
[`~PreTrainedModel.from_pretrained`] method to load the model weights.
|
| 698 |
+
"""
|
| 699 |
+
|
| 700 |
+
|
| 701 |
+
# Copied from transformers.models.llama.modeling_llama.LlamaPreTrainedModel with Llama->InternLM2
|
| 702 |
+
@add_start_docstrings(
|
| 703 |
+
'The bare InternLM2 Model outputting raw hidden-states without any specific head on top.',
|
| 704 |
+
InternLM2_START_DOCSTRING,
|
| 705 |
+
)
|
| 706 |
+
class InternLM2PreTrainedModel(PreTrainedModel):
|
| 707 |
+
config_class = InternLM2Config
|
| 708 |
+
base_model_prefix = 'model'
|
| 709 |
+
supports_gradient_checkpointing = True
|
| 710 |
+
_no_split_modules = ['InternLM2DecoderLayer']
|
| 711 |
+
_skip_keys_device_placement = 'past_key_values'
|
| 712 |
+
_supports_flash_attn_2 = True
|
| 713 |
+
|
| 714 |
+
def _init_weights(self, module):
|
| 715 |
+
std = self.config.initializer_range
|
| 716 |
+
if isinstance(module, nn.Linear):
|
| 717 |
+
module.weight.data.normal_(mean=0.0, std=std)
|
| 718 |
+
if module.bias is not None:
|
| 719 |
+
module.bias.data.zero_()
|
| 720 |
+
elif isinstance(module, nn.Embedding):
|
| 721 |
+
module.weight.data.normal_(mean=0.0, std=std)
|
| 722 |
+
if module.padding_idx is not None:
|
| 723 |
+
module.weight.data[module.padding_idx].zero_()
|
| 724 |
+
|
| 725 |
+
|
| 726 |
+
InternLM2_INPUTS_DOCSTRING = r"""
|
| 727 |
+
Args:
|
| 728 |
+
input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`):
|
| 729 |
+
Indices of input sequence tokens in the vocabulary. Padding will be ignored by default should you provide
|
| 730 |
+
it.
|
| 731 |
+
|
| 732 |
+
Indices can be obtained using [`AutoTokenizer`]. See [`PreTrainedTokenizer.encode`] and
|
| 733 |
+
[`PreTrainedTokenizer.__call__`] for details.
|
| 734 |
+
|
| 735 |
+
[What are input IDs?](../glossary#input-ids)
|
| 736 |
+
attention_mask (`torch.Tensor` of shape `(batch_size, sequence_length)`, *optional*):
|
| 737 |
+
Mask to avoid performing attention on padding token indices. Mask values selected in `[0, 1]`:
|
| 738 |
+
|
| 739 |
+
- 1 for tokens that are **not masked**,
|
| 740 |
+
- 0 for tokens that are **masked**.
|
| 741 |
+
|
| 742 |
+
[What are attention masks?](../glossary#attention-mask)
|
| 743 |
+
|
| 744 |
+
Indices can be obtained using [`AutoTokenizer`]. See [`PreTrainedTokenizer.encode`] and
|
| 745 |
+
[`PreTrainedTokenizer.__call__`] for details.
|
| 746 |
+
|
| 747 |
+
If `past_key_values` is used, optionally only the last `input_ids` have to be input (see
|
| 748 |
+
`past_key_values`).
|
| 749 |
+
|
| 750 |
+
If you want to change padding behavior, you should read [`modeling_opt._prepare_decoder_attention_mask`]
|
| 751 |
+
and modify to your needs. See diagram 1 in [the paper](https://arxiv.org/abs/1910.13461) for more
|
| 752 |
+
information on the default strategy.
|
| 753 |
+
|
| 754 |
+
- 1 indicates the head is **not masked**,
|
| 755 |
+
- 0 indicates the head is **masked**.
|
| 756 |
+
position_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
|
| 757 |
+
Indices of positions of each input sequence tokens in the position embeddings. Selected in the range `[0,
|
| 758 |
+
config.n_positions - 1]`.
|
| 759 |
+
|
| 760 |
+
[What are position IDs?](../glossary#position-ids)
|
| 761 |
+
past_key_values (`tuple(tuple(torch.FloatTensor))`, *optional*, returned when `use_cache=True` is passed or
|
| 762 |
+
when `config.use_cache=True`):
|
| 763 |
+
Tuple of `tuple(torch.FloatTensor)` of length `config.n_layers`, with each tuple having 2 tensors of shape
|
| 764 |
+
`(batch_size, num_heads, sequence_length, embed_size_per_head)`) and 2 additional tensors of shape
|
| 765 |
+
`(batch_size, num_heads, decoder_sequence_length, embed_size_per_head)`.
|
| 766 |
+
|
| 767 |
+
Contains pre-computed hidden-states (key and values in the self-attention blocks and in the cross-attention
|
| 768 |
+
blocks) that can be used (see `past_key_values` input) to speed up sequential decoding.
|
| 769 |
+
|
| 770 |
+
If `past_key_values` are used, the user can optionally input only the last `input_ids` (those that don't
|
| 771 |
+
have their past key value states given to this model) of shape `(batch_size, 1)` instead of all `input_ids`
|
| 772 |
+
of shape `(batch_size, sequence_length)`.
|
| 773 |
+
inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, *optional*):
|
| 774 |
+
Optionally, instead of passing `input_ids` you can choose to directly pass an embedded representation. This
|
| 775 |
+
is useful if you want more control over how to convert `input_ids` indices into associated vectors than the
|
| 776 |
+
model's internal embedding lookup matrix.
|
| 777 |
+
use_cache (`bool`, *optional*):
|
| 778 |
+
If set to `True`, `past_key_values` key value states are returned and can be used to speed up decoding (see
|
| 779 |
+
`past_key_values`).
|
| 780 |
+
output_attentions (`bool`, *optional*):
|
| 781 |
+
Whether or not to return the attentions tensors of all attention layers. See `attentions` under returned
|
| 782 |
+
tensors for more detail.
|
| 783 |
+
output_hidden_states (`bool`, *optional*):
|
| 784 |
+
Whether or not to return the hidden states of all layers. See `hidden_states` under returned tensors for
|
| 785 |
+
more detail.
|
| 786 |
+
return_dict (`bool`, *optional*):
|
| 787 |
+
Whether or not to return a [`~utils.ModelOutput`] instead of a plain tuple.
|
| 788 |
+
"""
|
| 789 |
+
|
| 790 |
+
|
| 791 |
+
# Modified from transformers.model.llama.modeling_llama.LlamaModel
|
| 792 |
+
@add_start_docstrings(
|
| 793 |
+
'The bare InternLM2 Model outputting raw hidden-states without any specific head on top.',
|
| 794 |
+
InternLM2_START_DOCSTRING,
|
| 795 |
+
)
|
| 796 |
+
class InternLM2Model(InternLM2PreTrainedModel):
|
| 797 |
+
"""
|
| 798 |
+
Transformer decoder consisting of *config.num_hidden_layers* layers. Each layer is a [`InternLM2DecoderLayer`]
|
| 799 |
+
|
| 800 |
+
Args:
|
| 801 |
+
config: InternLM2Config
|
| 802 |
+
"""
|
| 803 |
+
|
| 804 |
+
_auto_class = 'AutoModel'
|
| 805 |
+
|
| 806 |
+
def __init__(self, config: InternLM2Config):
|
| 807 |
+
super().__init__(config)
|
| 808 |
+
self.padding_idx = config.pad_token_id
|
| 809 |
+
self.vocab_size = config.vocab_size
|
| 810 |
+
self.config = config
|
| 811 |
+
if not has_flash_attn:
|
| 812 |
+
self.config.attn_implementation = 'eager'
|
| 813 |
+
print('Warning: Flash attention is not available, using eager attention instead.')
|
| 814 |
+
|
| 815 |
+
self.tok_embeddings = nn.Embedding(config.vocab_size, config.hidden_size, self.padding_idx)
|
| 816 |
+
|
| 817 |
+
self.layers = nn.ModuleList([InternLM2DecoderLayer(config) for _ in range(config.num_hidden_layers)])
|
| 818 |
+
self.norm = InternLM2RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
|
| 819 |
+
|
| 820 |
+
self.gradient_checkpointing = False
|
| 821 |
+
# Initialize weights and apply final processing
|
| 822 |
+
self.post_init()
|
| 823 |
+
|
| 824 |
+
def get_input_embeddings(self):
|
| 825 |
+
return self.tok_embeddings
|
| 826 |
+
|
| 827 |
+
def set_input_embeddings(self, value):
|
| 828 |
+
self.tok_embeddings = value
|
| 829 |
+
|
| 830 |
+
def _prepare_decoder_attention_mask(self, attention_mask, input_shape, inputs_embeds, past_key_values_length):
|
| 831 |
+
# create causal mask
|
| 832 |
+
# [bsz, seq_len] -> [bsz, 1, tgt_seq_len, src_seq_len]
|
| 833 |
+
combined_attention_mask = None
|
| 834 |
+
if input_shape[-1] > 1:
|
| 835 |
+
combined_attention_mask = _make_causal_mask(
|
| 836 |
+
input_shape,
|
| 837 |
+
inputs_embeds.dtype,
|
| 838 |
+
device=inputs_embeds.device,
|
| 839 |
+
past_key_values_length=past_key_values_length,
|
| 840 |
+
)
|
| 841 |
+
|
| 842 |
+
if attention_mask is not None:
|
| 843 |
+
# [bsz, seq_len] -> [bsz, 1, tgt_seq_len, src_seq_len]
|
| 844 |
+
expanded_attn_mask = _expand_mask(attention_mask, inputs_embeds.dtype, tgt_len=input_shape[-1]).to(
|
| 845 |
+
inputs_embeds.device
|
| 846 |
+
)
|
| 847 |
+
combined_attention_mask = (
|
| 848 |
+
expanded_attn_mask if combined_attention_mask is None else expanded_attn_mask + combined_attention_mask
|
| 849 |
+
)
|
| 850 |
+
|
| 851 |
+
return combined_attention_mask
|
| 852 |
+
|
| 853 |
+
@add_start_docstrings_to_model_forward(InternLM2_INPUTS_DOCSTRING)
|
| 854 |
+
def forward(
|
| 855 |
+
self,
|
| 856 |
+
input_ids: torch.LongTensor = None,
|
| 857 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 858 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 859 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
| 860 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 861 |
+
use_cache: Optional[bool] = None,
|
| 862 |
+
output_attentions: Optional[bool] = None,
|
| 863 |
+
output_hidden_states: Optional[bool] = None,
|
| 864 |
+
return_dict: Optional[bool] = None,
|
| 865 |
+
) -> Union[Tuple, BaseModelOutputWithPast]:
|
| 866 |
+
output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
|
| 867 |
+
output_hidden_states = (
|
| 868 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 869 |
+
)
|
| 870 |
+
use_cache = use_cache if use_cache is not None else self.config.use_cache
|
| 871 |
+
|
| 872 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 873 |
+
|
| 874 |
+
if self.config.attn_implementation == 'flash_attention_2':
|
| 875 |
+
_import_flash_attn()
|
| 876 |
+
|
| 877 |
+
# retrieve input_ids and inputs_embeds
|
| 878 |
+
if input_ids is not None and inputs_embeds is not None:
|
| 879 |
+
raise ValueError('You cannot specify both input_ids and inputs_embeds at the same time')
|
| 880 |
+
elif input_ids is not None:
|
| 881 |
+
batch_size, seq_length = input_ids.shape[:2]
|
| 882 |
+
elif inputs_embeds is not None:
|
| 883 |
+
batch_size, seq_length = inputs_embeds.shape[:2]
|
| 884 |
+
else:
|
| 885 |
+
raise ValueError('You have to specify either input_ids or inputs_embeds')
|
| 886 |
+
|
| 887 |
+
seq_length_with_past = seq_length
|
| 888 |
+
past_key_values_length = 0
|
| 889 |
+
if past_key_values is not None:
|
| 890 |
+
past_key_values_length = past_key_values[0][0].shape[2]
|
| 891 |
+
seq_length_with_past = seq_length_with_past + past_key_values_length
|
| 892 |
+
|
| 893 |
+
if position_ids is None:
|
| 894 |
+
device = input_ids.device if input_ids is not None else inputs_embeds.device
|
| 895 |
+
position_ids = torch.arange(
|
| 896 |
+
past_key_values_length, seq_length + past_key_values_length, dtype=torch.long, device=device
|
| 897 |
+
)
|
| 898 |
+
position_ids = position_ids.unsqueeze(0)
|
| 899 |
+
|
| 900 |
+
if inputs_embeds is None:
|
| 901 |
+
inputs_embeds = self.tok_embeddings(input_ids)
|
| 902 |
+
|
| 903 |
+
if self.config.attn_implementation == 'flash_attention_2':
|
| 904 |
+
# 2d mask is passed through the layers
|
| 905 |
+
attention_mask = attention_mask if (attention_mask is not None and 0 in attention_mask) else None
|
| 906 |
+
else:
|
| 907 |
+
if attention_mask is None:
|
| 908 |
+
attention_mask = torch.ones(
|
| 909 |
+
(batch_size, seq_length_with_past), dtype=torch.bool, device=inputs_embeds.device
|
| 910 |
+
)
|
| 911 |
+
attention_mask = self._prepare_decoder_attention_mask(
|
| 912 |
+
attention_mask, (batch_size, seq_length), inputs_embeds, past_key_values_length
|
| 913 |
+
)
|
| 914 |
+
|
| 915 |
+
# embed positions
|
| 916 |
+
hidden_states = inputs_embeds
|
| 917 |
+
|
| 918 |
+
if self.gradient_checkpointing and self.training:
|
| 919 |
+
if use_cache:
|
| 920 |
+
logger.warning_once(
|
| 921 |
+
'`use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`...'
|
| 922 |
+
)
|
| 923 |
+
use_cache = False
|
| 924 |
+
|
| 925 |
+
# decoder layers
|
| 926 |
+
all_hidden_states = () if output_hidden_states else None
|
| 927 |
+
all_self_attns = () if output_attentions else None
|
| 928 |
+
next_decoder_cache = () if use_cache else None
|
| 929 |
+
|
| 930 |
+
for idx, decoder_layer in enumerate(self.layers):
|
| 931 |
+
if output_hidden_states:
|
| 932 |
+
all_hidden_states += (hidden_states,)
|
| 933 |
+
|
| 934 |
+
past_key_value = past_key_values[idx] if past_key_values is not None else None
|
| 935 |
+
|
| 936 |
+
if self.gradient_checkpointing and self.training:
|
| 937 |
+
|
| 938 |
+
def create_custom_forward(module):
|
| 939 |
+
def custom_forward(*inputs):
|
| 940 |
+
# None for past_key_value
|
| 941 |
+
return module(*inputs, output_attentions, None)
|
| 942 |
+
|
| 943 |
+
return custom_forward
|
| 944 |
+
|
| 945 |
+
layer_outputs = torch.utils.checkpoint.checkpoint(
|
| 946 |
+
create_custom_forward(decoder_layer),
|
| 947 |
+
hidden_states,
|
| 948 |
+
attention_mask,
|
| 949 |
+
position_ids,
|
| 950 |
+
None,
|
| 951 |
+
)
|
| 952 |
+
else:
|
| 953 |
+
layer_outputs = decoder_layer(
|
| 954 |
+
hidden_states,
|
| 955 |
+
attention_mask=attention_mask,
|
| 956 |
+
position_ids=position_ids,
|
| 957 |
+
past_key_value=past_key_value,
|
| 958 |
+
output_attentions=output_attentions,
|
| 959 |
+
use_cache=use_cache,
|
| 960 |
+
)
|
| 961 |
+
|
| 962 |
+
hidden_states = layer_outputs[0]
|
| 963 |
+
|
| 964 |
+
if use_cache:
|
| 965 |
+
next_decoder_cache += (layer_outputs[2 if output_attentions else 1],)
|
| 966 |
+
|
| 967 |
+
if output_attentions:
|
| 968 |
+
all_self_attns += (layer_outputs[1],)
|
| 969 |
+
|
| 970 |
+
hidden_states = self.norm(hidden_states)
|
| 971 |
+
|
| 972 |
+
# add hidden states from the last decoder layer
|
| 973 |
+
if output_hidden_states:
|
| 974 |
+
all_hidden_states += (hidden_states,)
|
| 975 |
+
|
| 976 |
+
next_cache = next_decoder_cache if use_cache else None
|
| 977 |
+
if not return_dict:
|
| 978 |
+
return tuple(v for v in [hidden_states, next_cache, all_hidden_states, all_self_attns] if v is not None)
|
| 979 |
+
return BaseModelOutputWithPast(
|
| 980 |
+
last_hidden_state=hidden_states,
|
| 981 |
+
past_key_values=next_cache,
|
| 982 |
+
hidden_states=all_hidden_states,
|
| 983 |
+
attentions=all_self_attns,
|
| 984 |
+
)
|
| 985 |
+
|
| 986 |
+
|
| 987 |
+
# Modified from transformers.model.llama.modeling_llama.LlamaForCausalLM
|
| 988 |
+
class InternLM2ForCausalLM(InternLM2PreTrainedModel):
|
| 989 |
+
_auto_class = 'AutoModelForCausalLM'
|
| 990 |
+
|
| 991 |
+
_tied_weights_keys = ['output.weight']
|
| 992 |
+
|
| 993 |
+
def __init__(self, config):
|
| 994 |
+
super().__init__(config)
|
| 995 |
+
self.model = InternLM2Model(config)
|
| 996 |
+
self.vocab_size = config.vocab_size
|
| 997 |
+
self.output = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
|
| 998 |
+
|
| 999 |
+
# Initialize weights and apply final processing
|
| 1000 |
+
self.post_init()
|
| 1001 |
+
|
| 1002 |
+
def get_input_embeddings(self):
|
| 1003 |
+
return self.model.tok_embeddings
|
| 1004 |
+
|
| 1005 |
+
def set_input_embeddings(self, value):
|
| 1006 |
+
self.model.tok_embeddings = value
|
| 1007 |
+
|
| 1008 |
+
def get_output_embeddings(self):
|
| 1009 |
+
return self.output
|
| 1010 |
+
|
| 1011 |
+
def set_output_embeddings(self, new_embeddings):
|
| 1012 |
+
self.output = new_embeddings
|
| 1013 |
+
|
| 1014 |
+
def set_decoder(self, decoder):
|
| 1015 |
+
self.model = decoder
|
| 1016 |
+
|
| 1017 |
+
def get_decoder(self):
|
| 1018 |
+
return self.model
|
| 1019 |
+
|
| 1020 |
+
@add_start_docstrings_to_model_forward(InternLM2_INPUTS_DOCSTRING)
|
| 1021 |
+
@replace_return_docstrings(output_type=CausalLMOutputWithPast, config_class=_CONFIG_FOR_DOC)
|
| 1022 |
+
def forward(
|
| 1023 |
+
self,
|
| 1024 |
+
input_ids: torch.LongTensor = None,
|
| 1025 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 1026 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 1027 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
| 1028 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 1029 |
+
labels: Optional[torch.LongTensor] = None,
|
| 1030 |
+
use_cache: Optional[bool] = None,
|
| 1031 |
+
output_attentions: Optional[bool] = None,
|
| 1032 |
+
output_hidden_states: Optional[bool] = None,
|
| 1033 |
+
return_dict: Optional[bool] = None,
|
| 1034 |
+
) -> Union[Tuple, CausalLMOutputWithPast]:
|
| 1035 |
+
r"""
|
| 1036 |
+
Args:
|
| 1037 |
+
labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):
|
| 1038 |
+
Labels for computing the masked language modeling loss. Indices should either be in `[0, ...,
|
| 1039 |
+
config.vocab_size]` or -100 (see `input_ids` docstring). Tokens with indices set to `-100` are ignored
|
| 1040 |
+
(masked), the loss is only computed for the tokens with labels in `[0, ..., config.vocab_size]`.
|
| 1041 |
+
|
| 1042 |
+
Returns:
|
| 1043 |
+
|
| 1044 |
+
Example:
|
| 1045 |
+
|
| 1046 |
+
```python
|
| 1047 |
+
>>> from transformers import AutoTokenizer, InternLM2ForCausalLM
|
| 1048 |
+
|
| 1049 |
+
>>> model = InternLM2ForCausalLM.from_pretrained(PATH_TO_CONVERTED_WEIGHTS)
|
| 1050 |
+
>>> tokenizer = AutoTokenizer.from_pretrained(PATH_TO_CONVERTED_TOKENIZER)
|
| 1051 |
+
|
| 1052 |
+
>>> prompt = "Hey, are you conscious? Can you talk to me?"
|
| 1053 |
+
>>> inputs = tokenizer(prompt, return_tensors="pt")
|
| 1054 |
+
|
| 1055 |
+
>>> # Generate
|
| 1056 |
+
>>> generate_ids = model.generate(inputs.input_ids, max_length=30)
|
| 1057 |
+
>>> tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
|
| 1058 |
+
"Hey, are you conscious? Can you talk to me?\nI'm not conscious, but I can talk to you."
|
| 1059 |
+
```"""
|
| 1060 |
+
|
| 1061 |
+
output_attentions = output_attentions if output_attentions is not None else self.config.output_attentions
|
| 1062 |
+
output_hidden_states = (
|
| 1063 |
+
output_hidden_states if output_hidden_states is not None else self.config.output_hidden_states
|
| 1064 |
+
)
|
| 1065 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 1066 |
+
|
| 1067 |
+
# decoder outputs consists of (dec_features, layer_state, dec_hidden, dec_attn)
|
| 1068 |
+
outputs = self.model(
|
| 1069 |
+
input_ids=input_ids,
|
| 1070 |
+
attention_mask=attention_mask,
|
| 1071 |
+
position_ids=position_ids,
|
| 1072 |
+
past_key_values=past_key_values,
|
| 1073 |
+
inputs_embeds=inputs_embeds,
|
| 1074 |
+
use_cache=use_cache,
|
| 1075 |
+
output_attentions=output_attentions,
|
| 1076 |
+
output_hidden_states=output_hidden_states,
|
| 1077 |
+
return_dict=return_dict,
|
| 1078 |
+
)
|
| 1079 |
+
|
| 1080 |
+
hidden_states = outputs[0]
|
| 1081 |
+
logits = self.output(hidden_states)
|
| 1082 |
+
logits = logits.float()
|
| 1083 |
+
|
| 1084 |
+
loss = None
|
| 1085 |
+
if labels is not None:
|
| 1086 |
+
# Shift so that tokens < n predict n
|
| 1087 |
+
shift_logits = logits[..., :-1, :].contiguous()
|
| 1088 |
+
shift_labels = labels[..., 1:].contiguous()
|
| 1089 |
+
# Flatten the tokens
|
| 1090 |
+
loss_fct = CrossEntropyLoss()
|
| 1091 |
+
shift_logits = shift_logits.view(-1, self.config.vocab_size)
|
| 1092 |
+
shift_labels = shift_labels.view(-1)
|
| 1093 |
+
# Enable model parallelism
|
| 1094 |
+
shift_labels = shift_labels.to(shift_logits.device)
|
| 1095 |
+
loss = loss_fct(shift_logits, shift_labels)
|
| 1096 |
+
|
| 1097 |
+
if not return_dict:
|
| 1098 |
+
output = (logits,) + outputs[1:]
|
| 1099 |
+
return (loss,) + output if loss is not None else output
|
| 1100 |
+
|
| 1101 |
+
device = input_ids.device if input_ids is not None else inputs_embeds.device
|
| 1102 |
+
output = CausalLMOutputWithPast(
|
| 1103 |
+
loss=loss,
|
| 1104 |
+
logits=logits,
|
| 1105 |
+
past_key_values=outputs.past_key_values,
|
| 1106 |
+
hidden_states=outputs.hidden_states,
|
| 1107 |
+
attentions=outputs.attentions,
|
| 1108 |
+
)
|
| 1109 |
+
output['logits'] = output['logits'].to(device)
|
| 1110 |
+
return output
|
| 1111 |
+
|
| 1112 |
+
def prepare_inputs_for_generation(
|
| 1113 |
+
self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs
|
| 1114 |
+
):
|
| 1115 |
+
if past_key_values is not None:
|
| 1116 |
+
past_length = past_key_values[0][0].shape[2]
|
| 1117 |
+
|
| 1118 |
+
# Some generation methods already pass only the last input ID
|
| 1119 |
+
if input_ids.shape[1] > past_length:
|
| 1120 |
+
remove_prefix_length = past_length
|
| 1121 |
+
else:
|
| 1122 |
+
# Default to old behavior: keep only final ID
|
| 1123 |
+
remove_prefix_length = input_ids.shape[1] - 1
|
| 1124 |
+
|
| 1125 |
+
input_ids = input_ids[:, remove_prefix_length:]
|
| 1126 |
+
|
| 1127 |
+
position_ids = kwargs.get('position_ids', None)
|
| 1128 |
+
if attention_mask is not None and position_ids is None:
|
| 1129 |
+
# create position_ids on the fly for batch generation
|
| 1130 |
+
position_ids = attention_mask.long().cumsum(-1) - 1
|
| 1131 |
+
position_ids.masked_fill_(attention_mask == 0, 1)
|
| 1132 |
+
if past_key_values:
|
| 1133 |
+
position_ids = position_ids[:, -input_ids.shape[1] :]
|
| 1134 |
+
|
| 1135 |
+
# if `inputs_embeds` are passed, we only want to use them in the 1st generation step
|
| 1136 |
+
if inputs_embeds is not None and past_key_values is None:
|
| 1137 |
+
model_inputs = {'inputs_embeds': inputs_embeds}
|
| 1138 |
+
else:
|
| 1139 |
+
model_inputs = {'input_ids': input_ids}
|
| 1140 |
+
|
| 1141 |
+
model_inputs.update(
|
| 1142 |
+
{
|
| 1143 |
+
'position_ids': position_ids,
|
| 1144 |
+
'past_key_values': past_key_values,
|
| 1145 |
+
'use_cache': kwargs.get('use_cache'),
|
| 1146 |
+
'attention_mask': attention_mask,
|
| 1147 |
+
}
|
| 1148 |
+
)
|
| 1149 |
+
return model_inputs
|
| 1150 |
+
|
| 1151 |
+
@staticmethod
|
| 1152 |
+
def _reorder_cache(past_key_values, beam_idx):
|
| 1153 |
+
reordered_past = ()
|
| 1154 |
+
for layer_past in past_key_values:
|
| 1155 |
+
reordered_past += (
|
| 1156 |
+
tuple(past_state.index_select(0, beam_idx.to(past_state.device)) for past_state in layer_past),
|
| 1157 |
+
)
|
| 1158 |
+
return reordered_past
|
| 1159 |
+
|
| 1160 |
+
def build_inputs(self, tokenizer, query: str, history: List[Tuple[str, str]] = [], meta_instruction=''):
|
| 1161 |
+
if tokenizer.add_bos_token:
|
| 1162 |
+
prompt = ''
|
| 1163 |
+
else:
|
| 1164 |
+
prompt = tokenizer.bos_token
|
| 1165 |
+
if meta_instruction:
|
| 1166 |
+
prompt += f"""<|im_start|>system\n{meta_instruction}<|im_end|>\n"""
|
| 1167 |
+
for record in history:
|
| 1168 |
+
prompt += f"""<|im_start|>user\n{record[0]}<|im_end|>\n<|im_start|>assistant\n{record[1]}<|im_end|>\n"""
|
| 1169 |
+
prompt += f"""<|im_start|>user\n{query}<|im_end|>\n<|im_start|>assistant\n"""
|
| 1170 |
+
return tokenizer([prompt], return_tensors='pt')
|
| 1171 |
+
|
| 1172 |
+
@torch.no_grad()
|
| 1173 |
+
def chat(
|
| 1174 |
+
self,
|
| 1175 |
+
tokenizer,
|
| 1176 |
+
query: str,
|
| 1177 |
+
history: List[Tuple[str, str]] = [],
|
| 1178 |
+
streamer: Optional[BaseStreamer] = None,
|
| 1179 |
+
max_new_tokens: int = 1024,
|
| 1180 |
+
do_sample: bool = True,
|
| 1181 |
+
temperature: float = 0.8,
|
| 1182 |
+
top_p: float = 0.8,
|
| 1183 |
+
meta_instruction: str = 'You are an AI assistant whose name is InternLM (书生·浦语).\n'
|
| 1184 |
+
'- InternLM (书生·浦语) is a conversational language model that is developed by Shanghai AI Laboratory (上海人工智能实验室). It is designed to be helpful, honest, and harmless.\n'
|
| 1185 |
+
'- InternLM (书生·浦语) can understand and communicate fluently in the language chosen by the user such as English and 中文.',
|
| 1186 |
+
**kwargs,
|
| 1187 |
+
):
|
| 1188 |
+
inputs = self.build_inputs(tokenizer, query, history, meta_instruction)
|
| 1189 |
+
inputs = {k: v.to(self.device) for k, v in inputs.items() if torch.is_tensor(v)}
|
| 1190 |
+
# also add end-of-assistant token in eos token id to avoid unnecessary generation
|
| 1191 |
+
eos_token_id = [tokenizer.eos_token_id, tokenizer.convert_tokens_to_ids(['<|im_end|>'])[0]]
|
| 1192 |
+
outputs = self.generate(
|
| 1193 |
+
**inputs,
|
| 1194 |
+
streamer=streamer,
|
| 1195 |
+
max_new_tokens=max_new_tokens,
|
| 1196 |
+
do_sample=do_sample,
|
| 1197 |
+
temperature=temperature,
|
| 1198 |
+
top_p=top_p,
|
| 1199 |
+
eos_token_id=eos_token_id,
|
| 1200 |
+
**kwargs,
|
| 1201 |
+
)
|
| 1202 |
+
outputs = outputs[0].cpu().tolist()[len(inputs['input_ids'][0]) :]
|
| 1203 |
+
response = tokenizer.decode(outputs, skip_special_tokens=True)
|
| 1204 |
+
response = response.split('<|im_end|>')[0]
|
| 1205 |
+
history = history + [(query, response)]
|
| 1206 |
+
return response, history
|
| 1207 |
+
|
| 1208 |
+
@torch.no_grad()
|
| 1209 |
+
def stream_chat(
|
| 1210 |
+
self,
|
| 1211 |
+
tokenizer,
|
| 1212 |
+
query: str,
|
| 1213 |
+
history: List[Tuple[str, str]] = [],
|
| 1214 |
+
max_new_tokens: int = 1024,
|
| 1215 |
+
do_sample: bool = True,
|
| 1216 |
+
temperature: float = 0.8,
|
| 1217 |
+
top_p: float = 0.8,
|
| 1218 |
+
**kwargs,
|
| 1219 |
+
):
|
| 1220 |
+
"""
|
| 1221 |
+
Return a generator in format: (response, history)
|
| 1222 |
+
Eg.
|
| 1223 |
+
('你好,有什么可以帮助您的吗', [('你好', '你好,有什么可以帮助您的吗')])
|
| 1224 |
+
('你好,有什么可以帮助您的吗?', [('你好', '你好,有什么可以帮助您的吗?')])
|
| 1225 |
+
"""
|
| 1226 |
+
if BaseStreamer is None:
|
| 1227 |
+
raise ModuleNotFoundError(
|
| 1228 |
+
'The version of `transformers` is too low. Please make sure '
|
| 1229 |
+
'that you have installed `transformers>=4.28.0`.'
|
| 1230 |
+
)
|
| 1231 |
+
|
| 1232 |
+
response_queue = queue.Queue(maxsize=20)
|
| 1233 |
+
|
| 1234 |
+
class ChatStreamer(BaseStreamer):
|
| 1235 |
+
def __init__(self, tokenizer) -> None:
|
| 1236 |
+
super().__init__()
|
| 1237 |
+
self.tokenizer = tokenizer
|
| 1238 |
+
self.queue = response_queue
|
| 1239 |
+
self.query = query
|
| 1240 |
+
self.history = history
|
| 1241 |
+
self.response = ''
|
| 1242 |
+
self.cache = []
|
| 1243 |
+
self.received_inputs = False
|
| 1244 |
+
self.queue.put((self.response, history + [(self.query, self.response)]))
|
| 1245 |
+
|
| 1246 |
+
def put(self, value):
|
| 1247 |
+
if len(value.shape) > 1 and value.shape[0] > 1:
|
| 1248 |
+
raise ValueError('ChatStreamer only supports batch size 1')
|
| 1249 |
+
elif len(value.shape) > 1:
|
| 1250 |
+
value = value[0]
|
| 1251 |
+
|
| 1252 |
+
if not self.received_inputs:
|
| 1253 |
+
# The first received value is input_ids, ignore here
|
| 1254 |
+
self.received_inputs = True
|
| 1255 |
+
return
|
| 1256 |
+
|
| 1257 |
+
self.cache.extend(value.tolist())
|
| 1258 |
+
token = self.tokenizer.decode(self.cache, skip_special_tokens=True)
|
| 1259 |
+
if token.strip() != '<|im_end|>':
|
| 1260 |
+
self.response = self.response + token
|
| 1261 |
+
history = self.history + [(self.query, self.response)]
|
| 1262 |
+
self.queue.put((self.response, history))
|
| 1263 |
+
self.cache = []
|
| 1264 |
+
else:
|
| 1265 |
+
self.end()
|
| 1266 |
+
|
| 1267 |
+
def end(self):
|
| 1268 |
+
self.queue.put(None)
|
| 1269 |
+
|
| 1270 |
+
def stream_producer():
|
| 1271 |
+
return self.chat(
|
| 1272 |
+
tokenizer=tokenizer,
|
| 1273 |
+
query=query,
|
| 1274 |
+
streamer=ChatStreamer(tokenizer=tokenizer),
|
| 1275 |
+
history=history,
|
| 1276 |
+
max_new_tokens=max_new_tokens,
|
| 1277 |
+
do_sample=do_sample,
|
| 1278 |
+
temperature=temperature,
|
| 1279 |
+
top_p=top_p,
|
| 1280 |
+
**kwargs,
|
| 1281 |
+
)
|
| 1282 |
+
|
| 1283 |
+
def consumer():
|
| 1284 |
+
producer = threading.Thread(target=stream_producer)
|
| 1285 |
+
producer.start()
|
| 1286 |
+
while True:
|
| 1287 |
+
res = response_queue.get()
|
| 1288 |
+
if res is None:
|
| 1289 |
+
return
|
| 1290 |
+
yield res
|
| 1291 |
+
|
| 1292 |
+
return consumer()
|
| 1293 |
+
|
| 1294 |
+
|
| 1295 |
+
# Copied from transformers.model.llama.modeling_llama.LlamaForSequenceClassification with Llama->InternLM2
|
| 1296 |
+
@add_start_docstrings(
|
| 1297 |
+
"""
|
| 1298 |
+
The InternLM2 Model transformer with a sequence classification head on top (linear layer).
|
| 1299 |
+
|
| 1300 |
+
[`InternLM2ForSequenceClassification`] uses the last token in order to do the classification,
|
| 1301 |
+
as other causal models (e.g. GPT-2) do.
|
| 1302 |
+
|
| 1303 |
+
Since it does classification on the last token, it requires to know the position of the last token. If a
|
| 1304 |
+
`pad_token_id` is defined in the configuration, it finds the last token that is not a padding token in each row. If
|
| 1305 |
+
no `pad_token_id` is defined, it simply takes the last value in each row of the batch. Since it cannot guess the
|
| 1306 |
+
padding tokens when `inputs_embeds` are passed instead of `input_ids`, it does the same (take the last value in
|
| 1307 |
+
each row of the batch).
|
| 1308 |
+
""",
|
| 1309 |
+
InternLM2_START_DOCSTRING,
|
| 1310 |
+
)
|
| 1311 |
+
class InternLM2ForSequenceClassification(InternLM2PreTrainedModel):
|
| 1312 |
+
def __init__(self, config):
|
| 1313 |
+
super().__init__(config)
|
| 1314 |
+
self.num_labels = config.num_labels
|
| 1315 |
+
self.model = InternLM2Model(config)
|
| 1316 |
+
self.score = nn.Linear(config.hidden_size, self.num_labels, bias=False)
|
| 1317 |
+
|
| 1318 |
+
# Initialize weights and apply final processing
|
| 1319 |
+
self.post_init()
|
| 1320 |
+
|
| 1321 |
+
def get_input_embeddings(self):
|
| 1322 |
+
return self.model.tok_embeddings
|
| 1323 |
+
|
| 1324 |
+
def set_input_embeddings(self, value):
|
| 1325 |
+
self.model.tok_embeddings = value
|
| 1326 |
+
|
| 1327 |
+
@add_start_docstrings_to_model_forward(InternLM2_INPUTS_DOCSTRING)
|
| 1328 |
+
def forward(
|
| 1329 |
+
self,
|
| 1330 |
+
input_ids: torch.LongTensor = None,
|
| 1331 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 1332 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 1333 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
| 1334 |
+
inputs_embeds: Optional[torch.FloatTensor] = None,
|
| 1335 |
+
labels: Optional[torch.LongTensor] = None,
|
| 1336 |
+
use_cache: Optional[bool] = None,
|
| 1337 |
+
output_attentions: Optional[bool] = None,
|
| 1338 |
+
output_hidden_states: Optional[bool] = None,
|
| 1339 |
+
return_dict: Optional[bool] = None,
|
| 1340 |
+
) -> Union[Tuple, SequenceClassifierOutputWithPast]:
|
| 1341 |
+
r"""
|
| 1342 |
+
labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*):
|
| 1343 |
+
Labels for computing the sequence classification/regression loss. Indices should be in `[0, ...,
|
| 1344 |
+
config.num_labels - 1]`. If `config.num_labels == 1` a regression loss is computed (Mean-Square loss), If
|
| 1345 |
+
`config.num_labels > 1` a classification loss is computed (Cross-Entropy).
|
| 1346 |
+
"""
|
| 1347 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 1348 |
+
|
| 1349 |
+
transformer_outputs = self.model(
|
| 1350 |
+
input_ids,
|
| 1351 |
+
attention_mask=attention_mask,
|
| 1352 |
+
position_ids=position_ids,
|
| 1353 |
+
past_key_values=past_key_values,
|
| 1354 |
+
inputs_embeds=inputs_embeds,
|
| 1355 |
+
use_cache=use_cache,
|
| 1356 |
+
output_attentions=output_attentions,
|
| 1357 |
+
output_hidden_states=output_hidden_states,
|
| 1358 |
+
return_dict=return_dict,
|
| 1359 |
+
)
|
| 1360 |
+
hidden_states = transformer_outputs[0]
|
| 1361 |
+
logits = self.score(hidden_states)
|
| 1362 |
+
|
| 1363 |
+
if input_ids is not None:
|
| 1364 |
+
batch_size = input_ids.shape[0]
|
| 1365 |
+
else:
|
| 1366 |
+
batch_size = inputs_embeds.shape[0]
|
| 1367 |
+
|
| 1368 |
+
if self.config.pad_token_id is None and batch_size != 1:
|
| 1369 |
+
raise ValueError('Cannot handle batch sizes > 1 if no padding token is defined.')
|
| 1370 |
+
if self.config.pad_token_id is None:
|
| 1371 |
+
sequence_lengths = -1
|
| 1372 |
+
else:
|
| 1373 |
+
if input_ids is not None:
|
| 1374 |
+
sequence_lengths = (torch.eq(input_ids, self.config.pad_token_id).int().argmax(-1) - 1).to(
|
| 1375 |
+
logits.device
|
| 1376 |
+
)
|
| 1377 |
+
else:
|
| 1378 |
+
sequence_lengths = -1
|
| 1379 |
+
|
| 1380 |
+
pooled_logits = logits[torch.arange(batch_size, device=logits.device), sequence_lengths]
|
| 1381 |
+
|
| 1382 |
+
loss = None
|
| 1383 |
+
if labels is not None:
|
| 1384 |
+
labels = labels.to(logits.device)
|
| 1385 |
+
if self.config.problem_type is None:
|
| 1386 |
+
if self.num_labels == 1:
|
| 1387 |
+
self.config.problem_type = 'regression'
|
| 1388 |
+
elif self.num_labels > 1 and (labels.dtype == torch.long or labels.dtype == torch.int):
|
| 1389 |
+
self.config.problem_type = 'single_label_classification'
|
| 1390 |
+
else:
|
| 1391 |
+
self.config.problem_type = 'multi_label_classification'
|
| 1392 |
+
|
| 1393 |
+
if self.config.problem_type == 'regression':
|
| 1394 |
+
loss_fct = MSELoss()
|
| 1395 |
+
if self.num_labels == 1:
|
| 1396 |
+
loss = loss_fct(pooled_logits.squeeze(), labels.squeeze())
|
| 1397 |
+
else:
|
| 1398 |
+
loss = loss_fct(pooled_logits, labels)
|
| 1399 |
+
elif self.config.problem_type == 'single_label_classification':
|
| 1400 |
+
loss_fct = CrossEntropyLoss()
|
| 1401 |
+
loss = loss_fct(pooled_logits.view(-1, self.num_labels), labels.view(-1))
|
| 1402 |
+
elif self.config.problem_type == 'multi_label_classification':
|
| 1403 |
+
loss_fct = BCEWithLogitsLoss()
|
| 1404 |
+
loss = loss_fct(pooled_logits, labels)
|
| 1405 |
+
if not return_dict:
|
| 1406 |
+
output = (pooled_logits,) + transformer_outputs[1:]
|
| 1407 |
+
return ((loss,) + output) if loss is not None else output
|
| 1408 |
+
|
| 1409 |
+
return SequenceClassifierOutputWithPast(
|
| 1410 |
+
loss=loss,
|
| 1411 |
+
logits=pooled_logits,
|
| 1412 |
+
past_key_values=transformer_outputs.past_key_values,
|
| 1413 |
+
hidden_states=transformer_outputs.hidden_states,
|
| 1414 |
+
attentions=transformer_outputs.attentions,
|
| 1415 |
+
)
|
InternVL/InternVL_2_5/modeling_internvl_chat.py
ADDED
|
@@ -0,0 +1,349 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------
|
| 2 |
+
# InternVL
|
| 3 |
+
# Copyright (c) 2024 OpenGVLab
|
| 4 |
+
# Licensed under The MIT License [see LICENSE for details]
|
| 5 |
+
# --------------------------------------------------------
|
| 6 |
+
|
| 7 |
+
import warnings
|
| 8 |
+
from typing import List, Optional, Tuple, Union
|
| 9 |
+
|
| 10 |
+
import torch.utils.checkpoint
|
| 11 |
+
import transformers
|
| 12 |
+
from torch import nn
|
| 13 |
+
from torch.nn import CrossEntropyLoss
|
| 14 |
+
from transformers import (AutoModel, GenerationConfig, LlamaForCausalLM,
|
| 15 |
+
LlamaTokenizer)
|
| 16 |
+
from transformers.modeling_outputs import CausalLMOutputWithPast
|
| 17 |
+
from transformers.modeling_utils import PreTrainedModel
|
| 18 |
+
from transformers.utils import ModelOutput, logging
|
| 19 |
+
|
| 20 |
+
from .configuration_internvl_chat import InternVLChatConfig
|
| 21 |
+
from .conversation import get_conv_template
|
| 22 |
+
from .modeling_intern_vit import InternVisionModel, has_flash_attn
|
| 23 |
+
from .modeling_internlm2 import InternLM2ForCausalLM
|
| 24 |
+
|
| 25 |
+
logger = logging.get_logger(__name__)
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def version_cmp(v1, v2, op='eq'):
|
| 29 |
+
import operator
|
| 30 |
+
|
| 31 |
+
from packaging import version
|
| 32 |
+
op_func = getattr(operator, op)
|
| 33 |
+
return op_func(version.parse(v1), version.parse(v2))
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
class InternVLChatModel(PreTrainedModel):
|
| 37 |
+
config_class = InternVLChatConfig
|
| 38 |
+
main_input_name = 'pixel_values'
|
| 39 |
+
base_model_prefix = 'language_model'
|
| 40 |
+
_supports_flash_attn_2 = True
|
| 41 |
+
_no_split_modules = ['InternVisionModel', 'LlamaDecoderLayer', 'InternLM2DecoderLayer']
|
| 42 |
+
|
| 43 |
+
def __init__(self, config: InternVLChatConfig, vision_model=None, language_model=None, use_flash_attn=True):
|
| 44 |
+
super().__init__(config)
|
| 45 |
+
|
| 46 |
+
assert version_cmp(transformers.__version__, '4.37.0', 'ge')
|
| 47 |
+
image_size = config.force_image_size or config.vision_config.image_size
|
| 48 |
+
patch_size = config.vision_config.patch_size
|
| 49 |
+
self.patch_size = patch_size
|
| 50 |
+
self.select_layer = config.select_layer
|
| 51 |
+
self.template = config.template
|
| 52 |
+
self.num_image_token = int((image_size // patch_size) ** 2 * (config.downsample_ratio ** 2))
|
| 53 |
+
self.downsample_ratio = config.downsample_ratio
|
| 54 |
+
self.ps_version = config.ps_version
|
| 55 |
+
use_flash_attn = use_flash_attn if has_flash_attn else False
|
| 56 |
+
config.vision_config.use_flash_attn = True if use_flash_attn else False
|
| 57 |
+
config.llm_config.attn_implementation = 'flash_attention_2' if use_flash_attn else 'eager'
|
| 58 |
+
|
| 59 |
+
logger.info(f'num_image_token: {self.num_image_token}')
|
| 60 |
+
logger.info(f'ps_version: {self.ps_version}')
|
| 61 |
+
if vision_model is not None:
|
| 62 |
+
self.vision_model = vision_model
|
| 63 |
+
else:
|
| 64 |
+
self.vision_model = InternVisionModel(config.vision_config)
|
| 65 |
+
if language_model is not None:
|
| 66 |
+
self.language_model = language_model
|
| 67 |
+
else:
|
| 68 |
+
if config.llm_config.architectures[0] == 'LlamaForCausalLM':
|
| 69 |
+
self.language_model = LlamaForCausalLM(config.llm_config)
|
| 70 |
+
elif config.llm_config.architectures[0] == 'InternLM2ForCausalLM':
|
| 71 |
+
self.language_model = InternLM2ForCausalLM(config.llm_config)
|
| 72 |
+
else:
|
| 73 |
+
raise NotImplementedError(f'{config.llm_config.architectures[0]} is not implemented.')
|
| 74 |
+
|
| 75 |
+
vit_hidden_size = config.vision_config.hidden_size
|
| 76 |
+
llm_hidden_size = config.llm_config.hidden_size
|
| 77 |
+
|
| 78 |
+
self.mlp1 = nn.Sequential(
|
| 79 |
+
nn.LayerNorm(vit_hidden_size * int(1 / self.downsample_ratio) ** 2),
|
| 80 |
+
nn.Linear(vit_hidden_size * int(1 / self.downsample_ratio) ** 2, llm_hidden_size),
|
| 81 |
+
nn.GELU(),
|
| 82 |
+
nn.Linear(llm_hidden_size, llm_hidden_size)
|
| 83 |
+
)
|
| 84 |
+
|
| 85 |
+
self.img_context_token_id = None
|
| 86 |
+
self.conv_template = get_conv_template(self.template)
|
| 87 |
+
self.system_message = self.conv_template.system_message
|
| 88 |
+
|
| 89 |
+
def forward(
|
| 90 |
+
self,
|
| 91 |
+
pixel_values: torch.FloatTensor,
|
| 92 |
+
input_ids: torch.LongTensor = None,
|
| 93 |
+
attention_mask: Optional[torch.Tensor] = None,
|
| 94 |
+
position_ids: Optional[torch.LongTensor] = None,
|
| 95 |
+
image_flags: Optional[torch.LongTensor] = None,
|
| 96 |
+
past_key_values: Optional[List[torch.FloatTensor]] = None,
|
| 97 |
+
labels: Optional[torch.LongTensor] = None,
|
| 98 |
+
use_cache: Optional[bool] = None,
|
| 99 |
+
output_attentions: Optional[bool] = None,
|
| 100 |
+
output_hidden_states: Optional[bool] = None,
|
| 101 |
+
return_dict: Optional[bool] = None,
|
| 102 |
+
) -> Union[Tuple, CausalLMOutputWithPast]:
|
| 103 |
+
return_dict = return_dict if return_dict is not None else self.config.use_return_dict
|
| 104 |
+
|
| 105 |
+
image_flags = image_flags.squeeze(-1)
|
| 106 |
+
input_embeds = self.language_model.get_input_embeddings()(input_ids).clone()
|
| 107 |
+
|
| 108 |
+
vit_embeds = self.extract_feature(pixel_values)
|
| 109 |
+
vit_embeds = vit_embeds[image_flags == 1]
|
| 110 |
+
vit_batch_size = pixel_values.shape[0]
|
| 111 |
+
|
| 112 |
+
B, N, C = input_embeds.shape
|
| 113 |
+
input_embeds = input_embeds.reshape(B * N, C)
|
| 114 |
+
|
| 115 |
+
if torch.distributed.is_initialized() and torch.distributed.get_rank() == 0:
|
| 116 |
+
print(f'dynamic ViT batch size: {vit_batch_size}, images per sample: {vit_batch_size / B}, dynamic token length: {N}')
|
| 117 |
+
|
| 118 |
+
input_ids = input_ids.reshape(B * N)
|
| 119 |
+
selected = (input_ids == self.img_context_token_id)
|
| 120 |
+
try:
|
| 121 |
+
input_embeds[selected] = input_embeds[selected] * 0.0 + vit_embeds.reshape(-1, C)
|
| 122 |
+
except Exception as e:
|
| 123 |
+
vit_embeds = vit_embeds.reshape(-1, C)
|
| 124 |
+
print(f'warning: {e}, input_embeds[selected].shape={input_embeds[selected].shape}, '
|
| 125 |
+
f'vit_embeds.shape={vit_embeds.shape}')
|
| 126 |
+
n_token = selected.sum()
|
| 127 |
+
input_embeds[selected] = input_embeds[selected] * 0.0 + vit_embeds[:n_token]
|
| 128 |
+
|
| 129 |
+
input_embeds = input_embeds.reshape(B, N, C)
|
| 130 |
+
|
| 131 |
+
outputs = self.language_model(
|
| 132 |
+
inputs_embeds=input_embeds,
|
| 133 |
+
attention_mask=attention_mask,
|
| 134 |
+
position_ids=position_ids,
|
| 135 |
+
past_key_values=past_key_values,
|
| 136 |
+
use_cache=use_cache,
|
| 137 |
+
output_attentions=output_attentions,
|
| 138 |
+
output_hidden_states=output_hidden_states,
|
| 139 |
+
return_dict=return_dict,
|
| 140 |
+
)
|
| 141 |
+
logits = outputs.logits
|
| 142 |
+
|
| 143 |
+
loss = None
|
| 144 |
+
if labels is not None:
|
| 145 |
+
# Shift so that tokens < n predict n
|
| 146 |
+
shift_logits = logits[..., :-1, :].contiguous()
|
| 147 |
+
shift_labels = labels[..., 1:].contiguous()
|
| 148 |
+
# Flatten the tokens
|
| 149 |
+
loss_fct = CrossEntropyLoss()
|
| 150 |
+
shift_logits = shift_logits.view(-1, self.language_model.config.vocab_size)
|
| 151 |
+
shift_labels = shift_labels.view(-1)
|
| 152 |
+
# Enable model parallelism
|
| 153 |
+
shift_labels = shift_labels.to(shift_logits.device)
|
| 154 |
+
loss = loss_fct(shift_logits, shift_labels)
|
| 155 |
+
|
| 156 |
+
if not return_dict:
|
| 157 |
+
output = (logits,) + outputs[1:]
|
| 158 |
+
return (loss,) + output if loss is not None else output
|
| 159 |
+
|
| 160 |
+
return CausalLMOutputWithPast(
|
| 161 |
+
loss=loss,
|
| 162 |
+
logits=logits,
|
| 163 |
+
past_key_values=outputs.past_key_values,
|
| 164 |
+
hidden_states=outputs.hidden_states,
|
| 165 |
+
attentions=outputs.attentions,
|
| 166 |
+
)
|
| 167 |
+
|
| 168 |
+
def pixel_shuffle(self, x, scale_factor=0.5):
|
| 169 |
+
n, w, h, c = x.size()
|
| 170 |
+
# N, W, H, C --> N, W, H * scale, C // scale
|
| 171 |
+
x = x.view(n, w, int(h * scale_factor), int(c / scale_factor))
|
| 172 |
+
# N, W, H * scale, C // scale --> N, H * scale, W, C // scale
|
| 173 |
+
x = x.permute(0, 2, 1, 3).contiguous()
|
| 174 |
+
# N, H * scale, W, C // scale --> N, H * scale, W * scale, C // (scale ** 2)
|
| 175 |
+
x = x.view(n, int(h * scale_factor), int(w * scale_factor),
|
| 176 |
+
int(c / (scale_factor * scale_factor)))
|
| 177 |
+
if self.ps_version == 'v1':
|
| 178 |
+
warnings.warn("In ps_version 'v1', the height and width have not been swapped back, "
|
| 179 |
+
'which results in a transposed image.')
|
| 180 |
+
else:
|
| 181 |
+
x = x.permute(0, 2, 1, 3).contiguous()
|
| 182 |
+
return x
|
| 183 |
+
|
| 184 |
+
def extract_feature(self, pixel_values):
|
| 185 |
+
if self.select_layer == -1:
|
| 186 |
+
vit_embeds = self.vision_model(
|
| 187 |
+
pixel_values=pixel_values,
|
| 188 |
+
output_hidden_states=False,
|
| 189 |
+
return_dict=True).last_hidden_state
|
| 190 |
+
else:
|
| 191 |
+
vit_embeds = self.vision_model(
|
| 192 |
+
pixel_values=pixel_values,
|
| 193 |
+
output_hidden_states=True,
|
| 194 |
+
return_dict=True).hidden_states[self.select_layer]
|
| 195 |
+
vit_embeds = vit_embeds[:, 1:, :]
|
| 196 |
+
|
| 197 |
+
h = w = int(vit_embeds.shape[1] ** 0.5)
|
| 198 |
+
vit_embeds = vit_embeds.reshape(vit_embeds.shape[0], h, w, -1)
|
| 199 |
+
vit_embeds = self.pixel_shuffle(vit_embeds, scale_factor=self.downsample_ratio)
|
| 200 |
+
vit_embeds = vit_embeds.reshape(vit_embeds.shape[0], -1, vit_embeds.shape[-1])
|
| 201 |
+
vit_embeds = self.mlp1(vit_embeds)
|
| 202 |
+
return vit_embeds
|
| 203 |
+
|
| 204 |
+
def batch_chat(self, tokenizer, pixel_values, questions, generation_config, num_patches_list=None,
|
| 205 |
+
history=None, return_history=False, IMG_START_TOKEN='<img>', IMG_END_TOKEN='</img>',
|
| 206 |
+
IMG_CONTEXT_TOKEN='<IMG_CONTEXT>', verbose=False, image_counts=None):
|
| 207 |
+
if history is not None or return_history:
|
| 208 |
+
print('Now multi-turn chat is not supported in batch_chat.')
|
| 209 |
+
raise NotImplementedError
|
| 210 |
+
|
| 211 |
+
if image_counts is not None:
|
| 212 |
+
num_patches_list = image_counts
|
| 213 |
+
print('Warning: `image_counts` is deprecated. Please use `num_patches_list` instead.')
|
| 214 |
+
|
| 215 |
+
img_context_token_id = tokenizer.convert_tokens_to_ids(IMG_CONTEXT_TOKEN)
|
| 216 |
+
self.img_context_token_id = img_context_token_id
|
| 217 |
+
|
| 218 |
+
if verbose and pixel_values is not None:
|
| 219 |
+
image_bs = pixel_values.shape[0]
|
| 220 |
+
print(f'dynamic ViT batch size: {image_bs}')
|
| 221 |
+
|
| 222 |
+
queries = []
|
| 223 |
+
for idx, num_patches in enumerate(num_patches_list):
|
| 224 |
+
question = questions[idx]
|
| 225 |
+
if pixel_values is not None and '<image>' not in question:
|
| 226 |
+
question = '<image>\n' + question
|
| 227 |
+
template = get_conv_template(self.template)
|
| 228 |
+
template.system_message = self.system_message
|
| 229 |
+
template.append_message(template.roles[0], question)
|
| 230 |
+
template.append_message(template.roles[1], None)
|
| 231 |
+
query = template.get_prompt()
|
| 232 |
+
|
| 233 |
+
image_tokens = IMG_START_TOKEN + IMG_CONTEXT_TOKEN * self.num_image_token * num_patches + IMG_END_TOKEN
|
| 234 |
+
query = query.replace('<image>', image_tokens, 1)
|
| 235 |
+
queries.append(query)
|
| 236 |
+
|
| 237 |
+
tokenizer.padding_side = 'left'
|
| 238 |
+
model_inputs = tokenizer(queries, return_tensors='pt', padding=True)
|
| 239 |
+
input_ids = model_inputs['input_ids'].to(self.device)
|
| 240 |
+
attention_mask = model_inputs['attention_mask'].to(self.device)
|
| 241 |
+
eos_token_id = tokenizer.convert_tokens_to_ids(template.sep.strip())
|
| 242 |
+
generation_config['eos_token_id'] = eos_token_id
|
| 243 |
+
generation_output = self.generate(
|
| 244 |
+
pixel_values=pixel_values,
|
| 245 |
+
input_ids=input_ids,
|
| 246 |
+
attention_mask=attention_mask,
|
| 247 |
+
**generation_config
|
| 248 |
+
)
|
| 249 |
+
responses = tokenizer.batch_decode(generation_output, skip_special_tokens=True)
|
| 250 |
+
responses = [response.split(template.sep.strip())[0].strip() for response in responses]
|
| 251 |
+
return responses
|
| 252 |
+
|
| 253 |
+
def chat(self, tokenizer, pixel_values, question, generation_config, history=None, return_history=False,
|
| 254 |
+
num_patches_list=None, IMG_START_TOKEN='<img>', IMG_END_TOKEN='</img>', IMG_CONTEXT_TOKEN='<IMG_CONTEXT>',
|
| 255 |
+
verbose=False):
|
| 256 |
+
|
| 257 |
+
if history is None and pixel_values is not None and '<image>' not in question:
|
| 258 |
+
question = '<image>\n' + question
|
| 259 |
+
|
| 260 |
+
if num_patches_list is None:
|
| 261 |
+
num_patches_list = [pixel_values.shape[0]] if pixel_values is not None else []
|
| 262 |
+
assert pixel_values is None or len(pixel_values) == sum(num_patches_list)
|
| 263 |
+
|
| 264 |
+
img_context_token_id = tokenizer.convert_tokens_to_ids(IMG_CONTEXT_TOKEN)
|
| 265 |
+
self.img_context_token_id = img_context_token_id
|
| 266 |
+
|
| 267 |
+
template = get_conv_template(self.template)
|
| 268 |
+
template.system_message = self.system_message
|
| 269 |
+
eos_token_id = tokenizer.convert_tokens_to_ids(template.sep.strip())
|
| 270 |
+
|
| 271 |
+
history = [] if history is None else history
|
| 272 |
+
for (old_question, old_answer) in history:
|
| 273 |
+
template.append_message(template.roles[0], old_question)
|
| 274 |
+
template.append_message(template.roles[1], old_answer)
|
| 275 |
+
template.append_message(template.roles[0], question)
|
| 276 |
+
template.append_message(template.roles[1], None)
|
| 277 |
+
query = template.get_prompt()
|
| 278 |
+
|
| 279 |
+
if verbose and pixel_values is not None:
|
| 280 |
+
image_bs = pixel_values.shape[0]
|
| 281 |
+
print(f'dynamic ViT batch size: {image_bs}')
|
| 282 |
+
|
| 283 |
+
for num_patches in num_patches_list:
|
| 284 |
+
image_tokens = IMG_START_TOKEN + IMG_CONTEXT_TOKEN * self.num_image_token * num_patches + IMG_END_TOKEN
|
| 285 |
+
query = query.replace('<image>', image_tokens, 1)
|
| 286 |
+
|
| 287 |
+
model_inputs = tokenizer(query, return_tensors='pt')
|
| 288 |
+
input_ids = model_inputs['input_ids'].to(self.device)
|
| 289 |
+
attention_mask = model_inputs['attention_mask'].to(self.device)
|
| 290 |
+
generation_config['eos_token_id'] = eos_token_id
|
| 291 |
+
generation_output = self.generate(
|
| 292 |
+
pixel_values=pixel_values,
|
| 293 |
+
input_ids=input_ids,
|
| 294 |
+
attention_mask=attention_mask,
|
| 295 |
+
**generation_config
|
| 296 |
+
)
|
| 297 |
+
response = tokenizer.batch_decode(generation_output, skip_special_tokens=True)[0]
|
| 298 |
+
response = response.split(template.sep.strip())[0].strip()
|
| 299 |
+
history.append((question, response))
|
| 300 |
+
if return_history:
|
| 301 |
+
return response, history
|
| 302 |
+
else:
|
| 303 |
+
query_to_print = query.replace(IMG_CONTEXT_TOKEN, '')
|
| 304 |
+
query_to_print = query_to_print.replace(f'{IMG_START_TOKEN}{IMG_END_TOKEN}', '<image>')
|
| 305 |
+
if verbose:
|
| 306 |
+
print(query_to_print, response)
|
| 307 |
+
return response
|
| 308 |
+
|
| 309 |
+
@torch.no_grad()
|
| 310 |
+
def generate(
|
| 311 |
+
self,
|
| 312 |
+
pixel_values: Optional[torch.FloatTensor] = None,
|
| 313 |
+
input_ids: Optional[torch.FloatTensor] = None,
|
| 314 |
+
attention_mask: Optional[torch.LongTensor] = None,
|
| 315 |
+
visual_features: Optional[torch.FloatTensor] = None,
|
| 316 |
+
generation_config: Optional[GenerationConfig] = None,
|
| 317 |
+
output_hidden_states: Optional[bool] = None,
|
| 318 |
+
**generate_kwargs,
|
| 319 |
+
) -> torch.LongTensor:
|
| 320 |
+
|
| 321 |
+
assert self.img_context_token_id is not None
|
| 322 |
+
if pixel_values is not None:
|
| 323 |
+
if visual_features is not None:
|
| 324 |
+
vit_embeds = visual_features
|
| 325 |
+
else:
|
| 326 |
+
vit_embeds = self.extract_feature(pixel_values)
|
| 327 |
+
input_embeds = self.language_model.get_input_embeddings()(input_ids)
|
| 328 |
+
B, N, C = input_embeds.shape
|
| 329 |
+
input_embeds = input_embeds.reshape(B * N, C)
|
| 330 |
+
|
| 331 |
+
input_ids = input_ids.reshape(B * N)
|
| 332 |
+
selected = (input_ids == self.img_context_token_id)
|
| 333 |
+
assert selected.sum() != 0
|
| 334 |
+
input_embeds[selected] = vit_embeds.reshape(-1, C).to(input_embeds.device)
|
| 335 |
+
|
| 336 |
+
input_embeds = input_embeds.reshape(B, N, C)
|
| 337 |
+
else:
|
| 338 |
+
input_embeds = self.language_model.get_input_embeddings()(input_ids)
|
| 339 |
+
|
| 340 |
+
outputs = self.language_model.generate(
|
| 341 |
+
inputs_embeds=input_embeds,
|
| 342 |
+
attention_mask=attention_mask,
|
| 343 |
+
generation_config=generation_config,
|
| 344 |
+
output_hidden_states=output_hidden_states,
|
| 345 |
+
use_cache=True,
|
| 346 |
+
**generate_kwargs,
|
| 347 |
+
)
|
| 348 |
+
|
| 349 |
+
return outputs
|