윤영준 윤영준 06-03
bug fix : mismatch in request file fields name causing postprocess_draft.py not reading segmented image
@bd0d3e5ae908c0d76154830cafa27fab98ca5c5c
postprocess_draft.py
--- postprocess_draft.py
+++ postprocess_draft.py
@@ -298,7 +298,7 @@
         if self.detected:
             try:
                 # self.mask = request.files['mask'].read()
-                self.seg_image = request.files['seg_image']
+                self.seg_image = request.files['seg_image'].read()
             except:
                 raise ValueError("Error reading 'mask' and 'seg_mask'")
 
Add a comment
List