---
language:
- en
license:
- cc-by-4.0
multilinguality:
- monolingual
pretty_name: Gameplay Images
size_categories:
- 1K<n<10K
task_categories:
- image-classification
---
# Gameplay Images
## Dataset Description
- **Homepage:** [kaggle](https://www.kaggle.com/datasets/aditmagotra/gameplay-images)
- **Download Size** 2.50 GiB
- **Generated Size** 1.68 GiB
- **Total Size** 4.19 GiB
A dataset from [kaggle](https://www.kaggle.com/datasets/aditmagotra/gameplay-images).
This is a dataset of 10 very famous video games in the world.
These include
- Among Us
- Apex Legends
- Fortnite
- Forza Horizon
- Free Fire
- Genshin Impact
- God of War
- Minecraft
- Roblox
- Terraria
There are 1000 images per class and all are sized `640 x 360`. They are in the `.png` format.
This Dataset was made by saving frames every few seconds from famous gameplay videos on Youtube.
※ This dataset was uploaded in January 2022. Game content updated after that will not be included.
### License
CC-BY-4.0
## Dataset Structure
### Data Instance
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset("Bingsu/Gameplay_Images")
DatasetDict({
train: Dataset({
features: ['image', 'label'],
num_rows: 10000
})
})
```
```python
>>> dataset["train"].features
{'image': Image(decode=True, id=None),
'label': ClassLabel(num_classes=10, names=['Among Us', 'Apex Legends', 'Fortnite', 'Forza Horizon', 'Free Fire', 'Genshin Impact', 'God of War', 'Minecraft', 'Roblox', 'Terraria'], id=None)}
```
### Data Size
download: 2.50 GiB<br>
generated: 1.68 GiB<br>
total: 4.19 GiB
### Data Fields
- image: `Image`
- A `PIL.Image.Image object` containing the image. size=640x360
- 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]`.
- label: an int classification label.
Class Label Mappings:
```json
{
"Among Us": 0,
"Apex Legends": 1,
"Fortnite": 2,
"Forza Horizon": 3,
"Free Fire": 4,
"Genshin Impact": 5,
"God of War": 6,
"Minecraft": 7,
"Roblox": 8,
"Terraria": 9
}
```
```python
>>> dataset["train"][0]
{'image': <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=640x360>,
'label': 0}
```
### Data Splits
| | train |
| ---------- | -------- |
| # of data | 10000 |
### Note
#### train_test_split
```python
>>> ds_new = dataset["train"].train_test_split(0.2, seed=42, stratify_by_column="label")
>>> ds_new
DatasetDict({
train: Dataset({
features: ['image', 'label'],
num_rows: 8000
})
test: Dataset({
features: ['image', 'label'],
num_rows: 2000
})
})
```
yaml
language:
- 英语
license:
- CC BY 4.0
multilinguality:
- 单语言
pretty_name: 游戏玩法截图
size_categories:
- 1K<n<10K
task_categories:
- 图像分类
# 游戏玩法截图数据集
## 数据集说明
- **主页**:[Kaggle](https://www.kaggle.com/datasets/aditmagotra/gameplay-images)
- **下载大小**:2.50 GiB
- **生成后大小**:1.68 GiB
- **总大小**:4.19 GiB
本数据集源自Kaggle平台的[游戏玩法截图数据集](https://www.kaggle.com/datasets/aditmagotra/gameplay-images)。
本数据集包含全球10款极具知名度的电子游戏的相关截图,具体包括:
- 《Among Us》(Among Us)
- 《Apex英雄》(Apex Legends)
- 《堡垒之夜》(Fortnite)
- 《极限竞速:地平线》(Forza Horizon)
- 《自由之火》(Free Fire)
- 《原神》(Genshin Impact)
- 《战神》(God of War)
- 《我的世界》(Minecraft)
- 《罗布乐思》(Roblox)
- 《泰拉瑞亚》(Terraria)
每个类别包含1000张图片,所有图片均为640×360像素,格式为`.png`。
本数据集通过从YouTube上的知名游戏玩法视频中每隔数秒截取帧画面制作而成。
※ 本数据集于2022年1月上传,2022年1月之后更新的游戏内容未被纳入本数据集。
### 许可协议
CC BY 4.0
## 数据集结构
### 数据实例
python
>>> from datasets import load_dataset
>>> dataset = load_dataset("Bingsu/Gameplay_Images")
DatasetDict({
train: Dataset({
features: ['image', 'label'],
num_rows: 10000
})
})
python
>>> dataset["train"].features
{'image': Image(decode=True, id=None),
'label': ClassLabel(num_classes=10, names=['Among Us', 'Apex Legends', 'Fortnite', 'Forza Horizon', 'Free Fire', 'Genshin Impact', 'God of War', 'Minecraft', 'Roblox', 'Terraria'], id=None)}
### 数据大小
下载大小:2.50 GiB<br>
生成后大小:1.68 GiB<br>
总大小:4.19 GiB
### 数据字段
- **image**:`Image`类型
- 为`PIL.Image.Image`对象,承载单张图像,尺寸为640×360像素
- 注意:当直接访问`dataset[0]["image"]`时,图像文件会自动解码。若需处理大量图像文件,解码过程可能耗费较长时间。因此建议优先通过样本索引访问图像字段,即优先使用`dataset[0]["image"]`而非`dataset["image"][0]`。
- **label**:整数类型的分类标签。
类别标签映射关系如下:
json
{
"Among Us": 0,
"Apex Legends": 1,
"Fortnite": 2,
"Forza Horizon": 3,
"Free Fire": 4,
"Genshin Impact": 5,
"God of War": 6,
"Minecraft": 7,
"Roblox": 8,
"Terraria": 9
}
python
>>> dataset["train"][0]
{'image': <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=640x360>,
'label': 0}
### 数据划分
| | 训练集 |
| ---------- | -------- |
| 样本数量 | 10000 |
### 注意事项
#### 训练集测试集划分
python
>>> ds_new = dataset["train"].train_test_split(0.2, seed=42, stratify_by_column="label")
>>> ds_new
DatasetDict({
train: Dataset({
features: ['image', 'label'],
num_rows: 8000
})
test: Dataset({
features: ['image', 'label'],
num_rows: 2000
})
})