Jake Reardon commited on
Commit
4fbdd2c
·
1 Parent(s): 35732f8

Fix SAM 3D Body installation method

Browse files

- Update requirements.txt with proper dependencies for SAM 3D Body
- Update Dockerfile to install SAM 3D Body from source via git clone

Files changed (2) hide show
  1. Dockerfile +5 -0
  2. requirements.txt +6 -4
Dockerfile CHANGED
@@ -22,6 +22,11 @@ RUN pip install --no-cache-dir 'git+https://github.com/facebookresearch/detectro
22
  # Optional: Install MoGe
23
  RUN pip install --no-cache-dir git+https://github.com/microsoft/MoGe.git
24
 
 
 
 
 
 
25
  # Copy application code
26
  COPY app/ ./app/
27
 
 
22
  # Optional: Install MoGe
23
  RUN pip install --no-cache-dir git+https://github.com/microsoft/MoGe.git
24
 
25
+ # Install SAM 3D Body from source
26
+ RUN git clone https://github.com/facebookresearch/sam-3d-body.git /app/sam-3d-body && \
27
+ cd /app/sam-3d-body && \
28
+ pip install -e .
29
+
30
  # Copy application code
31
  COPY app/ ./app/
32
 
requirements.txt CHANGED
@@ -40,10 +40,12 @@ optree==0.10.0
40
  fvcore==0.1.5.post20221221
41
  huggingface_hub==0.20.2
42
 
43
- # SAM 3D Body dependencies
44
- # Model will be loaded from Hugging Face at runtime
45
- # Install the package from the correct repository
46
- git+https://github.com/facebookresearch/sam-3d-body.git
 
 
47
 
48
  # 3D model processing
49
  trimesh==4.0.5
 
40
  fvcore==0.1.5.post20221221
41
  huggingface_hub==0.20.2
42
 
43
+ # SAM 3D Body dependencies - based on official installation guide
44
+ # Install Detectron2 (required by SAM 3D Body)
45
+ git+https://github.com/facebookresearch/detectron2.git@a1ce2f9
46
+
47
+ # Install MoGe (optional but recommended for SAM 3D Body)
48
+ git+https://github.com/microsoft/MoGe.git
49
 
50
  # 3D model processing
51
  trimesh==4.0.5