Skip to content

Commit

Permalink
commit success
Browse files Browse the repository at this point in the history
  • Loading branch information
TaskerJang committed Jun 17, 2024
1 parent 1412011 commit fb4a17a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Empty file added tracking/__init__.py
Empty file.
12 changes: 9 additions & 3 deletions tracking/our_track.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import sys
from pathlib import Path

# 'tracking' 모듈 경로를 시스템 경로에 추가합니다.
tracking_path = Path("K:/lost-and-find/tracking")
# 현재 스크립트 파일의 위치를 기준으로 'tracking' 모듈 경로를 시스템 경로에 추가합니다.
current_dir = Path(__file__).resolve().parent
tracking_path = current_dir.parent # 상위 디렉토리를 추가

# 경로 출력 (디버깅용)
print(f"Current directory: {current_dir}")
print(f"Tracking path: {tracking_path}")

# 시스템 경로에 추가
sys.path.append(str(tracking_path))

from tracking.detectors import get_yolo_inferer
Expand All @@ -27,7 +34,6 @@
__tr = TestRequirements()
__tr.check_packages(('ultralytics @ git+https://github.com/mikel-brostrom/ultralytics.git', )) # install


# BLIP 모델과 프로세서 초기화
processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-base")
Expand Down

0 comments on commit fb4a17a

Please sign in to comment.