Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Urban Region Description

Code for the SIGSPATIAL 2024 short paper "From Geolocated Images to Urban Region Identification and Description: a Large Language Model Approach" (G. Rocchietti, C. Pugliese, G. Sartori Rangel, J. Tyska Carvalho). Paper (ACM DL)

This repository implements an unsupervised method for identifying and describing urban regions from geolocated images (Flickr photos of Pisa, Italy, in the paper). Initially, we cluster the images using the HDBSCAN algorithm. Then, we refine the clusters by exploiting the semantics contained in the captions we generate for each image. Finally, we use the new clusters to produce textual descriptions of the resulting regions. For both the captioning and summarization phases, we leverage the power of different Large Language Models (LLMs).

Installation

To install the necessary dependencies, run the following command:

pip install -r requirements.txt

Captioning uses the spaCy model en_core_web_trf for named-entity recognition. It requires spacy-transformers, which currently pins transformers<4.50; install it in a separate environment if needed (pip install spacy-transformers && python -m spacy download en_core_web_trf).

Usage

To use the Urban Region Description project, follow these steps:

  1. Configure all parameters you want into the data/config.json file.
  2. Place your image dataset into the data/{city}/photos/ folder.
  3. Run
python main.py

Example

Here's an example of how to use this project:

Let's say we have 3 images from a cluster in Pisa. After processing these images through our pipeline, the output will be a textual description of the cluster. This showcases how our project can take a set of images and generate a meaningful description of the urban region they represent.

Cluster:

Generated textual description:

The descriptions largely revolve around prominent
landmarks in Pisa, primarily the Pisa Cathedral and
the Leaning Tower of Pisa. Scenes include various
angles and perspectives of these landmarks from
different times, depictions of people interacting
with these sites, and artistic elements like
mosaics, sculptures, and architecture.

Citation

@inproceedings{rocchietti2024urban,
  author    = {Rocchietti, Guido and Pugliese, Chiara and Sartori Rangel, Gabriel and Tyska Carvalho, Jonata},
  title     = {From Geolocated Images to Urban Region Identification and Description: a Large Language Model Approach},
  booktitle = {Proceedings of the 32nd ACM International Conference on Advances in Geographic Information Systems},
  series    = {SIGSPATIAL '24},
  pages     = {557--560},
  year      = {2024},
  publisher = {ACM},
  doi       = {10.1145/3678717.3691317}
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages