1. 문제 정의

2. 초기 환경

3. 트러블 슈팅 요약

  1. 경로 문제 해결

  2. ZIP 자동 해제 스크립트

    for root, _, files in os.walk(DATA_ROOT):
        for fn in files:
            if fn.lower().endswith('.zip'):
                marker = os.path.join(root, f".unzipped_{fn}")
                if not os.path.exists(marker):
                    zipfile.ZipFile(os.path.join(root, fn)).extractall(root)
                    open(marker, 'w').close()
    
  3. PyTorch/TorchVision 호환성

  4. YOLO8 업그레이드

  5. 전체 파이프라인 재설계

    1. Detect → task=detect 로 메뉴 바운딩·분류
    2. Segment → task=segment 로 인스턴스별 마스크 획득
    3. Depth → MiDaS 모노큘러 depth 맵 생성
    4. 부피 계산 → 마스크_면적 × depth
    5. 잔반률 → 초기 vs. 퇴식 부피 비율

4. 결론 및 적용 방안