You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I use PIL save matting ,I get a err!
mask = (result*255).permute(1,2,0).cpu().data.numpy().astype(np.uint8)
io.imsave(os.path.join(result_path,im_name+".png"),mask)
pil_mask = Image.fromarray(mask).convert("L")
---------------------------------------------------- up get error
im_rgb = Image.open(im_path).convert("RGB")
im_rgba = im_rgb.copy()
im_rgba.putalpha(pil_mask)
im_rgba.show()
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: