Code Monkey home page Code Monkey logo

keras-imagedatagenerator's People

Contributors

lim-anggun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

keras-imagedatagenerator's Issues

ImageDataGenerator for Autoencoder

I'm trying to make an AutoEncoder using the keras ImageDataGenerator function. Now because I want to build an Autoencoder, I dont require the image labels because the Y_train of my dataset are not labels but images itself.
When I try to fit my model and pass X_train and Y_train it shows an error :
y argument is not supported when using keras.utils.Sequence as input.

How can I get away with this.

AttributeError: 'tuple' object has no attribute 'ndim'

Thanks for your post. It's very helpful for me.
But during running the code for CamVid dataset, I got an error syaing "AttributeError: 'tuple' object has no attribute 'ndim'". I think this comes from the "zip" function. But I have no idea about a solution.

Did you get the same issue as mine?

how to resolve this problem

conv2d
C:\Users\Chinn\AppData\Local\Temp\ipykernel_22868\1831489917.py:14: RuntimeWarning: invalid value encountered in true_divide
channel_image /= channel_image.std()
C:\Users\Chinn\AppData\Local\Temp\ipykernel_22868\1831489917.py:29: UserWarning: Attempting to set identical bottom == top == -0.5 results in singular transformations; automatically expanding.
plt.imshow(display_grid, aspect='auto', cmap='viridis')
average_pooling2d
conv2d_1
average_pooling2d_1
conv2d_2
average_pooling2d_2
conv2d_3
average_pooling2d_3
flatten

MemoryError Traceback (most recent call last)
Input In [16], in <cell line: 1>()
4 size = layer_activation.shape[1] #The feature map has shape (1, size, size, n_features).
5 n_cols = n_features // images_per_row # Tiles the activation channels in this matrix
----> 6 display_grid = np.zeros((size * n_cols, images_per_row * size))
7 for col in range(n_cols): # Tiles each filter into a big horizontal grid
8 for row in range(images_per_row):

MemoryError: Unable to allocate 64.0 GiB for an array with shape (262144, 32768) and data type float64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.