-
Notifications
You must be signed in to change notification settings - Fork 811
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
parametric umap fails to save model #867
Comments
I'm not sure what's going on here, I haven't seen this error before. You're running the same notebook in the repo?
It sounds like a low-level tensorflow issue with finding a variable that is supposed to be stored in RAM. Do you get the same error when you try saving other tensorflow models? |
Yes, I ran the notebook from the repo. If I run the example code of saving a tensorflow model I do not get any error. |
jonathan-conder-sm And then, load file. raise ValueError(f'Input {input_index} of layer "{layer_name}" is ' Please how to solve. |
Does anyone know how to save and load the base model? The ParametricUMAP module is useless without this functionality. |
I found a quick fix for this issue if you're experiencing the "FileNotFoundError: Unsuccessful TensorSliceReader constructor: ... ". The error indicates that Keras models shouldn't be pickled and instead should be saved in a supported format like .keras, .h5, etc. The issue arises when it's trying to pickle the whole ParametricUMAP (embedder) object. However, the encoder/decoder and the parametric umap models should be saved without issues. The
Then override the function as follows: Now you should be able to save the model as follows: When you load the model back using |
Hello,
I played around with the parametric umap going through the mnist notebook.
when running
embedder.save('/path/to/my/model')
I get the this output followed by the following error message:
I am running the code on a windows10 machine in a conda environment consisting of the following packages:
I have no idea what goes wrong and whether I can do anything to solve the issue. I would be happy about feedback and I hope this is the right place to ask for help.
The text was updated successfully, but these errors were encountered: