Datasets:
lihao57
commited on
Commit
·
0cd4aa7
1
Parent(s):
8a56c8f
add camera_type field
Browse files- README.md +8 -9
- test/metadata.jsonl +2 -2
- train/metadata.jsonl +2 -2
README.md
CHANGED
|
@@ -7,8 +7,6 @@ tags:
|
|
| 7 |
- line-segment-detection
|
| 8 |
- wireframe-parsing
|
| 9 |
- spherical image
|
| 10 |
-
github: https://github.com/lh9171338/ULSD-ISPRS
|
| 11 |
-
paper: https://www.sciencedirect.com/science/article/abs/pii/S0924271621001623
|
| 12 |
size_categories: 1K<n<10
|
| 13 |
|
| 14 |
---
|
|
@@ -60,22 +58,23 @@ ds = load_dataset("lh9171338/SS360")
|
|
| 60 |
# "image": Image(),
|
| 61 |
# "image_file": Value("string"),
|
| 62 |
# "image_size": Sequence(Value("int32")),
|
|
|
|
| 63 |
# "lines": Sequence(Sequence(Sequence(Value("float32")))),
|
| 64 |
# })
|
| 65 |
# ds = load_dataset("lh9171338/SS360", features=features, revision="refs/convert/parquet")
|
| 66 |
print(ds)
|
| 67 |
# DatasetDict({
|
| 68 |
# train: Dataset({
|
| 69 |
-
# features: ['image', 'image_file', 'image_size', 'lines'],
|
| 70 |
# num_rows: 950
|
| 71 |
# })
|
| 72 |
# test: Dataset({
|
| 73 |
-
# features: ['image', 'image_file', 'image_size', 'lines'],
|
| 74 |
# num_rows: 118
|
| 75 |
# })
|
| 76 |
# })
|
| 77 |
print(ds["test"][0].keys())
|
| 78 |
-
# dict_keys(['image', 'image_file', 'image_size', 'lines'])
|
| 79 |
```
|
| 80 |
|
| 81 |
- Load the dataset from local
|
|
@@ -87,16 +86,16 @@ ds = load_dataset("imagefolder", data_dir=".")
|
|
| 87 |
print(ds)
|
| 88 |
# DatasetDict({
|
| 89 |
# train: Dataset({
|
| 90 |
-
# features: ['image', 'image_file', 'image_size', 'lines'],
|
| 91 |
# num_rows: 950
|
| 92 |
# })
|
| 93 |
# test: Dataset({
|
| 94 |
-
# features: ['image', 'image_file', 'image_size', 'lines'],
|
| 95 |
# num_rows: 118
|
| 96 |
# })
|
| 97 |
# })
|
| 98 |
print(ds["test"][0].keys())
|
| 99 |
-
# dict_keys(['image', 'image_file', 'image_size', 'lines'])
|
| 100 |
```
|
| 101 |
|
| 102 |
- Load the dataset with jsonl files
|
|
@@ -106,7 +105,7 @@ import jsonlines
|
|
| 106 |
with jsonlines.open("test/metadata.jsonl") as reader:
|
| 107 |
infos = list(reader)
|
| 108 |
print(infos[0].keys())
|
| 109 |
-
# dict_keys(['
|
| 110 |
```
|
| 111 |
|
| 112 |
## Citation
|
|
|
|
| 7 |
- line-segment-detection
|
| 8 |
- wireframe-parsing
|
| 9 |
- spherical image
|
|
|
|
|
|
|
| 10 |
size_categories: 1K<n<10
|
| 11 |
|
| 12 |
---
|
|
|
|
| 58 |
# "image": Image(),
|
| 59 |
# "image_file": Value("string"),
|
| 60 |
# "image_size": Sequence(Value("int32")),
|
| 61 |
+
# "camera_type": Value("string"),
|
| 62 |
# "lines": Sequence(Sequence(Sequence(Value("float32")))),
|
| 63 |
# })
|
| 64 |
# ds = load_dataset("lh9171338/SS360", features=features, revision="refs/convert/parquet")
|
| 65 |
print(ds)
|
| 66 |
# DatasetDict({
|
| 67 |
# train: Dataset({
|
| 68 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'lines'],
|
| 69 |
# num_rows: 950
|
| 70 |
# })
|
| 71 |
# test: Dataset({
|
| 72 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'lines'],
|
| 73 |
# num_rows: 118
|
| 74 |
# })
|
| 75 |
# })
|
| 76 |
print(ds["test"][0].keys())
|
| 77 |
+
# dict_keys(['image', 'image_file', 'image_size', 'camera_type', 'lines'])
|
| 78 |
```
|
| 79 |
|
| 80 |
- Load the dataset from local
|
|
|
|
| 86 |
print(ds)
|
| 87 |
# DatasetDict({
|
| 88 |
# train: Dataset({
|
| 89 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'lines'],
|
| 90 |
# num_rows: 950
|
| 91 |
# })
|
| 92 |
# test: Dataset({
|
| 93 |
+
# features: ['image', 'image_file', 'image_size', 'camera_type', 'lines'],
|
| 94 |
# num_rows: 118
|
| 95 |
# })
|
| 96 |
# })
|
| 97 |
print(ds["test"][0].keys())
|
| 98 |
+
# dict_keys(['image', 'image_file', 'image_size', 'camera_type', 'lines'])
|
| 99 |
```
|
| 100 |
|
| 101 |
- Load the dataset with jsonl files
|
|
|
|
| 105 |
with jsonlines.open("test/metadata.jsonl") as reader:
|
| 106 |
infos = list(reader)
|
| 107 |
print(infos[0].keys())
|
| 108 |
+
# dict_keys(['image', 'image_file', 'image_size', 'camera_type', 'lines'])
|
| 109 |
```
|
| 110 |
|
| 111 |
## Citation
|
test/metadata.jsonl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0bbae2909831ef1f992284a5e10828426c8cc5c7dfb5adc54e1a2174dfe399b
|
| 3 |
+
size 629221
|
train/metadata.jsonl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7094a03518c1d1276dc2e60d986a7f29ec20710600505ef1529b7271b44256af
|
| 3 |
+
size 4245837
|