You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

multi-edge-inference-pedestrian-tracking-gpu-feature-extraction.Dockerfile 1.4 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. FROM pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel
  2. WORKDIR /home
  3. ## Install git
  4. RUN apt update -o Acquire::https::developer.download.nvidia.com::Verify-Peer=false
  5. # Required by OpenCV
  6. RUN apt install libglib2.0-0 libgl1 libglx-mesa0 libgl1-mesa-glx -y
  7. # RUN apt install -y git
  8. RUN apt install -y gfortran libopenblas-dev liblapack-dev
  9. # Update Python
  10. RUN apt install python3.8 python3.8-distutils python3-venv curl -y
  11. RUN python3.8 --version
  12. RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  13. RUN python3.8 get-pip.py
  14. ## Install base dependencies
  15. RUN python3.8 -m pip install torch torchvision tqdm opencv-python pillow pytorch-ignite --trusted-host=developer.download.nvidia.com
  16. ## Add Kafka Python library
  17. RUN python3.8 -m pip install kafka-python --trusted-host=developer.download.nvidia.com
  18. # ONNX
  19. RUN pip install onnx protobuf==3.16.0
  20. ## SEDNA SECTION ##
  21. COPY ./lib/requirements.txt /home
  22. RUN python3.8 -m pip install -r /home/requirements.txt --trusted-host=developer.download.nvidia.com
  23. # This instructions should make Sedna reachable from the dertorch code part
  24. ENV PYTHONPATH "${PYTHONPATH}:/home/lib"
  25. WORKDIR /home/work
  26. COPY ./lib /home/lib
  27. # Add M3L imports
  28. COPY examples/multiedgeinference/pedestrian_tracking/feature_extraction /home/work
  29. ENV PYTHONPATH "${PYTHONPATH}:/home/work"
  30. ENV LOG_LEVEL="INFO"
  31. ENTRYPOINT ["python3.8"]
  32. CMD ["worker.py"]