mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix debug samples are not uploaded correctly (#924)
* PR relating to bug #923. --------- Co-authored-by: jday1 <jd685@cam.ac.uk> Co-authored-by: jday1 <james.day@bglgroup.co.uk>
This commit is contained in:
parent
e938f2800b
commit
541c2425e0
@ -398,11 +398,12 @@ class EventTrainsWriter(object):
|
||||
with open(fd, "wb") as f:
|
||||
f.write(imdata)
|
||||
return temp_file
|
||||
image = np.asarray(im)
|
||||
output.close()
|
||||
if height is not None and height > 0 and width is not None and width > 0:
|
||||
val = np.array(im).reshape((height, width, -1)).astype(np.uint8)
|
||||
val = image.reshape((height, width, -1)).astype(np.uint8)
|
||||
else:
|
||||
val = np.array(im).astype(np.uint8)
|
||||
val = image.astype(np.uint8)
|
||||
if val.ndim == 3 and val.shape[2] == 3:
|
||||
if self._visualization_mode == 'BGR':
|
||||
val = val[:, :, [2, 1, 0]]
|
||||
|
Loading…
Reference in New Issue
Block a user