Skip to content

Deep Neural Network that predicts the country of a given image

Notifications You must be signed in to change notification settings

alankct/Geo-Guesser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geo-Guesser

What is Geoguessr? Geoguessr is an online game that places you on a random street in the world. You can move around (using Google Street View), and your job is to guess what location you are in.

Main Idea: Alex and I wanted to build a deep neural network model that could accurately predict the country where a picture was taken.

Screenshot 2023-12-19 at 9 55 26 PM

Our work in this project exposed us to the complex problems of Machine Learning and Computer Vision, and we gained valuable skills and insights into the world of data, problem complexity, and performance optimization.

Results

Our work led to a systematic (and creative) development of balanced data, an accurate country predictor model, as well as a performance optimization that reduced our epoch training time from 30 minutes down to 5 minutes (which can be applied to any model that uses transfer learning).

Data

Initally, our geographical data (image) distribution looked like this:

Screenshot 2023-12-19 at 10 03 47 PM

After appending and making changes to our dataset, filtering images from outlier countries, calling 15,000 Google Maps API requests using a coordinates dataset, using a custom (uniform vs not-uniform) balancing dataset, and mapping our distributions to the overall Google Maps distribution, our data distribution now looked like this:

Screenshot 2023-12-19 at 10 08 50 PM

Performance

Because we had accumulated a dataset of around 100,000 images, our training was slow and expensive. We tackled performance issues by optimizing our transfer learning—and using tensors instead of images. Using a ResNet152 backbone, and our own classification model—we were able to speed epochs by 83%. We did this by creating a new dataset of tensors with the extracted features from ResNet.

Screenshot 2023-12-19 at 10 19 27 PM

About

Deep Neural Network that predicts the country of a given image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published