Git Product home page Git Product logo

efficientnet-buildingheightestimation's Introduction

Building Height Prediction

This repository contains a Python-based machine learning project for predicting building heights. The project uses PyTorch, PyTorch Lightning, Optuna, and Google Street View API for data downloading, processing, model training, and prediction.

Project Structure

The project is structured as follows:

  • download_massings.py: Downloads a dataset of 3D building massings from the Toronto Open Data portal, unzips the data, and processes it into a pickle file.
  • download_streetview.py: Uses the Google Street View API to download images of buildings. It keeps track of which buildings have been photographed and saves the images to a specified directory.
  • download_cityscapes.py: Downloads and processes the Cityscapes dataset, a popular dataset for semantic urban scene understanding tasks in computer vision.
  • predict.py: Loads a trained model and a dataset, makes predictions on the dataset, and saves the predictions to a CSV file. It also reports some metrics about the predictions, such as Mean Absolute Error (MAE) and standard deviation.
  • train.py: The main training script. It loads the data, applies transformations, and trains a model using PyTorch Lightning. It also supports hyperparameter optimization using Optuna.
  • building_dataset.py: Defines the BuildingDataset class used in the training and prediction scripts.
  • building_model.py: Defines the BuildingModelSm class used in the training and prediction scripts.

Requirements

  • Python 3.8+
  • PyTorch
  • PyTorch Lightning
  • Optuna
  • Google Street View API

Usage

  1. Clone the repository.
  2. Install the required packages.
  3. Run the download_massings.py, download_streetview.py, and download_cityscapes.py scripts to download and process the data.
  4. Run the train.py script to train the model.
  5. Run the predict.py script to make predictions on the dataset.

efficientnet-buildingheightestimation's People

Contributors

alexwolson avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.