Dockerized implementaion of person tracking
-
Hi,
I've been banging my head in moving my local repo to dockerized implementation, but i am stuck in an infinite loop because of Qt errors. The error I am getting is this:
QFactoryLoader::QFactoryLoader() checking directory path "/opt/conda/bin/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.I've also noticed when I switch to opencv version= 4.1.2.30 it starts working I can then see opencv windows and everything works flowlessly, but as soon as I switch to opencv version= 4.5.5.64 it stops working. I want to stick to opencv version= 4.5.5.64. Please can anyone guide me what dependency i should install to make it working or may be there is something that I am missing.
YOLOv5 🚀 by Ultralytics, GPL-3.0 license
Start FROM NVIDIA PyTorch image https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
FROM nvcr.io/nvidia/pytorch:22.04-py3
RUN rm -rf /opt/pytorch # remove 1.2GB dirDownloads to user config dir
#ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/
Install linux packages
RUN apt-get update && apt-get autoclean
RUN apt-get update && apt-get install -y --no-install-recommends python3-pip
RUN pip3 install pyqt5
RUN apt-get install -y '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
RUN apt-get install -y libsm6 libxrender1 libfontconfig1
ENV QT_DEBUG_PLUGINS=1Install pip packages
COPY requirements.txt .
RUN python -m pip install --upgrade pip
RUN pip uninstall -y torch torchvision torchtext Pillow
RUN pip install --no-cache -r requirements.txt albumentations wandb gsutil notebook Pillow>=9.1.0
torch torchvision --extra-index-url https://download.pytorch.org/whl/cu113#RUN pip install opencv-contrib-python==4.1.2.30
RUN pip install opencv-contrib-python==4.5.5.64
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app
#RUN git clone https://github.com/ultralytics/yolov5 /usr/src/yolov5Set environment variables
ENV OMP_NUM_THREADS=8