Install nvidia-driver-520(gpu, cuda-11.8), nvidia-docker and docker before installing the docker container.
Loading docker images
sudo chmod u+x ./docker/*.sh
sudo ./docker/download.sh
docker load < yolov7-server.tar
Building image
sudo chmod u+x ./docker/*.sh
sudo ./docker/build.sh
git clone https://github.com/WongKinYiu/yolov7.git
sudo chmod u+x ./docker/*.sh
sudo ./docker/run.sh
python3 server.py -p 550
- p: The port number of server.
python3 client.py -p <folder/files>
- p: The path of inference images. you can input the folder path or the image path.