Datasets:

Modalities:
Text
Formats:
csv
ArXiv:
Libraries:
Datasets
pandas
License:
Kuan Wei Huang commited on
Commit
96f024b
·
1 Parent(s): ad274bf

added visualization code snippet and example

Browse files
Files changed (2) hide show
  1. README.md +38 -1
  2. example.png +3 -0
README.md CHANGED
@@ -67,6 +67,43 @@ Each `{scene_name}.tar.gz` file contains the following structure when extracted:
67
  ├── ...
68
  ```
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  ## Citation
71
  If you use data from C3, please cite with the following:
72
  ```
@@ -77,5 +114,5 @@ If you use data from C3, please cite with the following:
77
  booktitle={Advances in Neural Information Processing Systems},
78
  volume={37},
79
  year={2025}
80
- }
81
  ```
 
67
  ├── ...
68
  ```
69
 
70
+ ## Example Visualization
71
+ ![Example Visualization](example.png)
72
+ ```
73
+ import matplotlib.pyplot as plt
74
+ import numpy as np
75
+ import pandas as pd
76
+ from PIL import Image
77
+
78
+ # load example data
79
+ data_train = "data/train/
80
+ image_pairs = pd.read_csv(join(data_train, "image_pairs.csv"), header=None)
81
+ id, scene_name, recon_num, floor_plan_path, image_path = image_pairs.iloc[0]
82
+
83
+ plan = Image.open(join("visuals", scene_name, floor_plan_path))
84
+ photo = Image.open(join("visuals", scene_name, image_path))
85
+ corr_path = join(data_train, "correspondences", "0", f"{id:06d}.npy")
86
+ plan_corr, photo_corr = np.load(corr_path)
87
+
88
+
89
+ # plotting
90
+ fig, axes = plt.subplots(1, 2, figsize=(12, 6))
91
+ fig.suptitle(f"Scene: {scene_name}", fontsize=16)
92
+
93
+ axes[0].imshow(plan)
94
+ axes[0].set_title("Floor Plan")
95
+ axes[0].scatter(plan_corr_unscaled[:, 0], plan_corr_unscaled[:, 1], c="r", s=1)
96
+ axes[0].axis('off')
97
+
98
+ axes[1].imshow(photo)
99
+ axes[1].set_title("Photo")
100
+ axes[1].scatter(photo_corr[:, 0], photo_corr[:, 1], c="r", s=1)
101
+ axes[1].axis('off')
102
+
103
+ plt.tight_layout()
104
+ plt.show()
105
+ ```
106
+
107
  ## Citation
108
  If you use data from C3, please cite with the following:
109
  ```
 
114
  booktitle={Advances in Neural Information Processing Systems},
115
  volume={37},
116
  year={2025}
117
+ }
118
  ```
example.png ADDED

Git LFS Details

  • SHA256: 5f54842d200c0d242e6892304b3d76eb9dbfb18149b8fa3909c60412288c0fb7
  • Pointer size: 131 Bytes
  • Size of remote file: 787 kB