Skip to content
Advertisement

Tag: keras

Custom data generator

I have a standard directory structure of train, validation, test, and each contain class subdirectories. I want to use the flow_from_directory API, but all I can find is an ImageDataGenerator, and the files I have are raw numpy arrays (generated with arr.tofile(…)). Is there an easy way to use ImageDataGenerator with a custom file loader? I’m aware of flow_from_dataframe, but

Error while running CNN for 1 dimensional data in R

I am trying to run 1 dimensional CNN in R using keras package. I am trying to create one-dimensional Convolutional Neural Network (CNN) architecture with the following specification But it is giving me following error Error in py_call_impl(callable, dots$args, dots$keywords) : ValueError: Negative dimension size caused by subtracting 4 from 1 for ‘conv1d_20/conv1d’ (op: ‘Conv2D’) with input shapes: [?,1,1,128], [1,4,128,256].

Using pretrained model with keras: AttributeError: ‘NoneType’ object has no attribute ‘shape’

I’m running a Keras Neural Network model for a binary classification of images. I use the first layer of a pretrained VGG16 model and i created the last fully connected layers from the tutorial: https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html With Tensorflow backend 2.3.1, Python 3.6, Keras 2.4.3 While i’m training my model (using presaved weights) with an ImageDataGenerator, this exception occurs: That’s my code

ValueError: Input 0 of layer sequential is incompatible with the layer: : expected min_ndim=4, found ndim=2. Full shape received: [None, 2584]

I’m working in a project that isolate vocal parts from an audio. I’m using the DSD100 dataset, but for doing tests I’m using the DSD100subset dataset from I only use the mixtures and the vocals. I’m basing this work on this article First I process the audios to extract a spectrogram and put it on a list, with all the

Advertisement