Commit
·
2d95983
1
Parent(s):
231f332
Update README
Browse files
README.md
CHANGED
@@ -8,6 +8,12 @@ size_categories:
|
|
8 |
|
9 |
# Brogue Map Dataset
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
## 1. Data Explanation
|
12 |
|
13 |
This is the Map dataset from the open-sourced game [Brogue](https://github.com/tmewett/BrogueCE). It contains 40,000 train dataset, 10,000 test dataset and 10,000 validation dataset.
|
@@ -79,7 +85,7 @@ from datasets import load_dataset
|
|
79 |
import numpy as np
|
80 |
import matplotlib.pyplot as plt
|
81 |
|
82 |
-
#
|
83 |
dataset = load_dataset("DolphinNie/dungeon-dataset")
|
84 |
|
85 |
# Dataset stored by huggingface is not in a correct format, we need to do further process
|
@@ -101,11 +107,6 @@ dataset_train, dataset_test, dataset_valid = dataset_convert(dataset)
|
|
101 |
|
102 |
# Visualize the datapoints if you want
|
103 |
def visualize_map(dungeon_map):
|
104 |
-
"""
|
105 |
-
Visualization of the map
|
106 |
-
:param map: the dungeon map representation (32x32x6)
|
107 |
-
:return:
|
108 |
-
"""
|
109 |
plt.imshow(dungeon_map, cmap='viridis', interpolation='nearest')
|
110 |
plt.title('dungeon map')
|
111 |
plt.show()
|
|
|
8 |
|
9 |
# Brogue Map Dataset
|
10 |
|
11 |
+
To clone this repo, use:
|
12 |
+
|
13 |
+
```
|
14 |
+
git clone https://huggingface.co/datasets/DolphinNie/dungeon-dataset
|
15 |
+
```
|
16 |
+
|
17 |
## 1. Data Explanation
|
18 |
|
19 |
This is the Map dataset from the open-sourced game [Brogue](https://github.com/tmewett/BrogueCE). It contains 40,000 train dataset, 10,000 test dataset and 10,000 validation dataset.
|
|
|
85 |
import numpy as np
|
86 |
import matplotlib.pyplot as plt
|
87 |
|
88 |
+
# Load dataset from hugging face
|
89 |
dataset = load_dataset("DolphinNie/dungeon-dataset")
|
90 |
|
91 |
# Dataset stored by huggingface is not in a correct format, we need to do further process
|
|
|
107 |
|
108 |
# Visualize the datapoints if you want
|
109 |
def visualize_map(dungeon_map):
|
|
|
|
|
|
|
|
|
|
|
110 |
plt.imshow(dungeon_map, cmap='viridis', interpolation='nearest')
|
111 |
plt.title('dungeon map')
|
112 |
plt.show()
|