yanx27 / EverybodyDanceNow_reproduce_pytorch

Everybody dance now reproduced in pytorch
MIT License
607 stars 172 forks source link

scipy.misc.toimage is deprecated #101

Closed dklingmann closed 3 years ago

dklingmann commented 3 years ago

scipt.misc.toimage is deprecated and was removed in 1.2.0. Instead, Pillow's Image.fromarray works: from PIL.Image import fromarray fromarray(image_numpy).save(s, format="jpeg")

https://github.com/yanx27/EverybodyDanceNow_reproduce_pytorch/blob/a740351bc422a5322339d3bcee2fb25510a01a19/src/pix2pixHD/util/visualizer.py#L49