diff options
| author | jules@lens <julescarbon@gmail.com> | 2019-12-18 23:46:47 +0100 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2019-12-18 23:46:47 +0100 |
| commit | 937c7d6431d6a990b959aabb5fb2e65824fcd4c0 (patch) | |
| tree | 61b12ef086a598eaf24b66d935f3de34b1467379 /inversion/visualize.py | |
| parent | ba4d18a2d20eed034ea7926d10e5f760d3809ba2 (diff) | |
fix
Diffstat (limited to 'inversion/visualize.py')
| -rw-r--r-- | inversion/visualize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inversion/visualize.py b/inversion/visualize.py index 2461458..8bfb38e 100644 --- a/inversion/visualize.py +++ b/inversion/visualize.py @@ -36,7 +36,7 @@ def data2img(data): rescaled = np.clip(rescaled, 0, 255) return np.rint(rescaled).astype('uint8') -def data2pil(data); +def data2pil(data): return Image.fromarray(data2img(data), mode='RGB') def interleave(a, b): |
