- Notifications
You must be signed in to change notification settings - Fork0
adnan0819/Urban-Tree-Generator
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Urban Tree Generator: Spatio-Temporal and Generative Deep Learning for Urban Tree Localization and Modeling
This repository contains our dataset contribution and codebase toreproduce our papertitled "Urban Tree Generator: Spatio-Temporal and Generative Deep Learning for Urban Tree Localization and Modeling" in CGI 2022 (published in The Visual Computer journal).
Read our paperhere.
Besides using the codebase to reproduce our results, we hope that the dataset and codebase will help other researchers extend our methods in other domains also.
As per our dataset contribution in our paper noted in Sec. 3.1, the annotated dataset of four cities (Chicago, Indianapolis, Austin, and Lagos) into three classes - tree, grass, others can be downloaded fromhere.
A sample of the annotation of Indianapolis is shown below (green = tree, red = grass):
All the required libraries are enlisted inrequirements.txt. To directly install usingpip, please just use:
pip install -r requirements.txt
The repository is arranged so that can be easily reproducible into directories. The directorySegmentation_and_clustering contains all the code necessary to train and infer the segmentation and clustering section as noted in the paper. Here are some points as pre-requisites:
- Clone into this directory.
- Download the preprocessed training data fromhere.
- Place the zip file inside the
Segmentation_and_clusteringdirectory and unzip - A directory called
Datawill be created - Simply run
./Segmentation_and_clustering/python main.pyto train - Inference and usage of pre-trained models are documented and commented inside
main.py
The directoryLocalization contains all the code necessary to train and infer the localization section as noted in the paper (Sec. 4). Here are some points as pre-requisites:
- Clone into this directory.
- Download the preprocessed training data fromhere.
- Place the zip file inside the
Localizationdirectory and unzip - Simply run
./Localization/python train_localization.pyto train the cGAN model - Inference and usage of pre-trained models are documented and commented inside
train_localization.py.
Below is our deep learning model for Segmentation of trees (Sec 3).
For the model of our localization network (Sec. 4) please see the implementatation insidetrain_localization.py which is inspired by the standard TensorflowcGAN network. The figure is reproduced below.
Ref. TensorflowcGAN network.
An illustrative example of our Localization output (bottom row) and ground truth (top row) is shown below in a segment of Chicago (see Sec. 4 and Sec. 5 of our paper for more results and examples).
If our paper, data and/or approach is in any way helpful to you and your research, please cite the paper fromhere as BibTeX.
Alternatively, cite as:
Firoze, A., Benes, B. & Aliaga, D. Urban tree generator: spatio-temporal and generative deep learning for urban tree localization and modeling. Vis Comput (2022). https://doi.org/10.1007/s00371-022-02526-x
About
CGI 2022 Paper Accompanying Code Base and Data
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.



