teticio/Deej-AI

keras.losses.cosine_proximity is depreciated

Closed this issue · 1 comments

The latest tensorflow builds don't have cosine_proximity anymore. it seems to have been replaced with keras.losses.CosineSimilarity (I tried changing cosine_proximity to CosineSimilarity, but it gives an error that the speccy_model is too old)

Setting the requirements file to use tensorflow==2.13.0 fixes the issue.

Thanks. I have pinned this in requirements.txt and created a new requirements-lock.txt