muddasser commited on
Commit
3941a06
·
verified ·
1 Parent(s): 20227ad

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -25,9 +25,9 @@ COPY requirements.txt .
25
  # Install Python packages
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
- # Download YOLOv8 ANPR model weights with validation
29
  RUN curl -L --retry 3 --retry-delay 5 -o /app/anpr_yolov8.pt \
30
- "https://github.com/madalinabuzatu/yolov8-license-plate-detection/releases/download/v1.0/best.pt" \
31
  && [ -s /app/anpr_yolov8.pt ] || { echo "Error: Model download failed or file is empty"; exit 1; } \
32
  && file /app/anpr_yolov8.pt | grep -q "Python" || { echo "Error: anpr_yolov8.pt is not a valid Python pickle file"; exit 1; }
33
 
 
25
  # Install Python packages
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
+ # Download YOLOv8 model weights with validation
29
  RUN curl -L --retry 3 --retry-delay 5 -o /app/anpr_yolov8.pt \
30
+ "https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8n.pt" \
31
  && [ -s /app/anpr_yolov8.pt ] || { echo "Error: Model download failed or file is empty"; exit 1; } \
32
  && file /app/anpr_yolov8.pt | grep -q "Python" || { echo "Error: anpr_yolov8.pt is not a valid Python pickle file"; exit 1; }
33