Open joonjeon opened 3 years ago
Did you ever managed to solve this?
@thrmotta Unfortunately, no...it has been about 3 months and still not a clear clue on why this is happening. :(
For the time being, I am checking with an alternative Tensorflow/Keras implementation of NFNet by @hoangthang1607, which can be accessed via following link: https://github.com/hoangthang1607/nfnets-Tensorflow-2
The alternative implementation seems to give me some hints on how the issue could be fixed, although it also seems to have some issues as well, such as "no inbound nodes" issue when attempting to use the network as base net for object detection.
Hi!
I am trying to have a look at the TensorFlow implementation of NFNet, and somehow got to fix the reference-before-assignment issue with some help from @prateekkrjain.
However, when I try to instantiate NFNetF0 as follows:
x = NFNetF0(num_classes = num_classes)(x)
the Python interpreter complains that it has an error as follows:
It seems like there is something wrong with the arguments being passed to
tf.random.uniform()
function when initializingStochasticDepth
Layer. Thebatch_size
turns out to beNone
.Any ideas on how to fix this?
Note that I am using the latest version of Miniconda with Python 3.8, along with TensorFlow 2.4.1 on a Windows 10.