from tensorflow.keras.applications import EfficientNetV2B3
base_model = EfficientNetV2B3(include_top=False, weights="imagenet", input_shape=(224, 224, 3))
print(base_model.output)
<KerasTensor shape=(None, 7, 7, 1536), dtype=float32, sparse=False, name=keras_tensor_411>
my_model = Sequential([
layers.InputLayer(shape=(224, 224, 3)),
layers.Rescaling(scale=1./127.5, offset=-1),
base_model,
layers.GlobalAveragePooling2D(),
layers.Dense(256, activation='relu'),
layers.Dropout(0.4),
layers.Dense(128, activation='relu'),
layers.Dropout(0.4),
layers.Dense(6, activation='softmax')
])
print(my_model.output)
ValueError: The layer sequential has never been called and thus has no defined output.
ValueError: The layer sequential has never been called and thus has no defined output
29 Views Asked by Gowtham At
0
There are 0 best solutions below
Related Questions in SEQUENTIAL
- Optuna Hyperband Algorithm Not Following Expected Model Training Scheme
- ValueError: The layer sequential has never been called and thus has no defined output
- How to split large time-related aggregates in DDD?
- 'Sequential' object has no attribute 'fit_generator'
- tf.keras.Sequential predict years mismatch
- PowerShell: running commands in sequence
- How to create a sequential count of IDs in SQL?
- Finding highest value/lowest value in local clusters of CSV data
- Order data Preprocessing before Sequential Pattern Mining
- Using PrefixSpan with Python to find most common sequences
- Pytorch LSTM Input
- For each object in array, how to resolve promises that retrieve DB data and populate dropdown in sequential order?
- ValueError in shape - prediction with keras.models.Sequential
- Writing to Labels sequentially in VB.Net
- python pytorch Why Sequential NN and the same nn.Module NN have diference results
Related Questions in TRANSFER-LEARNING
- Implementing Transfer Learning using Pegasus for Text Summarization generating junk characters
- How to add new classes to tensorflow.js model in transfer learning?
- Prediction for single image file using tensor flow transfer learning model
- Can this be considered overfitting?
- why am I getting error in transfer learning?
- Fine tuning a model in transfer learning
- How should I improve my accuracy in Transfer learning?
- Do you have any ideas to proceed custom size image using MobileNet?
- WARNING:tensorflow:Can save best model only with val_accuracy available, skipping
- ValueError: The input must have 3 channels; got `input_shape=(200, 200, 1)`
- Minimize the small loss to zero loss in transfer learning
- In Transfer Learning ValueError: Failed to convert a NumPy array to a Tensor
- How to do fine tuning on TFlite model
- Confusion Matrix in transfer learning with keras
- Keras AttributeError: 'Functional' object has no attribute 'shape'
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?