-
Notifications
You must be signed in to change notification settings - Fork 282
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
the question of "model$layers$output" #1384
Comments
What you're describing is certainly possible and I would expect it to work. Would you be able to provide a minimal reproducible example I can run to reproduce the error you are seeing? |
Sure,I would like to provide a weight file and Rscript used in the working procedure. These files could be found in google drive. The minimal reproducible codes :
|
Hi, thanks. I'll need a little more to reproduce the issue. Can you please provide the code that was used to generate the ".keras" file? (python or R). Or if not that, then the code in Python where loading the model works as expected. A cursory inspection indicates that the weights file is not a standard ".keras" file (which is expected to be a zip file w/ a json of config + weights as h5). Ideally, everything provided is code in the issue thread. |
sorry, I previously didn't know the code for model generation is necessary, for the weight file was trained in a dataset and saved automaticly by a shiny application under development github links. the weight file was saved when it reached the lowest val loss in validation set through the callbacks arg of
|
Hi,
I was recently working on an idea : load a .keras weight from local but remove its classifier layer (maybe the same effect as the application_* functions ) and add a new layer for it, as keras for R was implemented from the keras python package, I looked forward for a python solution first:
these python codes work well ,then I thought the R version would be as the following according to the source codes of this repo :
but found that the model object hasn't a method for output,and model$layers$output returns NULL
and the operation on original_model$layers returns only the structure of model and the weight's parameter is loss.
It is there a way to fix this?
The text was updated successfully, but these errors were encountered: