82,109 questions
Score of -1
0 answers
13 views
How to use `class_weights` for the validation data when fitting a tensorflow model
I am training a tensorflow model and want to use class_weight for evaluating both the training batches and the validation batches. However, I am only able to use the weights with the training data. ...
Best practices
0
votes
0
replies
51
views
what are minimum image per class requied for max efficiency for efficientnet-lite0 and mobilenetv2 models
I am working on an image classification project for plant disease detection using transfer learning models such as MobileNetV2 and EfficientNetLite. My datasets include 11 classes for maize diseases ...
Score of 0
0 answers
147 views
Running Inference on CPU and C++ using LiteRT
Problem:
I have two outputs, out_buffers.size() == 2 but when I read the data in the second tensor output_buffers[1] the data is rubbish. The first tensor, output_buffers[0] gives the same output as ...
Tooling
0
votes
0
replies
66
views
Best pre-trained vision model for multi-plant disease detection in async web back-end
I'm building a web app with FastAPI + async/await Python backend. Users upload leaf photos via API and the server should return: 1) plant species, 2) disease label or "healthy".
Constraints:
...
Advice
0
votes
1
replies
92
views
Why is it so difficult to train an accuracte GAN model?
I'm trying to train a GAN model, but its results are very bad. The Generator doesn't seem to work. Can someone suggest how this can be improved? What is the best way to remember the code? Can this ...
Advice
1
vote
0
replies
82
views
How to visualize the convolution layer of a CNN?
While working on a CNN model, I got confused.
My questions are:
Is visualizing RGB convolution filters by permuting from (out,in,h,w) to (h,w,in) the correct approach?
Is normalizing all filters ...
Score of 1
2 answers
143 views
TensorFlow tf.data.Dataset.map() becomes slower after adding a Python function
I am using tf.data.Dataset to pre-process data. When I use TensorFlow operations inside map(), the pipeline runs fast. But, after adding a small custom Python function inside map(), training becomes ...
Advice
0
votes
1
replies
52
views
How to integrate CNN model with Flutter app for plant disease detection - API vs TFLite?
I'm building a Flutter app for rice leaf disease detection using CNN as my thesis project.
I'm confused about the best architecture:
Option 1: Deploy CNN model as REST API (Python Flask/FastAPI), ...
Score of 0
1 answer
74 views
Issue when loading model with hub.KerasLayer layer... NameError: Exception encountered when calling Lambda.call()
I am doing some NLP exercises. I am unable to use a saved model with a hub.KerasLayer layer :(
Here are the steps I done:
Create the model - OK
Compile the model - OK
Fit/Train the model - OK
...
Advice
3
votes
4
replies
186
views
How Do Machine Learning Algorithms Improve Accuracy Over Time?
I recently started learning Python and machine learning. I noticed that many developers use libraries like TensorFlow and Scikit-learn for predictive modeling. What are the main advantages of using ...
Advice
0
votes
1
replies
118
views
what is the best way to produce a dynamic dictionary
I construct two files on Microsoft Excel. One containing Totonaco words with Spanish Meaning and the second one containing Spanish words with Totonaco meaning. I would like to know which is the ...
Advice
0
votes
3
replies
95
views
TensorFlow models DoS via input-controlled tensor sizes?
Running untrusted TensorFlow models and noticed this:
import tensorflow as tf
import time
class TestLayer(tf.keras.layers.Layer):
def call(self, inputs):
n = tf.cast(inputs[0][0], tf....
Best practices
0
votes
1
replies
72
views
FID score computation while training WGAN-GP
I am training WGAN-GP on Eurosat dataset, splitted into train/val/test sets in counts 18900/4050/4050. Since FID scores are widely used in GANs in image generation, I based my hyperparameter search on ...
Advice
0
votes
2
replies
116
views
Analysis with Modeling on Spotify Tracks Dataset
Context: I’m predicting 8 music genre families using 114,000 Spotify tracks based only on raw audio DNA (danceability, acousticness, energy, etc.).
The Plot Twist: My baseline Neural Network hit 82% ...
Best practices
2
votes
1
replies
107
views
Can i make a Neural network And simply ML Model using a smartphone? (Ain't Have Pc/Laptop Btw)
I am someone who is currently Learn Python, especially libary for make machine learn, but i am not have pc/laptop , can i make my own ML & Neural model?
I haveI've heard that we can use Google ...