teticio / Deej-AI

Create automatic playlists by using Deep Learning to *listen* to the music.
GNU General Public License v3.0
334 stars 52 forks source link

keras.losses.cosine_proximity is depreciated #121

Closed LukasGrove closed 14 hours ago

LukasGrove commented 3 days ago

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.

teticio commented 14 hours ago

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