yunusskeete commited on
Commit
3608fab
·
1 Parent(s): 611ebe5

Update Carla-COCO-Object-Detection-Dataset.py

Browse files
Carla-COCO-Object-Detection-Dataset.py CHANGED
@@ -60,7 +60,7 @@ class CARLA_COCO(datasets.GeneratorBasedBuilder):
60
  features = datasets.Features(
61
  {
62
  "image_id": datasets.Value("int64"),
63
- "image": datasets.Image(),
64
  "width": datasets.Value("int32"),
65
  "height": datasets.Value("int32"),
66
  "file_name": datasets.Value("string"),
@@ -92,7 +92,6 @@ class CARLA_COCO(datasets.GeneratorBasedBuilder):
92
  name=datasets.Split.TRAIN,
93
  # These kwargs will be passed to _generate_examples
94
  gen_kwargs={
95
- # "filepath": downloaded_files["train"],
96
  "filepath": os.path.join(downloaded_files["train"], "train.jsonl"),
97
  "split": "train"
98
  }
@@ -101,7 +100,6 @@ class CARLA_COCO(datasets.GeneratorBasedBuilder):
101
  name=datasets.Split.TEST,
102
  # These kwargs will be passed to _generate_examples
103
  gen_kwargs={
104
- # "filepath": downloaded_files["test"],
105
  "filepath": os.path.join(downloaded_files["test"], "test.jsonl"),
106
  "split": "test"
107
  }
 
60
  features = datasets.Features(
61
  {
62
  "image_id": datasets.Value("int64"),
63
+ # "image": datasets.Image(),
64
  "width": datasets.Value("int32"),
65
  "height": datasets.Value("int32"),
66
  "file_name": datasets.Value("string"),
 
92
  name=datasets.Split.TRAIN,
93
  # These kwargs will be passed to _generate_examples
94
  gen_kwargs={
 
95
  "filepath": os.path.join(downloaded_files["train"], "train.jsonl"),
96
  "split": "train"
97
  }
 
100
  name=datasets.Split.TEST,
101
  # These kwargs will be passed to _generate_examples
102
  gen_kwargs={
 
103
  "filepath": os.path.join(downloaded_files["test"], "test.jsonl"),
104
  "split": "test"
105
  }