taesiri commited on
Commit
94cdf44
1 Parent(s): ff658c0

initial commit

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. GamePhysics_GTAV.py +100 -0
  3. README.md +122 -2
  4. gta-v.tar.gz +3 -0
.gitattributes CHANGED
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *.mp3 filter=lfs diff=lfs merge=lfs -text
36
  *.ogg filter=lfs diff=lfs merge=lfs -text
37
  *.wav filter=lfs diff=lfs merge=lfs -text
 
35
  *.mp3 filter=lfs diff=lfs merge=lfs -text
36
  *.ogg filter=lfs diff=lfs merge=lfs -text
37
  *.wav filter=lfs diff=lfs merge=lfs -text
38
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
GamePhysics_GTAV.py ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """mini-GamePhysics test Dataset """
2
+
3
+ from __future__ import absolute_import, division, print_function
4
+
5
+ import csv
6
+ import json
7
+ import os
8
+
9
+ import datasets
10
+ from datasets import Dataset
11
+
12
+
13
+ # TODO: Add BibTeX citation
14
+ # Find for instance the citation on arxiv or on the dataset repo/website
15
+ _CITATION = """\
16
+ @article{taesiri2022clip,
17
+ title={CLIP meets GamePhysics: Towards bug identification in gameplay videos using zero-shot transfer learning},
18
+ author={Taesiri, Mohammad Reza and Macklon, Finlay and Bezemer, Cor-Paul},
19
+ journal={arXiv preprint arXiv:2203.11096},
20
+ year={2022}
21
+ }
22
+ """
23
+
24
+
25
+ # TODO: Add description of the dataset here
26
+ # You can copy an official description
27
+ _DESCRIPTION = """\
28
+ A test dataset for GamePhysics
29
+ """
30
+
31
+ # TODO: Add a link to an official homepage for the dataset here
32
+ _HOMEPAGE = "https://asgaardlab.github.io/CLIPxGamePhysics/"
33
+
34
+ # TODO: Add the licence for the dataset here if you can find it
35
+ _LICENSE = ""
36
+
37
+ # TODO: Add link to the official dataset URLs here
38
+ # The HuggingFace dataset library don't host the datasets but only point to the original files
39
+ # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
40
+
41
+ _URLS = {
42
+ "Grand_Theft_Auto_V": "https://huggingface.co/datasets/taesiri/GamePhysics_Grand_Theft_Auto_V/resolve/main/gta-v.tar.gz"
43
+ }
44
+
45
+ _NAMES = ["Grand_Theft_Auto_V"]
46
+
47
+
48
+ class GamePhysics_Grand_Theft_Auto_VConfig(datasets.BuilderConfig):
49
+ """BuilderConfig for GamePhysics."""
50
+
51
+ def __init__(self, **kwargs):
52
+ """BuilderConfig for GamePhysics_Grand_Theft_Auto_V.
53
+ Args:
54
+ **kwargs: keyword arguments forwarded to super.
55
+ """
56
+ super(GamePhysics_Grand_Theft_Auto_VConfig, self).__init__(
57
+ version=datasets.Version("0.0.1", ""), **kwargs
58
+ )
59
+
60
+
61
+ class GamePhysics_Grand_Theft_Auto_V(datasets.GeneratorBasedBuilder):
62
+ """Test dataset for GamePhysics"""
63
+
64
+ BUILDER_CONFIGS = [
65
+ GamePhysics_Grand_Theft_Auto_VConfig(
66
+ name="GamePhysics_Grand_Theft_Auto_V",
67
+ description="GamePhysics - Grand Theft Auto V",
68
+ )
69
+ ]
70
+
71
+ def _info(self):
72
+ return datasets.DatasetInfo(
73
+ description=_DESCRIPTION,
74
+ features=datasets.Features(
75
+ {
76
+ "video_file_path": datasets.Value("string"),
77
+ "labels": datasets.features.ClassLabel(names=_NAMES),
78
+ }
79
+ ),
80
+ supervised_keys=None,
81
+ homepage=_HOMEPAGE,
82
+ citation=_CITATION,
83
+ )
84
+
85
+ def _split_generators(self, dl_manager):
86
+ data_files = dl_manager.download_and_extract(_URLS)
87
+ return [
88
+ datasets.SplitGenerator(
89
+ name="Grand_Theft_Auto_V",
90
+ gen_kwargs={
91
+ "files": dl_manager.iter_files([data_files["Grand_Theft_Auto_V"]]),
92
+ },
93
+ ),
94
+ ]
95
+
96
+ def _generate_examples(self, files):
97
+ for i, path in enumerate(files):
98
+ file_name = os.path.basename(path)
99
+ if file_name.endswith(".mp4"):
100
+ yield i, {"video_file_path": path, "labels": "Grand_Theft_Auto_V"}
README.md CHANGED
@@ -1,3 +1,123 @@
1
  ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ languages:
5
+ - en
6
+
7
+ # Dataset Card for GamePhysics_Grand_Theft_Auto_V
8
+
9
+ ## Table of Contents
10
+ - [Dataset Description](#dataset-description)
11
+ - [Dataset Summary](#dataset-summary)
12
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
13
+ - [Languages](#languages)
14
+ - [Dataset Structure](#dataset-structure)
15
+ - [Data Instances](#data-instances)
16
+ - [Data Fields](#data-instances)
17
+ - [Data Splits](#data-instances)
18
+ - [Dataset Creation](#dataset-creation)
19
+ - [Curation Rationale](#curation-rationale)
20
+ - [Source Data](#source-data)
21
+ - [Annotations](#annotations)
22
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
23
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
24
+ - [Social Impact of Dataset](#social-impact-of-dataset)
25
+ - [Discussion of Biases](#discussion-of-biases)
26
+ - [Other Known Limitations](#other-known-limitations)
27
+ - [Additional Information](#additional-information)
28
+ - [Dataset Curators](#dataset-curators)
29
+ - [Licensing Information](#licensing-information)
30
+ - [Citation Information](#citation-information)
31
+
32
+ ## Dataset Description
33
+
34
+ - **Homepage:** https://asgaardlab.github.io/CLIPxGamePhysics/
35
+ - **Repository:** https://github.com/asgaardlab/CLIPxGamePhysics
36
+ - **Paper:** CLIP meets GamePhysics
37
+ - **Leaderboard:** [N/A]
38
+ - **Point of Contact:** [Mohammad Reza Taesiri](mailto:mtaesiri@gmail.com)
39
+
40
+
41
+ ### Dataset Summary
42
+
43
+ The GamePhysics Grand Theft Auto V dataset is a small video dataset of buggy gameplay videos of Grand Theft Auto V game, collected from [GamePhysics](https://www.reddit.com/r/GamePhysics/) subrredit
44
+
45
+ ### Supported Tasks and Leaderboards
46
+
47
+ [N/A]
48
+
49
+ ### Languages
50
+
51
+ [Needs More Information]
52
+
53
+ ## Dataset Structure
54
+
55
+ ### Data Instances
56
+
57
+ [Needs More Information]
58
+
59
+ ### Data Fields
60
+
61
+ [Needs More Information]
62
+
63
+ ### Data Splits
64
+
65
+ [Needs More Information]
66
+
67
+ ## Dataset Creation
68
+
69
+ ### Curation Rationale
70
+
71
+ [Needs More Information]
72
+
73
+ ### Source Data
74
+
75
+ #### Initial Data Collection and Normalization
76
+
77
+ [Needs More Information]
78
+
79
+ #### Who are the source language producers?
80
+
81
+ [Needs More Information]
82
+
83
+ ### Annotations
84
+
85
+ #### Annotation process
86
+
87
+ [Needs More Information]
88
+
89
+ #### Who are the annotators?
90
+
91
+ [Needs More Information]
92
+
93
+ ### Personal and Sensitive Information
94
+
95
+ [Needs More Information]
96
+
97
+ ## Considerations for Using the Data
98
+
99
+ ### Social Impact of Dataset
100
+
101
+ [Needs More Information]
102
+
103
+ ### Discussion of Biases
104
+
105
+ [Needs More Information]
106
+
107
+ ### Other Known Limitations
108
+
109
+ [Needs More Information]
110
+
111
+ ## Additional Information
112
+
113
+ ### Dataset Curators
114
+
115
+ [Needs More Information]
116
+
117
+ ### Licensing Information
118
+
119
+ [Needs More Information]
120
+
121
+ ### Citation Information
122
+
123
+ [Needs More Information]
gta-v.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c26ae07fd21d09830f71feb6b507787475dacc84e9626ef982cae7cd24466abf
3
+ size 2240831357