Spaces:
Paused
Paused
andreagalle commited on
Commit ·
fcccf3d
1
Parent(s): 3a937e3
a couple major fixies!
Browse files- Dockerfile +1 -1
- main.py +1 -1
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Use an official PyTorch image with CUDA support as the base image
|
| 2 |
-
FROM pytorch/pytorch:
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
|
|
|
| 1 |
# Use an official PyTorch image with CUDA support as the base image
|
| 2 |
+
FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
main.py
CHANGED
|
@@ -37,7 +37,7 @@ async def upload_zip(file: UploadFile = File(...)):
|
|
| 37 |
os.makedirs(output_dir, exist_ok=True)
|
| 38 |
|
| 39 |
# Define the model weights path
|
| 40 |
-
weights_path = "/
|
| 41 |
|
| 42 |
# # Check if CUDA is available and set the device
|
| 43 |
# device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
|
|
|
| 37 |
os.makedirs(output_dir, exist_ok=True)
|
| 38 |
|
| 39 |
# Define the model weights path
|
| 40 |
+
weights_path = "/app/dust3r/checkpoints/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth"
|
| 41 |
|
| 42 |
# # Check if CUDA is available and set the device
|
| 43 |
# device = 'cuda' if torch.cuda.is_available() else 'cpu'
|