This project aims to distinguish between AI-generated and real images using a Convolutional Neural Network (CNN) model. The workflow is divided into three key stages:
- Image Scraping: Collection of a diverse dataset of AI-generated and real images.
- Model Training: Training a CNN to classify images as either AI-generated or real.
- Deployment: Developing an interactive web application using Streamlit for real-time image classification.
- Selenium
- Streamlit
- Clone the repository:
git clone https://github.com/Anand-shreya/Image-Classification.git
- Navigate to the project directory:
cd Image-Classification - Install dependencies:
pip install -r requirements.txt
- Run the Streamlit application:
cd Developement streamlit run app_model1.py
-
Dataset 1 (cat's images) used in training of model1: https://drive.google.com/drive/folders/1DdK5twcPrub0LTmiPbSJcE_8MTh4LerO?usp=sharing
-
Dataset 2 (General images): https://drive.google.com/drive/folders/1prn0DgGpEmvf6nYz6JxjcWB6UgCaGwRY?usp=sharing
- It's good to create a virtual environment before package installation to manage different versions and to avoid any conflict.
To create and activate a virtual environment, use the following commands:
Create a virtual environment:
python -m venv venvActivation
On Windows
.\venv\Scripts\activateOn macOS
source venv/bin/activate