dongminjung / VAExprs

0 stars 1 forks source link

Problem with model fit command #2

Open sfragkoul opened 4 months ago

sfragkoul commented 4 months ago

Hello there!

I am trying to run the example from the tutorial but I get this error when trying to fit the model by running fit_vae() command, I am getting the error

Error in UseMethod("compile") : no applicable method for 'compile' applied to an object of class "c('keras.src.models.functional.Functional', 'keras.models.functional.Functional', 'keras.src.ops.function.Function', 'keras.ops.function.Function', 'keras.src.models.model.Model', 'keras.models.model.Model', 'keras.src.backend.tensorflow.trainer.TensorFlowTrainer', 'keras.backend.tensorflow.trainer.TensorFlowTrainer', 'keras.src.trainers.trainer.Trainer', 'keras.trainers.trainer.Trainer', 'keras.src.layers.layer.Layer', 'keras.layers.layer.Layer', 'keras.src.backend.tensorflow.layer.TFLayer', 'keras.backend.tensorflow.layer.TFLayer', 'keras.src.backend.tensorflow.trackable.KerasAutoTrackable', 'keras.backend.tensorflow.trackable.KerasAutoTrackable', 'tensorflow.python.trackable.autotrackable.AutoTrackable', 'tensorflow.python.trackable.base.Trackable', 'keras.src.ops.operation.Operation', 'keras.ops.operation.Operation', 'keras.src.saving.keras_saveable.KerasSaveable', 'keras.saving.keras_saveable.KerasSaveable'

Do you know how to deal with this error?

Thanks for your time!

dongminjung commented 4 months ago

Hi. I think it seems to have problems with versions of tensorflow or keras. Please check your version. You can find current versions of packages for Linux: https://bioconductor.org/checkResults/release/bioc-LATEST/nebbiolo1-R-instpkgs.html, for Windows: https://bioconductor.org/checkResults/release/bioc-LATEST/palomino7-R-instpkgs.html, for Mac(12.7.4): https://bioconductor.org/checkResults/release/bioc-LATEST/merida1-R-instpkgs.html, for Mac(13.6.6): https://bioconductor.org/checkResults/release/bioc-LATEST/kjohnson1-R-instpkgs.html.

Thanks.

sfragkoul commented 4 months ago

Hey thanks for the quick reply! I will give it a try :)