-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-output will only pass the first output to the score funuction #50
Comments
Do you base this on experiments or code analysis? tf-keras-vis/tf_keras_vis/gradcam.py Line 51 in ddd9513
tf-keras-vis/tf_keras_vis/__init__.py Lines 42 to 50 in b420516
Or what am I missing? |
I did this base on an experiment... But maybe I have misunderstood something that could also happen... I am not sure this losses was working tho... I am using v0.6.0 if that helps. |
In that case, a short reproducible example would be helpful, I'm pretty sure.
Note that this has not been released yet as far as I can see. Also, you may want to look into this code to see what may be going wrong: 9ebe940, although much seems the same except for renamed variables: tf-keras-vis/tf_keras_vis/gradcam.py Line 69 in 9ebe940
tf-keras-vis/tf_keras_vis/gradcam.py Line 80 in 9ebe940
tf-keras-vis/tf_keras_vis/__init__.py Lines 42 to 50 in 9ebe940
|
@frank-qcd-qk , I'm so sorry for late reply. So Was your problem solved? Thanks! |
Would it be possible to show an example of using tf-keras-vis with a multi-output model? I'm trying to use it for a 3-output model (EfficientNet backbone) but am struggling with how to define the score functions, etc. |
tf-keras-vis/tf_keras_vis/gradcam.py
Line 62 in ddd9513
Say if I have an output of [tf.tensor , tf.tensor], after this line executed even I use my own scoring function, the obtained "output" is now only the first tf.tensor.
I don't think this is the expected behavior...
Sample model: https://github.com/duckietown/challenge-aido_LF-baseline-behavior-cloning/blob/master/duckieChallenger/frankModel.py
The text was updated successfully, but these errors were encountered: