Skip to main content
3 votes
1 answer
152 views

I am learning TensorFlow and transfer learning, and I am trying to add a TensorFlow Hub feature extractor to a Keras Sequential model. But I get this error: ValueError: Only instances of keras.Layer ...
Sanjay Jithesh's user avatar
-1 votes
1 answer
80 views

When creating a sequential MLP taking a batched input of shape [batch,n_channels,1], calling keras.layers.Input forcibly squeezes the last axis resulting in issues in an NN i'm attempting to create ...
The_Docc's user avatar
-2 votes
1 answer
630 views

ValueError: Only instances of `keras.Layer` can be added to a Sequential model. Received: <tensorflow_hub.keras_layer.KerasLayer object at 0x7c61f819f590> (of type <class 'tensorflow_hub....
Moein Nouri's user avatar
2 votes
0 answers
104 views

After finetuning my dataset using keras, I tried to fit the model to lora and this was the error I encountered: TypeError Traceback (most recent call last) Cell In[12], ...
Sharon's user avatar
  • 21
2 votes
1 answer
343 views

I am trying to optimize a CNN made with KERAS. For that I wanted to use the KERAS TUNER module. However, when importing the module i get the error message: "AttributeError: module 'tensorflow....
Phasco's user avatar
  • 31
1 vote
4 answers
2k views

I encountered an error related to Sequential while working with TensorFlow Hub. Can anyone help me with this?" enter image description here "ValueError: Only instances of keras.Layer can be ...
ercan kurtoğlu's user avatar
0 votes
0 answers
84 views

I am new to Tensorflow and kKeras and I am trying to create a neural network as mentioned in the keras website. I am trying to create a baseline model with a dataset of my own. The codes are exactly ...
United Dragons's user avatar
0 votes
1 answer
62 views

I'm trying to concatenate a tensor with shape (None, 11, 1, 1) with another tensor with shape (None,1,1,1). Reading the keras.layers.Concatenate() docs I understood that the shape should be the same ...
Mitch's user avatar
  • 1
0 votes
1 answer
234 views

I am having trouble with passing "batch_input_shape" in Jupyter Lab and VScode as well. ### Defining the RNN Model ### def LSTM(rnn_units): return tf.keras.layers.LSTM( rnn_units, ...
Bluehand1984's user avatar
0 votes
1 answer
170 views

I am attempting to use YAMNet for transfer learning to perform speech command recognition. I plan to train the model using the mini speech commands dataset from the simple audio project. The goal is ...
zheng's user avatar
  • 1
0 votes
1 answer
815 views

I am trying to build this RNN below, import keras model = Sequential() input_dim=3 output_dim=1 input_length=1 model.add(keras.layers.Embedding(input_dim, output_dim, input_length=input_length)) ...
Arian's user avatar
  • 1
0 votes
0 answers
877 views

i'm new to tensorflow and keras and i'm trying to build a realtime sign detection model. I'm following Nicholas Renotte's video tutorial https://www.youtube.com/watch?v=pDXdlXlaCco&t=864s import ...
Nishi Parekh's user avatar
1 vote
2 answers
579 views

import os os.environ["KERAS_BACKEND"] = "tensorflow" import pandas as pd import pathlib import random import string import re import numpy as np import tensorflow as tf import ...
Leila Saxby's user avatar
3 votes
1 answer
2k views

While working with Embedding for an LSTM model I came across an issue with input_length: ValueError: Unrecognized keyword arguments passed to Embedding: {'input_length': 536} Is input length being ...
Connor Scott's user avatar
0 votes
0 answers
71 views

I wrote some python code to develop a siamese network. The sub-clase from keras.Model is: class modelSIAMESE(keras.Model): def init(self): super().init() input_shape = target_shape + (3,) input_a = ...
Alexander Pascau's user avatar

15 30 50 per page
1
2 3 4 5
101