Skip to content
This repository was archived by the owner on Mar 2, 2020. It is now read-only.
This repository was archived by the owner on Mar 2, 2020. It is now read-only.

Exception for KerasCallback on multiple losses #31

@wouterdewinter

Description

@wouterdewinter

My model has multiple losses and I get the following error using the KerasCallback. It seems that the callback sends a list which is not supported by the backend.

Traceback (most recent call last):
  File "dsb_train.py", line 69, in <module>
    pipeline=pipeline)
  File "/Users/wouter/.aetros/wouterdewinter/dsb-2018/27546ea456ec6e659a5811e5cadd39eff5e4da26/dsb/model.py", line 325, in train
    verbose=0
  File "/Users/wouter/anaconda2/envs/deep-matting/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
    return func(*args, **kwargs)
  File "/Users/wouter/anaconda2/envs/deep-matting/lib/python3.6/site-packages/keras/engine/training.py", line 2213, in fit_generator
    callbacks.on_epoch_end(epoch, epoch_logs)
  File "/Users/wouter/anaconda2/envs/deep-matting/lib/python3.6/site-packages/keras/callbacks.py", line 76, in on_epoch_end
    callback.on_epoch_end(epoch, logs)
  File "/Users/wouter/anaconda2/envs/deep-matting/lib/python3.6/site-packages/aetros/KerasCallback.py", line 271, in on_epoch_end
    self.all_losses.send(log['epoch'], losses)
  File "/Users/wouter/anaconda2/envs/deep-matting/lib/python3.6/site-packages/aetros/backend.py", line 292, in send
    raise Exception('Could not send channel value for ' + self.name+' since type ' + type(y).__name__+' is not supported. Use int, float or string values.')
Exception: Could not send channel value for All loss since type list is not supported. Use int, float or string values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions