Questions tagged [cifar100]
8 questions
1
vote
0 answers
Dataloader with a different batch size for each iteration for a deep learning project
For my deep learning project I need a cifar10 data loader (python) for my model which uses a varied batch size each iteration, unfortunately torch.utils.data.DataLoader uses a constant batch size throughout the training.
The batch size is randomly…

Naseem Yehya
- 29
- 4
0
votes
0 answers
How to use SHAP for VGG16 for image classification through Transfer Learning
I have good understanding of applying Transfer learning for image classification. However I wanted to apply the SHAP (SHapley Additive exPlanation) for TL based image classification. I found that SHAP works for image classification without Transfer…

Nhqazi
- 732
- 3
- 12
- 30
0
votes
1 answer
Why keras accuracy and loss are not changing between epochs and how to fix
This is my code:
from tensorflow import keras
import numpy as np
import matplotlib.pyplot as plt
x_train, y_train), (x_test, y_test) = keras.datasets.cifar100.load_data()
num_of_class = 100
y_train = keras.utils.to_categorical(y_train,…
0
votes
1 answer
using mobilnetv2 on cifar10, cifar100, and imagenet accuracy is not enough
I have been making some experiments with mobilenetv2 and used dataset with cifar10, cifar100.
when I used the code, it does not give me accuracy above 80%(accuracy using validation dataset)
when I implement the code, since the mobilenetv2 are made…

danny lee
- 61
- 1
- 1
- 7
0
votes
1 answer
keras.backend.function() won't accept model.layers[0].input as input tensor
I'm trying to use this tensorflow implementation of openmax and adapt it to CIFAR-100 to use it in my project. As part of openmax instead of softmax you have to get the activation vector of the penultimate layer, for which the following function is…

Saeed Aram
- 11
- 3
0
votes
0 answers
Unable to bypass SSL certificate verification failure
Attempting to run the following line of code:
data <- dataset_cifar100("fine")
results in:
Error: Exception: URL fetch failure on https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify…

Daniel Watson
- 1
- 1
0
votes
1 answer
Run Condition GAN model on the CIFAR-10 dataset, unable to clip (np.clip(X_test,-1,1))
everyone,
I want to load the dataset CIFAR-10, and do some pre-processing on those loaded images, when I run the following codes, my kernel crashes for no reason:
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
#import…

Delun Zhang
- 11
- 4
0
votes
0 answers
How to create the output data format exactly matched to 'keras.datasets.cifar100.load_data()' using custom data set?
I have the following code that works fine.
num_classes = 3
input_shape = (120, 120, 3)
(x_train, y_train), (x_test, y_test) = keras.datasets.cifar100.load_data()
print(f"x_train shape: {x_train.shape} - y_train shape:…

PCG
- 2,049
- 5
- 24
- 42