Fola-AI commited on
Commit
29d548d
·
1 Parent(s): 975efeb

Upgrade to PyTorch 2.2.0 for ultralytics compatibility

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -2,7 +2,7 @@
2
  # FarmEyes - HuggingFace Spaces Dockerfile (Transformers Version)
3
  # =============================================================================
4
 
5
- FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime
6
 
7
  ENV PYTHONUNBUFFERED=1
8
  ENV HOST=0.0.0.0
@@ -25,9 +25,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
25
  # Upgrade pip
26
  RUN pip install --upgrade pip setuptools wheel
27
 
28
- # Install ultralytics with verbose output
29
- RUN pip install ultralytics==8.0.200 && \
30
- python -c "import ultralytics; print('Ultralytics version:', ultralytics.__version__)"
31
 
32
  # Copy requirements and install
33
  COPY requirements.txt .
@@ -39,9 +38,6 @@ COPY . .
39
  # Create directories
40
  RUN mkdir -p /app/uploads /app/temp
41
 
42
- # Final check - list installed packages
43
- RUN pip list | grep -i ultra
44
-
45
  EXPOSE 7860
46
 
47
  CMD ["python", "main.py"]
 
2
  # FarmEyes - HuggingFace Spaces Dockerfile (Transformers Version)
3
  # =============================================================================
4
 
5
+ FROM pytorch/pytorch:2.2.0-cuda11.8-cudnn8-runtime
6
 
7
  ENV PYTHONUNBUFFERED=1
8
  ENV HOST=0.0.0.0
 
25
  # Upgrade pip
26
  RUN pip install --upgrade pip setuptools wheel
27
 
28
+ # Install ultralytics
29
+ RUN pip install ultralytics
 
30
 
31
  # Copy requirements and install
32
  COPY requirements.txt .
 
38
  # Create directories
39
  RUN mkdir -p /app/uploads /app/temp
40
 
 
 
 
41
  EXPOSE 7860
42
 
43
  CMD ["python", "main.py"]