cosine_metric_learning icon indicating copy to clipboard operation
cosine_metric_learning copied to clipboard

Tensorflow version

Open SpawN1337 opened this issue 4 years ago • 5 comments

Contrib packages apparently are not very stable. So they may change between versions so what tf version should i use here ?

SpawN1337 avatar Apr 07 '20 04:04 SpawN1337

tensorflow version 1.15.0 worked for me while tf ver >2.0 yields errors due to contrib packages. The author recommended tf 1.14.0. Have a try!

pvti avatar Apr 19 '20 05:04 pvti

Hey, try this:

""" OLD """ #import tensorflow as tf #import tensorflow.contrib.slim as slim """ NEW """ import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import tf_slim as slim """*****"""

(I'm using tensorflow 2.3.1)

joseph-cv avatar Nov 28 '20 18:11 joseph-cv

Hello @pvtien96 . Can you tell me if there is somewhere a list with the versions of the required packages? Thanks!

PHCLenzi avatar Apr 08 '22 08:04 PHCLenzi

Hey, try this:

""" OLD """ #import tensorflow as tf #import tensorflow.contrib.slim as slim """ NEW """ import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import tf_slim as slim """*****"""

(I'm using tensorflow 2.3.1)

Doing that suggestion I had another problem with the code.

Error: AttributeError: module 'tf_slim' has no attribute 'variable_scope'

That is on network_definition.py file. Someone can help? Thank you

sgarcesh avatar Oct 25 '22 19:10 sgarcesh

@sgarcesh i got the same error as yours, did you find a solution ?

yesmineht avatar Jun 19 '23 13:06 yesmineht