FaceCheck.AI is a full-stack AI-powered application that detects whether a face is real or AI-generated using a custom-trained Convolutional Neural Network (CNN) model. It comes with a sleek modern UI built with Next.js and a backend API using FastAPI.
- Next.js 14 - React framework for production
- TailwindCSS - Utility-first CSS framework
- Vercel - Deployment platform for UI
- FastAPI - Modern, fast Python web framework
- Render - Cloud platform for API deployment
- REST API - Clean API architecture
- TensorFlow/Keras - Deep learning framework
- Custom CNN - Convolutional Neural Network architecture
- 180K+ face dataset - Comprehensive training data
- Upload or paste an image URL to classify faces as REAL or FAKE
- Custom-trained CNN model on 180,000+ face images
- Live probability confidence with detailed result breakdown
- Responsive and clean UI design using Tailwind CSS and Inter/Noto fonts
- Backend REST API using FastAPI deployed on Render with Docker
- Frontend deployed on Vercel
- Containerized deployment for consistent performance across environments
The backend API is containerized using Docker for consistent deployment on Render.
# Dockerfile example structure
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]The custom-trained model demonstrates high accuracy and generalization performance.
Test Accuracy: 0.9165
Classification Report:
precision recall f1-score support
Real 0.92 0.90 0.91 8124
Fake 0.91 0.93 0.92 9424
accuracy 0.92 17548
macro avg 0.92 0.92 0.92 17548
weighted avg 0.92 0.92 0.92 17548
- Node.js 18+
- Python 3.8+
- Docker (for containerized deployment)
- npm or yarn
# Clone the repository
git clone https://github.com/Swastik-59/FaceCheck.AI.git
cd facecheck-ai
# Install dependencies
npm install
# Run development server
npm run dev# Navigate to backend directory
cd backend
# Install Python dependencies
pip install -r requirements.txt
# Run FastAPI server
uvicorn main:app --reload# Build Docker image
docker build -t facecheck-api .
# Run container
docker run -p 8000:8000 facecheck-api
# Or use docker-compose
docker-compose up --build
