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

Exception for KerasCallback on multiple losses #31

Open
wouterdewinter opened this issue Mar 1, 2018 · 0 comments
Open

Exception for KerasCallback on multiple losses #31

wouterdewinter opened this issue Mar 1, 2018 · 0 comments

Comments

@wouterdewinter
Copy link

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant