mirror of
https://github.com/clearml/clearml
synced 2025-04-27 01:39:17 +00:00
Fix TensorBoard add_image() not being reported
This commit is contained in:
parent
9966dd640c
commit
bc85fbca0f
@ -367,7 +367,7 @@ class EventTrainsWriter(object):
|
|||||||
output = BytesIO(imdata)
|
output = BytesIO(imdata)
|
||||||
im = Image.open(output)
|
im = Image.open(output)
|
||||||
# if this is a GIF store as is
|
# if this is a GIF store as is
|
||||||
if getattr(im, 'is_animated'):
|
if getattr(im, 'is_animated', None):
|
||||||
output.close()
|
output.close()
|
||||||
fd, temp_file = mkstemp(
|
fd, temp_file = mkstemp(
|
||||||
suffix=guess_extension(im.get_format_mimetype()) if hasattr(im, 'get_format_mimetype')
|
suffix=guess_extension(im.get_format_mimetype()) if hasattr(im, 'get_format_mimetype')
|
||||||
|
Loading…
Reference in New Issue
Block a user