How ivanalexo/xception-final-project works
Project type and purpose
• This is a full-stack deepfake-detection system comprised of three parts:
a. An offline model-training pipeline using the Xception architecture (“xception_project”).
b. A Flask-based REST API for serving model inference (“backend_deepfake”).
c. A React/Vite frontend web app (“deepfake-detection”) that lets users upload media and view prediction results.
File structure
• Top-level directories:
• backend_deepfake/ – contains main.py, the Flask entrypoint.
• deepfake-detection/ – React source under src/, public assets in public/, configs for Tailwind, Vite, ESLint, etc.
• xception project/ – Python scripts for data extraction (scripts/), training (xception_train.py), evaluation (evaluate_xception.py), and inference (image_predict.py).
• Patterns:
• Clear separation of concerns: ML training vs. API vs. UI.
• API layer in Flask exposing endpoints for uploading files and returning predictions.
• React hooks (usePredict.js) handling API calls.
• Config/deployment files:
• package.json, vite.config.js, tailwind.config.js in frontend.
• No obvious Docker or Kubernetes manifests, but one could add them.
README for additional insights
• The README confirms the three-component division and intended roles.