Sayali9141 commited on
Commit
e1cf256
1 Parent(s): f8c5b58

Update traffic_signal_images.py

Browse files
Files changed (1) hide show
  1. traffic_signal_images.py +4 -20
traffic_signal_images.py CHANGED
@@ -18,26 +18,19 @@ year={2023}
18
  }
19
  """
20
 
21
- # TODO: Add description of the dataset here
22
- # You can copy an official description
23
  _DESCRIPTION = """\
24
  This dataset contains traffic images from traffic signal cameras of singapore. The images are captured at 1.5 minute interval from 6 pm to 7 pm everyday for the month of January 2024.
25
  """
26
 
27
- # TODO: Add a link to an official homepage for the dataset here
28
  _HOMEPAGE = "https://beta.data.gov.sg/collections/354/view"
29
 
30
- # TODO: Add the licence for the dataset here if you can find it
31
- _LICENSE = ""
32
 
33
- # TODO: Add link to the official dataset URLs here
34
- # The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
35
- # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
36
  # _URL = "https://raw.githubusercontent.com/Sayali-pingle/HuggingFace--Traffic-Image-Dataset/main/camera_data.csv"
37
 
38
- # TODO: Name of the dataset usually matches the script name with CamelCase instead of snake_case
39
- class TrafficImages(datasets.GeneratorBasedBuilder):
40
- """TODO: Short description of my dataset."""
41
 
42
  # _URLS = _URLS
43
  VERSION = datasets.Version("1.1.0")
@@ -59,15 +52,6 @@ class TrafficImages(datasets.GeneratorBasedBuilder):
59
  citation=_CITATION,
60
  )
61
 
62
- # def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
63
- # urls_to_download = self._URL
64
- # downloaded_files = dl_manager.download_and_extract(urls_to_download)
65
-
66
- # return [
67
- # datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["train"]}),
68
- # datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={"filepath": downloaded_files["dev"]}),
69
- # ]
70
-
71
  def _split_generators(self, dl_manager: datasets.DownloadManager):
72
  # The URLs should be the paths to the raw files in the Hugging Face dataset repository
73
  urls_to_download = {
 
18
  }
19
  """
20
 
 
 
21
  _DESCRIPTION = """\
22
  This dataset contains traffic images from traffic signal cameras of singapore. The images are captured at 1.5 minute interval from 6 pm to 7 pm everyday for the month of January 2024.
23
  """
24
 
25
+
26
  _HOMEPAGE = "https://beta.data.gov.sg/collections/354/view"
27
 
 
 
28
 
 
 
 
29
  # _URL = "https://raw.githubusercontent.com/Sayali-pingle/HuggingFace--Traffic-Image-Dataset/main/camera_data.csv"
30
 
31
+
32
+ class TrafficSignalImages(datasets.GeneratorBasedBuilder):
33
+ """My dataset is in the form of CSV file hosted on my github. It contains traffic images from 1st Jan 2024 to 31st Jan 2024 from 6 to 7 pm everyday. The original code to fetch these images has been commented in the generate_examples function."""
34
 
35
  # _URLS = _URLS
36
  VERSION = datasets.Version("1.1.0")
 
52
  citation=_CITATION,
53
  )
54
 
 
 
 
 
 
 
 
 
 
55
  def _split_generators(self, dl_manager: datasets.DownloadManager):
56
  # The URLs should be the paths to the raw files in the Hugging Face dataset repository
57
  urls_to_download = {