Downloads · 30 days
23
4% of all-time downloads
diabolic6045/indian_cities_image_classification
indian_cities_image_classification is a image classification model from diabolic6045. Use it when you need a label for an image. It is set up for tf-keras.
This Streamlit app is designed to detect the location of an Indian city in an uploaded image. It uses a deep learning model trained on 10,500 images classified into 5 classes of cities including Ahmedabad, Delhi, Kera…
Downloads · 30 days
23
4% of all-time downloads
All-time downloads
552
Public
Repo size
587 MB
Likes
1
Public
Click a slice to open those files.
.h5183 MB · 45%
From the Hugging Face model README
This Streamlit app is designed to detect the location of an Indian city in an uploaded image. It uses a deep learning model trained on 10,500 images classified into 5 classes of cities including Ahmedabad, Delhi, Kerala, Kolkata, and Mumbai. The model was trained in association with Parul University and currently has a test accuracy of 66.3%.
git clone https://github.com/shahdivax/Location-Classification-of-Indian-Cities.git --branch master
pip install -r requirements.txt
streamlit run app.py
For Flask app:<br>
change Directory
cd Flask
run app:
flask run
https://huggingface.co/diabolic6045/indian_cities_image_classification/resolve/main/Demo.mp4
<br> 4. Upload an image in JPG or JPEG format.<br> 5. The app will display the uploaded image and predict the location of the city in the image.<br> 6. The predicted location and accuracy percentage will be displayed.Please note that the app may not work accurately for images that are not clear or do not have a distinct view of the city's landmarks.
A live demo of the app is available here hosted with Streamlit.
The code for this app was written in Python. It uses the following libraries:
The application flow follows the steps below:
This app can be improved by increasing the size of the training dataset and fine-tuning the pre-trained model to increase its accuracy. Additionally, the app can be trained to recognize city landmarks to improve its performance.
arXiv : https://arxiv.org/abs/2403.10912
@article{karangiya2024automatic,
title={Automatic location detection based on deep learning},
author={Karangiya, Anjali and Sharma, Anirudh and Shah, Divax and Badgujar, Kartavya and Thacker, Dr Chintan and Dave, Dainik},
journal={arXiv preprint arXiv:2403.10912},
year={2024}
}