I have been using bert and trying to compile the model using the below line of code. model = TFBertForSequenceClassification.from_pretrained('bert-base-uncased'
Is the GlobalAveragePooling1D Layer the same like calculating the mean with a custom Lambda Layer? The data is temporal, so x has shape (batch, time, features)
I am trying to load a pandas dataframe into a tensor Dataset. The columns are text[string] and labels[a list in string format] A row would look something like:
I am using a Keras network which I am calling predict() many times on a single input. A rough calculation based on the layers gives ~3Mops. Running on my CPU sh
My goal is to use the following dataset from tensorflow-datasets for Machine Learning https://www.tensorflow.org/datasets/catalog/wider_face import tensorflow a
I am following the TensorFlow 2 Object Detection API Tutorial on a Macbook Here's what I got when running the given script for converting xmls to TFrecords Trac
I have Keras model: pre-trained CV model + a few added layers on top I would want to be able to do model.predict before model.fit Q: how do I instantiate model
I am new to tensorflow. i've tried to fit X and y both shape=8 float64 tensors X as feature set and y as target set. X = np.array([-7.0, -4.0, -1.0, 2.0, 5.0, 8
I want to load FaceNet in Keras but I am getting errors. the modal facenet_keras.h5 is ready but I can't load it. you can get facenet_keras.h5 from this link: h
Hello guys i am a biggner at computer vision and classification, i am trying to train a model using cnn method with tensorflow and keras, but i keep getting the
I'm trying to split DNN Models in order to execute part of the network on the edge and the rest on the cloud. Because it has to be cross-platform and work with
After training a model using Google Colab, I downloaded it using the following command (inside Google Colab): model.save('model.h5') from google.colab import fi
I currently have an LSTM which uses sequence length as input, but this only allows the LSTM to predict when the input length is equal to the used sequence lengt
I defined the following model, which has two distinct outputs: input_layer = keras.layers.Input(shape = (1, 20), name = "input_features") # Shared layers hidde
I mounted the files from google drive correctly with the following code. from google.colab import drive drive.mount('/content/gdrive') base_path = "/content/gdr
I am using tensorflow 2.4 and Cuda 11. I've build a CNN model from scratch using tensorflow and frozen it to create the .pb and .pbtxt file.Now I am trying to m
Manipulating tf.data.Dataset I get a behavior, I am not able to understand the origin. I am manipulating a tf.data.Dataset a simple integer buffer where I want
How do I shuffle the elements of tf.data.Dataset within a certain range. Having an input array, with shape = (10,), in the first 5 elements would be shuffled wi
I was trying to load the checkpoints weights to the trained model and got the following error message. Any idea how to solve it? File "/src/trainer/loaders.
I'm trying to save a model which is a composite model of composite models. The first model is a sequential model of two sequential models. Both of the two sub-m