Challenges Faced
1. Dataset Collection and Quality
- Collecting a balanced dataset containing both real and GAN-generated images was challenging
- Ensuring diversity in faces, lighting conditions, and resolutions required careful dataset selection
- Cleaning and labeling the data correctly was necessary to avoid biased or misleading training
2. Model Training and Optimization
- Training the MesoNet CNN required multiple experiments to find suitable hyperparameters
- Avoiding overfitting while maintaining good accuracy was challenging due to limited data
- Model performance varied with image resolution and quality, requiring careful preprocessing
3. GAN Evolution and Generalization
- Deepfake generation techniques evolve rapidly
- The model sometimes struggled with deepfakes generated by unseen GAN architectures
- Ensuring reasonable generalization beyond the training dataset was a key challenge
4. Frontend–Backend Integration
- Handling image uploads via multipart form data and ensuring secure transmission was complex
- Managing CORS policies and environment configurations required careful setup
- Providing smooth user feedback with loading states and error handling added complexity