Update script to hub
Browse files- Boat_dataset.py +2 -25
Boat_dataset.py
CHANGED
|
@@ -1,19 +1,4 @@
|
|
| 1 |
# Source: https://github.com/huggingface/datasets/blob/main/templates/new_dataset_script.py
|
| 2 |
-
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
| 3 |
-
#
|
| 4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
-
# you may not use this file except in compliance with the License.
|
| 6 |
-
# You may obtain a copy of the License at
|
| 7 |
-
#
|
| 8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
-
#
|
| 10 |
-
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
-
# See the License for the specific language governing permissions and
|
| 14 |
-
# limitations under the License.
|
| 15 |
-
# TODO: Address all TODOs and remove all explanatory comments
|
| 16 |
-
|
| 17 |
|
| 18 |
import csv
|
| 19 |
import json
|
|
@@ -22,8 +7,6 @@ import os
|
|
| 22 |
import datasets
|
| 23 |
|
| 24 |
|
| 25 |
-
# Add BibTeX citation
|
| 26 |
-
# Find for instance the citation on arxiv or on the dataset repo/website
|
| 27 |
_CITATION = """\
|
| 28 |
@InProceedings{huggingface:dataset,
|
| 29 |
title = {Boat dataset},
|
|
@@ -33,21 +16,15 @@ year={2024}
|
|
| 33 |
}
|
| 34 |
"""
|
| 35 |
|
| 36 |
-
|
| 37 |
-
# You can copy an official description
|
| 38 |
_DESCRIPTION = """\
|
| 39 |
This dataset is designed to solve object detection task.
|
| 40 |
"""
|
| 41 |
|
| 42 |
-
|
| 43 |
-
_HOMEPAGE = "https://huggingface.co/datasets/zhuchi76/Boat_dataset"
|
| 44 |
|
| 45 |
-
# Add the licence for the dataset here if you can find it
|
| 46 |
_LICENSE = ""
|
| 47 |
|
| 48 |
-
# Add link to the official dataset URLs here
|
| 49 |
-
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
| 50 |
-
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
| 51 |
_URLS = {
|
| 52 |
"images": f"{_HOMEPAGE}/data/images.tar.gz",
|
| 53 |
"anno": {
|
|
|
|
| 1 |
# Source: https://github.com/huggingface/datasets/blob/main/templates/new_dataset_script.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
import csv
|
| 4 |
import json
|
|
|
|
| 7 |
import datasets
|
| 8 |
|
| 9 |
|
|
|
|
|
|
|
| 10 |
_CITATION = """\
|
| 11 |
@InProceedings{huggingface:dataset,
|
| 12 |
title = {Boat dataset},
|
|
|
|
| 16 |
}
|
| 17 |
"""
|
| 18 |
|
| 19 |
+
|
|
|
|
| 20 |
_DESCRIPTION = """\
|
| 21 |
This dataset is designed to solve object detection task.
|
| 22 |
"""
|
| 23 |
|
| 24 |
+
_HOMEPAGE = "https://huggingface.co/datasets/zhuchi76/Boat_dataset/resolve/main"
|
|
|
|
| 25 |
|
|
|
|
| 26 |
_LICENSE = ""
|
| 27 |
|
|
|
|
|
|
|
|
|
|
| 28 |
_URLS = {
|
| 29 |
"images": f"{_HOMEPAGE}/data/images.tar.gz",
|
| 30 |
"anno": {
|