broadfield commited on
Commit
10c476d
·
verified ·
1 Parent(s): d3fc6f9

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -48,7 +48,7 @@ class make_im():
48
  os.mkdir(f'{self.root}/images')
49
  self.epwtimg = ColoredPath(self.epwtpath, self.mask.shape).get_colored_path(cmap)
50
  self.pimg = ColoredPath(self.ppath, self.mask.shape).get_colored_path(cmap)
51
- img=PIL.Image.open(self.pimg)
52
  #matplotlib.image.imsave(f"{self.root}/images/{name}_mask.png", self.mask, cmap='gray')
53
  #matplotlib.image.imsave(f"{self.root}/images/{name}_epwt.png", self.epwtimg)
54
  #matplotlib.image.imsave(f"{self.root}/images/{name}_prob.png", self.pimg)
 
48
  os.mkdir(f'{self.root}/images')
49
  self.epwtimg = ColoredPath(self.epwtpath, self.mask.shape).get_colored_path(cmap)
50
  self.pimg = ColoredPath(self.ppath, self.mask.shape).get_colored_path(cmap)
51
+ img=PIL.Image.frombytes(self.pimg)
52
  #matplotlib.image.imsave(f"{self.root}/images/{name}_mask.png", self.mask, cmap='gray')
53
  #matplotlib.image.imsave(f"{self.root}/images/{name}_epwt.png", self.epwtimg)
54
  #matplotlib.image.imsave(f"{self.root}/images/{name}_prob.png", self.pimg)