윤영준 윤영준 06-03
bug fix : gpu_oom error ( 2 inference process for gtx1070)
@7fea956f167116ebbee23d0058a28ee304db4595
run_image_anal_backend.sh
--- run_image_anal_backend.sh
+++ run_image_anal_backend.sh
@@ -28,8 +28,8 @@
 pids+=($!)
 
 #python test.py
-python inference_endpoint.py
-#gunicorn --workers=6 inference_endpoint:app
+#python inference_endpoint.py
+gunicorn --workers=2 inference_endpoint:app --bind localhost:12345
 pids+=($!)
 
 #python postprocess_draft.py
yoloseg/inference_gpu_.py
--- yoloseg/inference_gpu_.py
+++ yoloseg/inference_gpu_.py
@@ -28,6 +28,7 @@
 
     def run_inference(self, input_image):
         model_input = input_image
+        # print(input_image)
         if self.letter_box_for_square and self.model_shape[0] == self.model_shape[1]:
             model_input = self.format_to_square(model_input)
 
Add a comment
List