Questions tagged [image-classification]
579 questions
1
vote
1 answer
Resizing PIL Image gives a completely black image
I have a dataset of grayscale images, like this one below:
Now, I open my dataset with the following class:
"""Tabular and Image dataset."""
def __init__(self, excel_file, image_dir):
self.image_dir = image_dir
…

CasellaJr
- 378
- 2
- 11
- 26
1
vote
1 answer
In yolo Can I continue to training from final .weight with different class of images?
I want to train a few products for image classification in Yolo. Let's say I have trained with 10 products (means 10 classes) and saved the best file. Now I want to add some more data of other products (means some new class names and images). So,…

Afique Amin Zian
- 31
- 1
1
vote
0 answers
Dotvvm image classification Accuracy Problem
I am trying to image classification with Dotvvm and I made everything true but my model accuracy is 0% and results are NaN%. What should I do? Does anyone know how to fix the problem?

ilayda
- 11
- 1
1
vote
1 answer
Freezing certain layers in neural networks using Pytorch Image Models
I am trying to do binary classification using transfer learning using Timm
In the process, I want to experiment with freezing/unfreezing different layers of different architectures but so far, I am able to freeze/unfreeze entire models only.
Can…

Beginner
- 721
- 11
- 27
1
vote
1 answer
Attempt to convert a value () with an unsupported type to a Tensor
I tried to execute the ViT model from Image Classification with Hugging Face Transformers and Keras, I got an error, particularly in this instruction:
processed_dataset = ds.map(augmentation, batched=True)
the error :
ValueError: Exception…

Ime TIM
- 21
- 4
1
vote
1 answer
Why is testing accuracy so low, could there be a bug in my code?
I've been training an image classification model using object detection and then applying image classification to the images. I have 87 custom classes in my data(not ImageNet classes), and just over 7000 images altogether(around 60 images per…

Sire
- 13
- 3
1
vote
1 answer
Why is my code showing no .jpeg images found in the folder though the folder has .jpeg images?
Keras: Image Classification: (code showing error)
code is showing that there are no images in the folder, though there are images in .jpeg format which is an accepted format.
Why is my code showing that there are no images, even if there are images…

Anshu_p
- 13
- 3
1
vote
0 answers
Shape similarity network (that it is not SSIM)
There are many CNNs for object classification and shapes drawing (e.g., square, heart, curved line etc) classification is even simpler.
However, I haven't found yet a robust method for shape quality classification. I.e., given a drawing of a circle,…

Roi Yozevitch
- 197
- 3
- 13
1
vote
0 answers
Image processing step for Mobilevit in android application
My question is fairly simple and short. MobileViT is a mobile-friendly Transformer-based model for image classification and here is the link for it: https://keras.io/examples/vision/mobilevit/
I have used…

Nephilim700
- 73
- 1
- 10
1
vote
1 answer
I tried to import dataset from google COLAB, now I got "listdir: path should be string, bytes, os.PathLike, integer or None, not BatchDataset"
I tried to import dataset from Google COLAB, already linked to google drive too.
This is now the code I use.
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Activation, Dropout, Flatten, Dense, Conv2D,…

อิม อัฐวงศ์
- 9
- 3
1
vote
1 answer
RAM Overflow Colab, when running model.fit() in Image Classifier of AutoKeras for many images
I'm trying to create an Image Classifier on a dataset with 40'000 images, in order to let Autokeras train the most appropriate model for me afterwards. Now the problem is, that every time I load all the images and get their labels but when I run the…

Jeffrey Sachs
- 57
- 6
1
vote
0 answers
Draw a Image on Website using Image_picker
i want to upload a image with image_picker_web to my flutter website.
This works without problems.
Than i need to edit the image (for example grayscale or draw on it) with the image_class from pub_dev and after that i want to display it on my…

romu2000
- 17
- 1
- 4
1
vote
1 answer
Show class names and confidence values in Tensorflow multi-class classification
I've trained my model in python and then converted the model so I could use it on my JS website. I have a brain tumor dataset, it has 4 classes:
Glioma
Menengioma
No tumor
Pituitary
So far I've done this: