# Using Joint Inference Service in Helmet Detection Scenario This case introduces how to use joint inference service in helmet detection scenario. In the safety helmet detection scenario, the helmet detection shows lower performance due to limited resources in edge. However, the joint inference service can improve overall performance, which uploads hard examples that identified by the hard example mining algorithm to the cloud and infers them. The data used in the experiment is a video of workers wearing safety helmets. The joint inference service requires to detect the wearing of safety helmets in the video. ## Helmet Detection Experiment ### Install Sedna Follow the [Sedna installation document](/docs/setup/install.md) to install Sedna. ### Prepare Data and Model * step1: download [little model](https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection-inference/little-model.tar.gz) to your edge node. ``` mkdir -p /data/little-model cd /data/little-model wget https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection-inference/little-model.tar.gz tar -zxvf little-model.tar.gz ``` * step2: download [big model](https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection-inference/big-model.tar.gz) to your cloud node. ``` mkdir -p /data/big-model cd /data/big-model wget https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection-inference/big-model.tar.gz tar -zxvf big-model.tar.gz ``` ### Prepare Images This example uses these images: 1. little model inference worker: ```kubeedge/sedna-example-joint-inference-helmet-detection-little:v0.3.0``` 2. big model inference worker: ```kubeedge/sedna-example-joint-inference-helmet-detection-big:v0.3.0``` These images are generated by the script [build_images.sh](/examples/build_image.sh). ### Create Joint Inference Service #### Create Big Model Resource Object for Cloud ``` kubectl create -f - <