Update README.md
Browse files
README.md
CHANGED
@@ -30,11 +30,18 @@ from datasets import load_dataset
|
|
30 |
|
31 |
dataset = load_dataset("SWHL/CDLA")
|
32 |
|
33 |
-
train_data = dataset[
|
34 |
-
print(train_data)
|
35 |
-
|
36 |
-
val_data = dataset[
|
37 |
-
print(val_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
```
|
39 |
|
40 |
### 下载链接
|
|
|
30 |
|
31 |
dataset = load_dataset("SWHL/CDLA")
|
32 |
|
33 |
+
train_data = dataset["train"]
|
34 |
+
print(train_data[0])
|
35 |
+
|
36 |
+
val_data = dataset["validation"]
|
37 |
+
print(val_data[0])
|
38 |
+
|
39 |
+
# {'image': <PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=1240x1754 at 0x12FEE3DF0>,
|
40 |
+
# 'version': '4.5.6', 'flags': {},
|
41 |
+
# 'shapes': [
|
42 |
+
# {'label': 'Header', 'points': [[118.0, 135.66666666666669]], 'group_id': None, 'shape_type': 'polygon', 'flags': {}}
|
43 |
+
# ],
|
44 |
+
# 'imagePath': 'train_0001.jpg', 'imageData': None, 'imageHeight': 1754, 'imageWidth': 1240}
|
45 |
```
|
46 |
|
47 |
### 下载链接
|