1. 프로젝트 개요


2. 모델 선정 및 아키텍처

2.1 선정 모델: FLUX.2-klein-4B


3. 핵심 엔지니어링 & 트러블슈팅 (Troubleshooting)

📂 기반 코드: Black Forest Labs 공식 GitHub 리포지토리(https://github.com/black-forest-labs/flux2)를 git clone하여 베이스라인 구축.

이슈 1: Windows 환경에서의 경로 인식 실패 (FileNotFoundError)

# [Before] 수정 전 코드: 경로가 완벽하지 않으면 리스트에 추가조차 안 됨
if os.path.exists(part):
    items.append(Path(part))
else:
    print(f"File {part} not found. Skipping for now...")

# [After] 수정 후 코드: Windows 경로 호환성을 위해 체크 로직 우회 및 강제 주입
items.append(Path(part)) 
# Windows 환경 변수 문제로 인한 False Negative 방지

이슈 2: 모델 로딩 최적화 및 호환성 해결 (Memory Optimization)