How seungmin0625/photo-ai-detector-v32 works
This repository develops and serves a single-image detector for AI-generated secondhand-market photos. The user workflow is upload or provide an image, select a detector by file format, score it, and return a three-level result; high-resolution JPEG/PNG receives an additional resized-image check. The graph also shows the model-training and robustness-evaluation work that supports the shipped detector. The README documents the main inference stages; some unsampled implementation details and links to the team DDA code are therefore represented only where documented.
Main entry points: detector_v32.py Format and hires routing · views_v31.py v3.1 image views · detector_v3.py Three-head detector · finetune_v31.py v3.1 fine-tuning
Components 16
Serving and inference
- Personal app server
personal_app/server_v32.py - Format and hires routing
detector_v32.py - Three-level result
detector_v3.py
Detector models
- Three-head detector
detector_v3.py - v3.1 image views
views_v31.py - DDA backbone
Training and features
- Feature extraction
extract_features.py - LoRA fine-tuning
finetune_lora.py - v3 fine-tuning
finetune_v3.py - v3.1 fine-tuning
finetune_v31.py - Head selection
final_candidates.py
Evaluation and robustness
- Feature evaluation
evaluate.py - Demo benchmark
demo_benchmark.py - Upload stress tests
stress_v31.py - Team-style evaluation
team_style_eval.py
Other components
- Image user
Connections 19
- Image user → Personal app server: uploads image
README.md - Personal app server → Format and hires routing: uses detector
personal_app/server_v32.py - Format and hires routing → Three-head detector: routes non-WEBP
README.md - Format and hires routing → v3.1 image views: routes WEBP
README.md - Format and hires routing → Format and hires routing: checks hires copy
README.md - Three-head detector → DDA backbone: scores image
README.md - Three-head detector → Three-level result: returns tier
README.md - v3.1 image views → DDA backbone: prepares model views
views_v31.py - Feature extraction → DDA backbone: extracts features
extract_features.py - LoRA fine-tuning → DDA backbone: fine-tunes adapters
finetune_lora.py - v3 fine-tuning → DDA backbone: fine-tunes adapters
finetune_v3.py - v3.1 fine-tuning → v3.1 image views: uses augmentations
finetune_v31.py - v3.1 fine-tuning → DDA backbone: fine-tunes adapters
finetune_v31.py - Head selection → Feature evaluation: compares candidates
final_candidates.py - Feature evaluation → Feature extraction: evaluates cached features
evaluate.py - Demo benchmark → Head selection: compares recipes
demo_benchmark.py - Upload stress tests → v3.1 image views: tests image conditions
stress_v31.py - Team-style evaluation → Upload stress tests: reuses stress fusion
team_style_eval.py - Team-style evaluation → v3.1 image views: applies upload conditions
team_style_eval.py