From 8642e0e5105dacb2739bff616bc4c9b9ae46ecde Mon Sep 17 00:00:00 2001 From: "AI-team\\cyhan" Date: Mon, 12 May 2025 12:57:24 +0900 Subject: [PATCH] update install script and label --- install.ps1 | 19 +++++++++++++++++++ install.sh | 21 +++++++++++++++++++++ install_script | 2 ++ labels.json | 6 ++++-- 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 install.ps1 create mode 100644 install.sh diff --git a/install.ps1 b/install.ps1 new file mode 100644 index 0000000..7632153 --- /dev/null +++ b/install.ps1 @@ -0,0 +1,19 @@ +# uv와 git이 사전에 설치되어 있다고 가정 + +# 가상환경 생성 +uv venv + +# 가상환경 활성화 (PowerShell) +.\venv\Scripts\Activate.ps1 + +# PyTorch 설치 (CUDA 12.8 버전) +uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 + +# Facebook Research SAM 모델 설치 +uv pip install git+https://github.com/facebookresearch/segment-anything.git +uv pip install git+https://github.com/facebookresearch/sam2.git + +# 기타 필요한 패키지 설치 +uv pip install -r requirements.txt + +Write-Host "설치가 완료되었습니다." \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..1a1d10d --- /dev/null +++ b/install.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# uv와 git이 사전에 설치되어 있다고 가정 + +# 가상환경 생성 +uv venv + +# 가상환경 활성화 +source ./venv/bin/activate + +# PyTorch 설치 (CUDA 12.8 버전) +uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 + +# Facebook Research SAM 모델 설치 +uv pip install git+https://github.com/facebookresearch/segment-anything.git +uv pip install git+https://github.com/facebookresearch/sam2.git + +# 기타 필요한 패키지 설치 +uv pip install -r requirements.txt + +echo "설치가 완료되었습니다." \ No newline at end of file diff --git a/install_script b/install_script index 3cbbb8c..a649bf0 100644 --- a/install_script +++ b/install_script @@ -1,3 +1,5 @@ +#python 3.11 이상과 uv, git, cuda 12.8 버전이 사전에 설치되어 있어야 합니다. + uv venv ./venv/bin/activate uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 diff --git a/labels.json b/labels.json index 77b1707..6b55be4 100644 --- a/labels.json +++ b/labels.json @@ -1,4 +1,6 @@ { - "PRODUCT": 1, - "SEPARATOR": 2 + "ROAD": 1, + "BUILDING": 2, + "TREE": 3, + "VEHICLE": 4 } \ No newline at end of file