Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -51,7 +51,7 @@ class make_im():
|
|
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 |
-
|
55 |
buffer = io.BytesIO()
|
56 |
#img.save(buffer, format='PNG')
|
57 |
buffer.write(self.pimg)
|
|
|
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)
|
55 |
buffer = io.BytesIO()
|
56 |
#img.save(buffer, format='PNG')
|
57 |
buffer.write(self.pimg)
|