3d-house-wireframe / 3d-house-wireframe-dataset

22 stars 1 forks source link

3D HOUSE WIREFRAME DATASET

Description

This project is dedicated to working with 3d house wireframe datasets stored in NPZ files. It includes a Python script for reading and visualizing 3D wireframe data using the Open3D library. The dataset and related scripts are organized to facilitate easy loading, processing, and visualization of 3D wireframes.

For more details, please visit our project homepage: https://vcc.tech/research/2024/3DWire.

Dataset Download

You can download the 3D house wireframe dataset from the following link: Download Dataset

Once downloaded, extract the zip file into the npz directory as shown in the directory structure below.

Directory Structure

3D_HOUSE_WIREFRAME_DATASET/
│
├── npz/
│   ├── 00000.npz
│   ├── 00001.npz
│   ├── ...
│   └── [more NPZ files]
│
├── read_npz.py
│
└── README.md

Usage

Prerequisites

Make sure you have Python installed along with the necessary libraries:

You can install these libraries using pip:

pip install open3d numpy

Running the Script

To visualize a 3d house wireframe from an NPZ file, follow these steps:

  1. Update the file_path variable in read_npz.py to point to the desired NPZ file.
  2. Run the script:
    python read_npz.py

Script Explanation

The read_npz.py script performs the following tasks:

  1. Loads the vertices and lines data from the specified NPZ file.
  2. Checks if the data is correctly loaded.
  3. Creates a LineSet object using Open3D.
  4. Visualizes the wireframe using Open3D's visualization tools.

Acknowledgments

Citation

If you find our work useful in your research, please consider citing:

@article{3DWire24,
  title={Generating 3D House Wireframes with Semantics}, 
  author={Xueqi Ma and Yilin Liu and Wenjun Zhou and Ruowei Wang and Hui Huang},
  booktitle={ECCV},
  pages={},
  year={2024}
}