-
Notifications
You must be signed in to change notification settings - Fork 2
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
Keras MRI logo remains pulsing forever and never loads model #1
Comments
Hmm, for me when I try that model I get an exception thrown from the python process
The problem seems to be that there are models nested inside the layer_outputs = [layer.output for layer in model.layers if not isinstance(layer, InputLayer)]
wrappedModel = Model(inputs=model.inputs, outputs=layer_outputs) I tried recursively getting the layers in the nested model def get_outputs(model):
outputs = []
for layer in model.layers:
if isinstance(layer, Model):
outputs = outputs + get_outputs(layer)
elif not isinstance(layer, InputLayer):
outputs.append(layer.output)
return outputs
layer_outputs = get_outputs(model)
wrappedModel = Model(inputs=model.inputs, outputs=layer_outputs) But it seems like I can't create a model with outputs from a nested model So I'm not sure how to handle nested models. Seems like an issue with other attempts to visualize Keras models too raghakot/keras-vis#37 |
Yea I tried vae and got the same error as @robianmcd mentioned and tried just the encoder (which isn't nested) I got the error above |
Yes latest chrome but perhaps the pypi for keras_mri is out of date? I'll try installing it from GitHub tomorrow |
I just published version 0.1.1 that has some better error handling but I'm still not sure what could be causing the issue you are having. Try it out when you get a chance and maybe do a hard refresh in chrome to make sure it gets the latest changes. |
So in the updated version I get an error message as alert in the browser and the original and then I see some of the visualizations but it fails at the draw edges step
|
Can you post the code you are using? |
When I run
kmri.visualize_model
on the encoder from the Keras VAE example (https://keras.io/examples/variational_autoencoder/) it doesn't render. I assume it is related to thekeras.layers.Lambda
is it possible to get it to skip layers which aren't supported?The text was updated successfully, but these errors were encountered: