faustomorales / vit-keras

Keras implementation of ViT (Vision Transformer)
Apache License 2.0
336 stars 80 forks source link

ModuleNotFoundError: No module named 'keras.src.engine' #44

Open UmerElsaharty opened 4 months ago

UmerElsaharty commented 4 months ago

when i am trying to import the package on kaggle an error shows up saying " ModuleNotFoundError: No module named 'keras.src.engine' " please could you tell me how can i solve this ?

hannahwhyatt commented 4 months ago

could it be the same solution as here #43 ?

shailooz commented 2 months ago

install the following

!pip install tfa-nightly

Issue will get solved.

ro1406 commented 1 month ago

Hi, i actually downgraded tf-addons to 0.22.0 ( pip install tensorflow_addons==0.22.0 ) and it worked fine. Although i am using a slightly older version of tf (2.10.1). Hope this helps :)