The use of converting image into byte array

后端 未结 0 758
谎友^
谎友^ 2021-02-20 11:50

I encountered the following python function in a GAN code.

def img_to_bytes(x_sample):
    imgObj = PIL.Image.fromarray(x_sample)
    imgByteArr = io.BytesIO()
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题