{"id":16271484,"url":"https://github.com/shreyaskarnik/whereami","last_synced_at":"2025-04-08T15:29:50.668Z","repository":{"id":140198854,"uuid":"122719647","full_name":"shreyaskarnik/whereami","owner":"shreyaskarnik","description":"WhereAMI","archived":false,"fork":false,"pushed_at":"2018-02-28T05:30:07.000Z","size":264,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T15:57:18.485Z","etag":null,"topics":["geolocation","mxnet","neural-network"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shreyaskarnik.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-24T08:22:17.000Z","updated_at":"2018-02-24T08:56:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f94e3902-f191-46ac-9605-e5d86f11a494","html_url":"https://github.com/shreyaskarnik/whereami","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shreyaskarnik%2Fwhereami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shreyaskarnik%2Fwhereami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shreyaskarnik%2Fwhereami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shreyaskarnik%2Fwhereami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shreyaskarnik","download_url":"https://codeload.github.com/shreyaskarnik/whereami/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247870701,"owners_count":21009908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geolocation","mxnet","neural-network"],"created_at":"2024-10-10T18:13:39.167Z","updated_at":"2025-04-08T15:29:50.629Z","avatar_url":"https://github.com/shreyaskarnik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WhereAMI\n\nPredicting Geolocation from image using machine learning\n\n## Background and Acknowledgements\n\nThis repo houses the code for predicting geolocation from a given image url in form of a restful API.\n\nThe model, pre-processing code and labels used in this project comes from [Multimedia Berkeley Group](https://github.com/multimedia-berkeley/tutorials) the model is a MxNet model trained on [YFCC100M Multimedia Commons](https://aws.amazon.com/public-datasets/multimedia-commons/) dataset.\n\nInspired from [@ranman](https://github.com/ranman)'s [Twitch livestream AI Twitter bot session](https://www.twitch.tv/videos/231561561)\n\nThis project was built to test the code locally, however if you follow the above interactive coding session you should be able to deploy this on AWS easily.\n\n## Usage\n\n* Download the model using `python download.py`\n* Execute `docker-compose up`\n\n  * This will build the image based on the `Dockerfile` and start the API at `http://localhost:8080`\n    * You can start testing the API using `cURL` or Postman\n    ```bash\n    curl -X POST \\\n    http://localhost:8080/invocations \\\n    -H 'Content-Type: application/json' \\\n    -d '{\n        \"url\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Statue_of_Liberty_7.jpg/250px-Statue_of_Liberty_7.jpg\",\n        \"max_predictions\": 5\n        }'\n    ```\n\n  * You should see top 5 predictions returned in JSON array sorted by probability of the geolocation.\n    ``` json\n    [\n        {\n            \"city\": \"New York City\",\n            \"country\": \"US\",\n            \"lat\": \"40.71427\",\n            \"lon\": \"-74.00597\",\n            \"region\": \"New York\"\n        },\n        {\n            \"city\": \"New York City\",\n            \"country\": \"US\",\n            \"lat\": \"40.71427\",\n            \"lon\": \"-74.00597\",\n            \"region\": \"New York\"\n        },\n        {\n            \"city\": \"New York City\",\n            \"country\": \"US\",\n            \"lat\": \"40.71427\",\n            \"lon\": \"-74.00597\",\n            \"region\": \"New York\"\n        },\n        {\n            \"city\": \"New York City\",\n            \"country\": \"US\",\n            \"lat\": \"40.71427\",\n            \"lon\": \"-74.00597\",\n            \"region\": \"New York\"\n        },\n        {\n            \"city\": \"New York City\",\n            \"country\": \"US\",\n            \"lat\": \"40.71427\",\n            \"lon\": \"-74.00597\",\n            \"region\": \"New York\"\n        }\n    ]\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshreyaskarnik%2Fwhereami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshreyaskarnik%2Fwhereami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshreyaskarnik%2Fwhereami/lists"}