Spaces:
Runtime error
Runtime error
maduvantha
commited on
Commit
·
a2997fd
1
Parent(s):
e984f29
Update logger.py
Browse files
logger.py
CHANGED
@@ -2,9 +2,9 @@ import numpy as np
|
|
2 |
import torch
|
3 |
import torch.nn.functional as F
|
4 |
import imageio
|
5 |
-
|
6 |
-
import os
|
7 |
from skimage.draw import disk
|
|
|
|
|
8 |
|
9 |
import matplotlib.pyplot as plt
|
10 |
import collections
|
@@ -208,4 +208,4 @@ class Visualizer:
|
|
208 |
|
209 |
image = self.create_image_grid(*images)
|
210 |
image = (255 * image).astype(np.uint8)
|
211 |
-
return image
|
|
|
2 |
import torch
|
3 |
import torch.nn.functional as F
|
4 |
import imageio
|
|
|
|
|
5 |
from skimage.draw import disk
|
6 |
+
import os
|
7 |
+
|
8 |
|
9 |
import matplotlib.pyplot as plt
|
10 |
import collections
|
|
|
208 |
|
209 |
image = self.create_image_grid(*images)
|
210 |
image = (255 * image).astype(np.uint8)
|
211 |
+
return image
|