leowang707
commited on
Commit
•
65e8dd4
1
Parent(s):
14e56f6
Upload Boat_dataset.py
Browse files- Boat_dataset.py +3 -3
Boat_dataset.py
CHANGED
@@ -23,7 +23,7 @@ _HOMEPAGE = "https://huggingface.co/datasets/leowang707/Boat_dataset/resolve/mai
|
|
23 |
_LICENSE = ""
|
24 |
|
25 |
_URLS = {
|
26 |
-
"classes": f"{_HOMEPAGE}/data/classes.txt",
|
27 |
"train": f"{_HOMEPAGE}/data/instances_train2023r.jsonl",
|
28 |
"val": f"{_HOMEPAGE}/data/instances_val2023r.jsonl",
|
29 |
}
|
@@ -63,8 +63,8 @@ class BoatDataset(datasets.GeneratorBasedBuilder):
|
|
63 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
64 |
|
65 |
# Load class labels from the classes file
|
66 |
-
with open('classes.txt', 'r') as file:
|
67 |
-
|
68 |
|
69 |
return [
|
70 |
datasets.SplitGenerator(
|
|
|
23 |
_LICENSE = ""
|
24 |
|
25 |
_URLS = {
|
26 |
+
# "classes": f"{_HOMEPAGE}/data/classes.txt",
|
27 |
"train": f"{_HOMEPAGE}/data/instances_train2023r.jsonl",
|
28 |
"val": f"{_HOMEPAGE}/data/instances_val2023r.jsonl",
|
29 |
}
|
|
|
63 |
downloaded_files = dl_manager.download_and_extract(_URLS)
|
64 |
|
65 |
# Load class labels from the classes file
|
66 |
+
# with open('classes.txt', 'r') as file:
|
67 |
+
# classes = [line.strip() for line in file.readlines()]
|
68 |
|
69 |
return [
|
70 |
datasets.SplitGenerator(
|