Spaces:
Runtime error
Runtime error
Initialisation 3
Browse files- .DS_Store +0 -0
- Dockerfile +1 -5
- app.py +2 -2
- utils/__pycache__/__init__.cpython-310.pyc +0 -0
- utils/__pycache__/helpers.cpython-310.pyc +0 -0
- utils/__pycache__/predictor.cpython-310.pyc +0 -0
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
Dockerfile
CHANGED
@@ -7,9 +7,6 @@ WORKDIR /app
|
|
7 |
# Copier les fichiers nécessaires dans le conteneur
|
8 |
COPY . /app
|
9 |
|
10 |
-
# Add segment-anything-2 to PYTHONPATH so `sam2` can be imported
|
11 |
-
ENV PYTHONPATH=/app/sam2:$PYTHONPATH
|
12 |
-
|
13 |
# Installer les dépendances
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
@@ -17,5 +14,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
17 |
EXPOSE 7860
|
18 |
|
19 |
# Commande pour démarrer Flask
|
20 |
-
CMD ["python", "app.py"]
|
21 |
-
|
|
|
7 |
# Copier les fichiers nécessaires dans le conteneur
|
8 |
COPY . /app
|
9 |
|
|
|
|
|
|
|
10 |
# Installer les dépendances
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
|
|
14 |
EXPOSE 7860
|
15 |
|
16 |
# Commande pour démarrer Flask
|
17 |
+
CMD ["python", "app.py"]
|
|
app.py
CHANGED
@@ -86,8 +86,8 @@ load_training_status()
|
|
86 |
os.environ["TORCH_CUDNN_SDPA_ENABLED"] = "0"
|
87 |
|
88 |
# Initialize SAM Predictor
|
89 |
-
MODEL_CFG = r"C:\codes\sam2\
|
90 |
-
CHECKPOINT = r"C:\codes\sam2\
|
91 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
92 |
predictor = Predictor(MODEL_CFG, CHECKPOINT, DEVICE)
|
93 |
|
|
|
86 |
os.environ["TORCH_CUDNN_SDPA_ENABLED"] = "0"
|
87 |
|
88 |
# Initialize SAM Predictor
|
89 |
+
MODEL_CFG = r"C:\codes\sam2\sam2\configs\sam2.1\sam2.1_hiera_l.yaml"
|
90 |
+
CHECKPOINT = r"C:\codes\sam2\checkpoints\sam2.1_hiera_large.pt"
|
91 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
92 |
predictor = Predictor(MODEL_CFG, CHECKPOINT, DEVICE)
|
93 |
|
utils/__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (155 Bytes). View file
|
|
utils/__pycache__/helpers.cpython-310.pyc
ADDED
Binary file (2.74 kB). View file
|
|
utils/__pycache__/predictor.cpython-310.pyc
ADDED
Binary file (1.25 kB). View file
|
|