Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#21631 Add MNN matrix export tests to --slow CI

Merged
Ghost merged 1 commits into Ultralytics:main from ultralytics:mnn-matrix-tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
  1. # Ultralytics ๐Ÿš€ AGPL-3.0 License - https://ultralytics.com/license
  2. # Builds ultralytics/ultralytics:latest-arm64 image on DockerHub https://hub.docker.com/r/ultralytics/ultralytics
  3. # Image is aarch64-compatible for Apple M1, M2, M3, Raspberry Pi and other ARM architectures
  4. # Start FROM Ubuntu image https://hub.docker.com/_/ubuntu with "FROM arm64v8/ubuntu:22.04" (deprecated)
  5. # Start FROM Debian image for arm64v8 https://hub.docker.com/r/arm64v8/debian (new)
  6. FROM arm64v8/debian:bookworm-slim
  7. # Set environment variables
  8. ENV PYTHONUNBUFFERED=1 \
  9. PYTHONDONTWRITEBYTECODE=1 \
  10. PIP_NO_CACHE_DIR=1 \
  11. PIP_BREAK_SYSTEM_PACKAGES=1
  12. # Downloads to user config dir
  13. ADD https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.ttf \
  14. https://github.com/ultralytics/assets/releases/download/v0.0.0/Arial.Unicode.ttf \
  15. /root/.config/Ultralytics/
  16. # Install linux packages
  17. # pkg-config and libhdf5-dev (not included) are needed to build 'h5py==3.11.0' aarch64 wheel required by 'tensorflow'
  18. # gnupg required for Edge TPU install
  19. RUN apt-get update && \
  20. apt-get install -y --no-install-recommends \
  21. python3-pip git zip unzip wget curl htop gcc libgl1 libglib2.0-0 libpython3-dev gnupg \
  22. && rm -rf /var/lib/apt/lists/*
  23. # Create working directory
  24. WORKDIR /ultralytics
  25. # Copy contents and configure git
  26. COPY . .
  27. RUN sed -i '/^\[http "https:\/\/github\.com\/"\]/,+1d' .git/config
  28. ADD https://github.com/ultralytics/assets/releases/download/v8.3.0/yolo11n.pt .
  29. # Install pip packages
  30. RUN pip install uv
  31. RUN uv pip install --system -e ".[export]" --break-system-packages
  32. # Creates a symbolic link to make 'python' point to 'python3'
  33. RUN which python3 && ln -sf $(which python3) $(dirname $(which python3))/python || echo "Python3 not found"
  34. # Remove extra build files
  35. RUN rm -rf /root/.config/Ultralytics/persistent_cache.json
  36. # Usage Examples -------------------------------------------------------------------------------------------------------
  37. # Build and Push
  38. # t=ultralytics/ultralytics:latest-arm64 && sudo docker build --platform linux/arm64 -f docker/Dockerfile-arm64 -t $t . && sudo docker push $t
  39. # Run
  40. # t=ultralytics/ultralytics:latest-arm64 && sudo docker run -it --ipc=host $t
  41. # Pull and Run
  42. # t=ultralytics/ultralytics:latest-arm64 && sudo docker pull $t && sudo docker run -it --ipc=host $t
  43. # Pull and Run with local volume mounted
  44. # t=ultralytics/ultralytics:latest-arm64 && sudo docker pull $t && sudo docker run -it --ipc=host -v "$(pwd)"/shared/datasets:/datasets $t
Discard
Tip!

Press p or to see the previous file or, n or to see the next file