update
Browse files
README.md
CHANGED
@@ -77,43 +77,42 @@ You can utilize the dataset with YOLOv models for object detection tasks. The cl
|
|
77 |
|
78 |
Make sure to follow the appropriate implementation guidelines and examples for YOLOv models to leverage this dataset effectively.
|
79 |
|
80 |
-
|
81 |
-
'''
|
82 |
# Load the dataset
|
83 |
-
hf_dataset = load_dataset("
|
84 |
-
|
85 |
# Accessing image
|
86 |
image = hf_dataset[1]['image']
|
87 |
-
|
88 |
# Display the image
|
89 |
image.show()
|
90 |
-
|
91 |
# Accessing label and bounding box coordinates
|
92 |
instances = hf_dataset[1]['instances']
|
93 |
for instance in instances:
|
94 |
label = instance['label']
|
95 |
box = instance['box']
|
96 |
-
|
97 |
# Get the class name for the label
|
98 |
class_name = hf_dataset.features['instances']['label'].int2str(label)
|
99 |
print(f"Label: {class_name}")
|
100 |
print(f"Bounding Box: {box}")
|
|
|
|
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
## Dataset Citation
|
105 |
-
|
106 |
-
If you use this wheelchair dataset for object detection in your work, please cite it using the following template:
|
107 |
|
108 |
```
|
109 |
-
@dataset{
|
110 |
-
author = {Falah
|
111 |
title = {Wheelchair Dataset for Object Detection},
|
112 |
year = {2023},
|
113 |
-
publisher = {
|
114 |
-
|
|
|
|
|
115 |
}
|
116 |
```
|
117 |
|
|
|
|
|
|
|
|
|
118 |
|
119 |
-
|
|
|
77 |
|
78 |
Make sure to follow the appropriate implementation guidelines and examples for YOLOv models to leverage this dataset effectively.
|
79 |
|
80 |
+
```python
|
|
|
81 |
# Load the dataset
|
82 |
+
hf_dataset = load_dataset("your_dataset_name", split="train")
|
|
|
83 |
# Accessing image
|
84 |
image = hf_dataset[1]['image']
|
|
|
85 |
# Display the image
|
86 |
image.show()
|
|
|
87 |
# Accessing label and bounding box coordinates
|
88 |
instances = hf_dataset[1]['instances']
|
89 |
for instance in instances:
|
90 |
label = instance['label']
|
91 |
box = instance['box']
|
|
|
92 |
# Get the class name for the label
|
93 |
class_name = hf_dataset.features['instances']['label'].int2str(label)
|
94 |
print(f"Label: {class_name}")
|
95 |
print(f"Bounding Box: {box}")
|
96 |
+
```
|
97 |
+
## Citation
|
98 |
|
99 |
+
If you use this dataset in your research or any other work, please consider citing it as:
|
|
|
|
|
|
|
|
|
100 |
|
101 |
```
|
102 |
+
@dataset{wheel-chair-images-annotation4object-detec_dataset,
|
103 |
+
author = {Falah.G.Salieh},
|
104 |
title = {Wheelchair Dataset for Object Detection},
|
105 |
year = {2023},
|
106 |
+
publisher = {Hugging Face},
|
107 |
+
version = {1.0},
|
108 |
+
location = {Online},
|
109 |
+
url = {Falah/wheel-chair-images-annotation4object-detec}
|
110 |
}
|
111 |
```
|
112 |
|
113 |
+
## License
|
114 |
+
|
115 |
+
Wheelchair Dataset for Object Detection Dataset is provided under the Apache-2.0 license.
|
116 |
+
|
117 |
|
118 |
+
```
|