Skip to content

fix: detect 모델 다운로드 xet 비활성화 + 탐지 근거 설명 켜기 - #97

Merged
jyx-07 merged 2 commits into
mainfrom
fix/detect-disable-xet
Nov 11, 2026
Merged

jyx-07 merged 2 commits into
mainfrom
fix/detect-disable-xet

Conversation

@jyx-07

@jyx-07 jyx-07 commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

문제

  1. fix: 딥페이크 탐지 기본 방식을 전용 모델(http)로 변경 #96 배포에서 detect가 5분 안에 준비되지 않아 llm으로 폴백됨. HuggingFace xet 경로(cas-server.xethub.hf.co) 연결 시간 초과로 model.onnx가 0바이트에서 멈춤. 같은 서버에서 일반 HTTP로는 87MB를 4초에 받음.
  2. http 모드에서는 근거가 파일 메타데이터 탭뿐이라 사용자에게 설명이 부족함.

변경

  • detect-lab/Dockerfile: HF_HUB_DISABLE_XET=1
  • docker-compose: DEEPFAKE_EXPLAIN_ENABLED 기본 true (운영 .env에 GROQ_API_KEY 있음 확인)
  • LlmDeepfakeExplainer: 근거마다 2~4단어 제목 → 탭 이름. 없거나 20자 초과·단정 표현이면 OTHER

확인

  • 로컬(http 모드 + explain): HIGH 79, 근거 탭 "이미지 구성 단절", "피부 질감 과다 보정"
  • ./gradlew test 통과

🤖 Generated with Claude Code

jyx-07 and others added 2 commits November 11, 2026 11:11
운영 서버에서 cas-server.xethub.hf.co 연결이 시간 초과되어 모델을 받지 못하고,
detect가 5분 안에 healthy가 되지 않아 llm으로 폴백되고 있었다. 일반 HTTP 다운로드는 4초.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- LlmDeepfakeExplainer가 근거마다 2~4단어 제목을 받아 탭 이름(type)으로 쓴다. 없거나 20자 초과·단정 표현이면 OTHER
- docker-compose에서 DEEPFAKE_EXPLAIN_ENABLED 기본 true

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jyx-07 jyx-07 changed the title fix: detect 모델 다운로드에서 HF xet 비활성화 fix: detect 모델 다운로드 xet 비활성화 + 탐지 근거 설명 켜기 Nov 11, 2026
@jyx-07
jyx-07 merged commit 8464ad4 into main Nov 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant