LapStore commited on
Commit
09c99c7
·
1 Parent(s): b012c7d

modified putMaskImage to try to solve not doing anything other than replace

Browse files
Files changed (1) hide show
  1. server.py +2 -0
server.py CHANGED
@@ -60,6 +60,8 @@ class SegmenterBackground():
60
  elif(background_image=="remove"):
61
  outpt=np.zeros_like(raw_image)
62
  if (type(background_image)==PIL.Image.Image ): # not PIL.JpegImagePlugin.JpegImageFile as resized
 
 
63
  outpt = np.array(background_image.copy())
64
  else:
65
  raise("Got unexpected Input in background_image")
 
60
  elif(background_image=="remove"):
61
  outpt=np.zeros_like(raw_image)
62
  if (type(background_image)==PIL.Image.Image ): # not PIL.JpegImagePlugin.JpegImageFile as resized
63
+ #make it last case to not always give replace when uploading same image e.g. as in app , this is easiest way to modify server
64
+ #,may be clened in other version
65
  outpt = np.array(background_image.copy())
66
  else:
67
  raise("Got unexpected Input in background_image")