Bingsu commited on
Commit
fe79b92
·
1 Parent(s): 0a80b2a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +123 -0
README.md ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license:
5
+ - cc-by-4.0
6
+ multilinguality:
7
+ - monolingual
8
+ pretty_name: Gameplay Images
9
+ size_categories:
10
+ - 1K<n<10K
11
+ task_categories:
12
+ - image-classification
13
+ ---
14
+ # Gameplay Images
15
+ ## Dataset Description
16
+ - **Homepage:** [kaggle](https://www.kaggle.com/datasets/aditmagotra/gameplay-images)
17
+ - **Download Size** 2.50 GiB
18
+ - **Generated Size** 1.68 GiB
19
+ - **Total Size** 4.19 GiB
20
+
21
+ A dataset from [kaggle](https://www.kaggle.com/datasets/aditmagotra/gameplay-images).
22
+
23
+ This is a dataset of 10 very famous video games in the world.
24
+
25
+ These include
26
+
27
+ - Among Us
28
+ - Apex Legends
29
+ - Fortnite
30
+ - Forza Horizon
31
+ - Free Fire
32
+ - Genshin Impact
33
+ - God of War
34
+ - Minecraft
35
+ - Roblox
36
+ - Terraria
37
+
38
+ There are 1000 images per class and all are sized `640 x 360`. They are in the `.png` format.
39
+
40
+ This Dataset was made by saving frames every few seconds from famous gameplay videos on Youtube.
41
+
42
+ ※ This dataset was uploaded in January 2022. Game content updated after that will not be included.
43
+
44
+ ### License
45
+
46
+ CC-BY-4.0
47
+
48
+ ## Dataset Structure
49
+
50
+ ### Data Instance
51
+
52
+ ```python
53
+ >>> from datasets import load_dataset
54
+
55
+ >>> dataset = load_dataset("Bingsu/Gameplay_Images")
56
+ DatasetDict({
57
+ train: Dataset({
58
+ features: ['image', 'label'],
59
+ num_rows: 10000
60
+ })
61
+ })
62
+ ```
63
+ ### Data Size
64
+
65
+ download: 2.50 GiB<br>
66
+ generated: 1.68 GiB<br>
67
+ total: 4.19 GiB
68
+
69
+ ### Data Fields
70
+
71
+ - image: `Image`
72
+ - A `PIL.Image.Image object` containing the image. size=640x360
73
+ - Note that when accessing the image column: `dataset[0]["image"]` the image file is automatically decoded. Decoding of a large number of image files might take a significant amount of time. Thus it is important to first query the sample index before the "image" column, i.e. `dataset[0]["image"]` should always be preferred over `dataset["image"][0]`.
74
+ - label: an int classification label.
75
+
76
+ Class Label Mappings:
77
+
78
+ ```json
79
+ {
80
+ "Among Us": 0,
81
+ "Apex Legends": 1,
82
+ "Fortnite": 2,
83
+ "Forza Horizon": 3,
84
+ "Free Fire": 4,
85
+ "Genshin Impact": 5,
86
+ "God of War": 6,
87
+ "Minecraft": 7,
88
+ "Roblox": 8,
89
+ "Terraria": 9
90
+ }
91
+ ```
92
+
93
+ ```python
94
+ >>> dataset["train"][0]
95
+ {'image': <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=640x360>,
96
+ 'label': 0}
97
+ ```
98
+
99
+
100
+ ### Data Splits
101
+
102
+ | | train |
103
+ | ---------- | -------- |
104
+ | # of data | 10000 |
105
+
106
+ ### Note
107
+
108
+ #### train_test_split
109
+
110
+ ```python
111
+ >>> ds_new = dataset["train"].train_test_split(0.2, seed=42, stratify_by_column="label")
112
+ >>> ds_new
113
+ DatasetDict({
114
+ train: Dataset({
115
+ features: ['image', 'label'],
116
+ num_rows: 8000
117
+ })
118
+ test: Dataset({
119
+ features: ['image', 'label'],
120
+ num_rows: 2000
121
+ })
122
+ })
123
+ ```