180 questions with no answers
1
vote
0
answers
139
views
using Google LiteRT from a Tensorflow Lite model
data = tf.keras.utils.image_dataset_from_directory('snails', image_size=(256,256), shuffle=True)
class_names = data.class_names
num_classes = len(class_names)
print("Classes:", class_names)
...
1
vote
0
answers
78
views
MNIST Image Classification Gradient Descent Neural Network not working
I have to files PreProcess.java:
/*
* 4/28/24
* Final
*/
package Final;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io....
0
votes
0
answers
23
views
Validation Accuracy stuck between 0.5-0.6
I am currently working on a custom VGG model for Breast Cancer Classification using mammography images. It has excellent accuracy for training images but the validation accuracy is stuck at 0.5-0.6. ...
0
votes
0
answers
32
views
Finetuning MobilenetV3S on Google Colab
Last year I finetuned MobileNetV3S on google colab [tensorflow version 2.15.0] gave me 95% (test) accuracy and loss below 0.25. However, running the same notebook now (2025-05) [tensorflow verion 2.18....
3
votes
0
answers
70
views
How to calculate FPS in image classification?
Please, I would appreciate some help and will be grateful for any help.
I have some doubts about how to calculate the frame rate (FPS) in image classification for training an testing routines. I've ...
0
votes
0
answers
57
views
Core ML prediction for Image Classification Create ml model predict same result for different images
I am exploring the Apple Core ML framework.
I created a training model using Create ML app. Image Classification to identify the image is cat or a dog. The data set I used is referred from
https://www....
1
vote
0
answers
80
views
How to Load a Custom-Trained ResNet50 Model with ImageAI in Python?
I'm working on an image classification project using a custom-trained ResNet50 model with ImageAI, but I'm encountering a persistent loading error that prevents me from using my trained model for ...
0
votes
0
answers
44
views
"ValueError: Shapes are incompatible", but where?
I load my datasets with keras.utils.image_dataset_from_directory(). Here's the code:
train_ds = image_dataset_from_directory(
"train",
validation_split=0.2,
subset="training",...
3
votes
0
answers
89
views
validation loss improvement in ConvLSTM model for prediction of ASL Images
I have been trying to build a convLSTM model for classifying ASL images into 1 of the given 29 classes in the dataset. The dataset I am using is this - https://www.kaggle.com/datasets/debashishsau/...
0
votes
0
answers
88
views
Image Classification Model halting at epoch 1/25, tensorflow keras model
I have been following a tutorial of a deep learning neural network model project and for some reason my model halts at the first epoch when trying to train on a dataset of images. I am not sure if ...
0
votes
0
answers
48
views
Is there any way to choose positive pairs in superpixels without loop?
I want to calculate the contrastive loss for hyperspectral image classification. I first have to derive the input needed for the contrastive loss based on the output logit[1,num_classes,h,w] of the ...
0
votes
0
answers
92
views
Tensorflow to Tensorflowlite conversion issue
Im trying to convert the Tensorflow model to Tensorflowlite model but it shows warning WARNING:absl:Compiled the loaded model, but the compiled metrics have yet to be built. model.compile_metrics will ...
1
vote
0
answers
48
views
Incompatible shapes Error while using my model in a C# app
I am having problems with an image classificator model developed in python that I want to use in a C# industrial application.
This is the model structure:
model = Sequential([
Conv2D(32, (3, 3), ...
0
votes
0
answers
183
views
i keep getting this error : TypeError: Expected any non-tensor type, but got a tensor instead
i am trying to train mobilevit using this bee dataset from tensorflow and i keep getting this error
TypeError: Expected any non-tensor type, but got a tensor instead.
this is the code i wrote, ...
1
vote
0
answers
80
views
How can I use pickle file of model to predict on Image classification?
I have image classification model on trained on dataiku which is efficinet B4.
Now I want to use it pickle file to make prediction on image but I am unable to make predictions.
What is the image ...