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.

helmet_detection_inference.yaml 2.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. apiVersion: sedna.io/v1alpha1
  2. kind: JointInferenceService
  3. metadata:
  4. name: helmet-detection-inference-example
  5. namespace: default
  6. spec:
  7. edgeWorker:
  8. model:
  9. name: "helmet-detection-inference-little-model"
  10. hardExampleMining:
  11. name: "IBT"
  12. parameters:
  13. - key: "threshold_img"
  14. value: "0.9"
  15. - key: "threshold_box"
  16. value: "0.9"
  17. template:
  18. spec:
  19. nodeName: $EDGE_NODE
  20. containers:
  21. - image: kubeedge/sedna-example-joint-inference-helmet-detection-little:v0.3.0
  22. imagePullPolicy: IfNotPresent
  23. name: little-model
  24. env: # user defined environments
  25. - name: input_shape
  26. value: "416,736"
  27. - name: "video_url"
  28. value: "rtsp://localhost/video"
  29. - name: "all_examples_inference_output"
  30. value: "/data/output"
  31. - name: "hard_example_cloud_inference_output"
  32. value: "/data/hard_example_cloud_inference_output"
  33. - name: "hard_example_edge_inference_output"
  34. value: "/data/hard_example_edge_inference_output"
  35. resources: # user defined resources
  36. requests:
  37. memory: 64M
  38. cpu: 100m
  39. limits:
  40. memory: 2Gi
  41. volumeMounts:
  42. - name: outputdir
  43. mountPath: /data/
  44. volumes: # user defined volumes
  45. - name: outputdir
  46. hostPath:
  47. # user must create the directory in host
  48. path: /joint_inference/output
  49. type: Directory
  50. cloudWorker:
  51. model:
  52. name: "helmet-detection-inference-big-model"
  53. template:
  54. spec:
  55. nodeName: $CLOUD_NODE
  56. containers:
  57. - image: kubeedge/sedna-example-joint-inference-helmet-detection-big:v0.3.0
  58. name: big-model
  59. imagePullPolicy: IfNotPresent
  60. env: # user defined environments
  61. - name: "input_shape"
  62. value: "544,544"
  63. resources: # user defined resources
  64. requests:
  65. memory: 2Gi