Giter Club home page Giter Club logo

aerial-relocation-scores's Introduction

Aerial Relocation Scores

Let's see if I can make a general purpose aerial imagery vector, then use it to predict how much I want to live in a place.

Contents

  1. Python Setup
  2. Getting Raw Data
  3. Generating Our Data
  4. Running the Analysis

Results


Python Setup

This project uses Python 3.12, but it would probably work with other versions of Python 3.

python3.12 -m venv ./venv/ && \
source ./venv/bin/activate && \
pip install -r requirements.txt

Getting Raw Data

This analysis uses the Inria Aerial Image Labeling Dataset, available at the link on 22 Apr 2024.

  1. Download the multipart 7z files by running (or referencing) scripts/download-data.sh
    • Alternative: curl -k https://files.inria.fr/aerialimagelabeling/getAerial.sh | bash
    • But you shouldn't pipe scripts from the internet to your shell.
    • Make sure you're in the ./data/ directory.
  2. Run or reference scripts/extract-data.sh to extract the archive
  3. Carry on

Generating Our Data

We're going to make little sub-tiles from our images, and associate them with other information (including parent image and image group and a score).

python scripts/generate-subimages.py

Running the Analysis

You've got your virtual environment, installed the deps, made the data.

export PYTHONPATH="${PYTHONPATH}:$(pwd)/src"
python src/pca.py && \
python src/train.py && \
python src/eval.py

If your results look like mine, they aren't useful.

Doing better next time

Why didn't this work well?

  • Maybe our input data vs training data isn't the same zoom level, color space, etc...
  • I'm only extracting color distribution, not the things that actually characterize a place
  • Maybe you can't know enough "ground truth" about a place by the way it's built from overhead

If I wanted to try again - better but slower - I could extract features from images like curviness of roads, angles on buildings, rooftop coloration, road size vs building size, etc...


3D PCA

aerial-relocation-scores's People

Watchers

 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.