Datasets:
fix path
Browse files
README.md
CHANGED
@@ -17,28 +17,36 @@ dataset_info:
|
|
17 |
dtype: image
|
18 |
- name: text
|
19 |
dtype: string
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
---
|
21 |
|
22 |
# Dataset Card for Teyvat BLIP captions
|
23 |
-
Dataset used to train [Teyvat characters text to image model](https://github.com/hpcaitech/ColossalAI/tree/main/examples/images/diffusion)
|
|
|
24 |
BLIP generated captions for characters images from [genshin-impact fandom wiki](https://genshin-impact.fandom.com/wiki/Character#Playable_Characters)and [biligame wiki for genshin impact](https://wiki.biligame.com/ys/%E8%A7%92%E8%89%B2).
|
|
|
25 |
For each row the dataset contains `image` and `text` keys. `image` is a varying size PIL png, and `text` is the accompanying text caption. Only a train split is provided.
|
26 |
|
27 |
The `text` include the tag `Teyvat`, `Name`,`Element`, `Weapon`, `Region`, `Model type`, and `Description`, the `Description` is captioned with the [pre-trained BLIP model](https://github.com/salesforce/BLIP).
|
28 |
## Examples
|
29 |
|
30 |
-
<img src = "data/Ganyu_001.png" title = "Ganyu_001.png" style="max-width: 20%;" >
|
31 |
|
32 |
> Teyvat, Name:Ganyu, Element:Cryo, Weapon:Bow, Region:Liyue, Model type:Medium Female, Description:an anime character with blue hair and blue eyes
|
33 |
|
34 |
-
<img src = "data/Ganyu_002.png" title = "Ganyu_002.png" style="max-width: 20%;" >
|
35 |
|
36 |
> Teyvat, Name:Ganyu, Element:Cryo, Weapon:Bow, Region:Liyue, Model type:Medium Female, Description:an anime character with blue hair and blue eyes
|
37 |
|
38 |
-
<img src = "data/Keqing_003.png" title = "Keqing_003.png" style="max-width: 20%;" >
|
39 |
|
40 |
> Teyvat, Name:Keqing, Element:Electro, Weapon:Sword, Region:Liyue, Model type:Medium Female, Description:a anime girl with long white hair and blue eyes
|
41 |
|
42 |
-
<img src = "data/Keqing_004.png" title = "Keqing_004.png" style="max-width: 20%;" >
|
43 |
|
44 |
> Teyvat, Name:Keqing, Element:Electro, Weapon:Sword, Region:Liyue, Model type:Medium Female, Description:an anime character wearing a purple dress and cat ears
|
|
|
17 |
dtype: image
|
18 |
- name: text
|
19 |
dtype: string
|
20 |
+
splits:
|
21 |
+
- name: train
|
22 |
+
num_bytes: 71202
|
23 |
+
num_examples: 234
|
24 |
+
download_size: 466995417
|
25 |
+
dataset_size: 71202
|
26 |
---
|
27 |
|
28 |
# Dataset Card for Teyvat BLIP captions
|
29 |
+
Dataset used to train [Teyvat characters text to image model](https://github.com/hpcaitech/ColossalAI/tree/main/examples/images/diffusion).
|
30 |
+
|
31 |
BLIP generated captions for characters images from [genshin-impact fandom wiki](https://genshin-impact.fandom.com/wiki/Character#Playable_Characters)and [biligame wiki for genshin impact](https://wiki.biligame.com/ys/%E8%A7%92%E8%89%B2).
|
32 |
+
|
33 |
For each row the dataset contains `image` and `text` keys. `image` is a varying size PIL png, and `text` is the accompanying text caption. Only a train split is provided.
|
34 |
|
35 |
The `text` include the tag `Teyvat`, `Name`,`Element`, `Weapon`, `Region`, `Model type`, and `Description`, the `Description` is captioned with the [pre-trained BLIP model](https://github.com/salesforce/BLIP).
|
36 |
## Examples
|
37 |
|
38 |
+
<img src = "./data/Ganyu_001.png" title = "Ganyu_001.png" style="max-width: 20%;" >
|
39 |
|
40 |
> Teyvat, Name:Ganyu, Element:Cryo, Weapon:Bow, Region:Liyue, Model type:Medium Female, Description:an anime character with blue hair and blue eyes
|
41 |
|
42 |
+
<img src = "./data/Ganyu_002.png" title = "Ganyu_002.png" style="max-width: 20%;" >
|
43 |
|
44 |
> Teyvat, Name:Ganyu, Element:Cryo, Weapon:Bow, Region:Liyue, Model type:Medium Female, Description:an anime character with blue hair and blue eyes
|
45 |
|
46 |
+
<img src = "./data/Keqing_003.png" title = "Keqing_003.png" style="max-width: 20%;" >
|
47 |
|
48 |
> Teyvat, Name:Keqing, Element:Electro, Weapon:Sword, Region:Liyue, Model type:Medium Female, Description:a anime girl with long white hair and blue eyes
|
49 |
|
50 |
+
<img src = "./data/Keqing_004.png" title = "Keqing_004.png" style="max-width: 20%;" >
|
51 |
|
52 |
> Teyvat, Name:Keqing, Element:Electro, Weapon:Sword, Region:Liyue, Model type:Medium Female, Description:an anime character wearing a purple dress and cat ears
|
Teyvat.py
CHANGED
@@ -109,7 +109,7 @@ class Teyvat(datasets.GeneratorBasedBuilder):
|
|
109 |
data = load(open(meta_data_path, "r", encoding="utf8"))
|
110 |
|
111 |
for image in data:
|
112 |
-
image_path = join(data_path, image["file_name"])
|
113 |
text = image["text"]
|
114 |
|
115 |
|
|
|
109 |
data = load(open(meta_data_path, "r", encoding="utf8"))
|
110 |
|
111 |
for image in data:
|
112 |
+
image_path = join(data_path, "data", image["file_name"])
|
113 |
text = image["text"]
|
114 |
|
115 |
|