Input Layer 2D

This function block is used to define the input layer for a 2D Convolutional Neural Network (CNN) in machine learning applications. It allows you to specify the dimensions of the input data based on the connected dataset.

πŸ“₯ Inputs

Folder This input accepts a folder containing image data which will be used for training the model.

πŸ“€ Outputs

This function block outputs the configured model.

πŸ•ΉοΈ Controls

Size: A text input field where you can specify the size (width and height) of the input image. The default value is set to 128.

🎨 Features

Customizable Input Size Users can define the size of the input images, allowing for flexibility in model training.

Integration with Keras The block integrates seamlessly with Keras, enabling the creation of CNN architectures suitable for various applications.

πŸ“ Usage Instructions

  1. Connect Input Folder: Connect the input to a block that specifies a folder containing 2D image data.

  2. Set Input Size: Adjust the size in the Size: text input to define the desired dimensions of the input images.

  3. Evaluate the Model: Execute the block to configure and output the 2D input layer model.

πŸ“Š Evaluation

When executed, this function block verifies the connected folder and creates a corresponding input layer based on the specified size, which can then be used in a CNN setup.

πŸ’‘ Tips and Tricks

Adjusting Size for Different Applications

Ensure that the input size is consistent with the dataset you are using. For instance, if your images are high-resolution, consider increasing the input size accordingly.

Using Grayscale Images

For grayscale images, set the input size as needed and ensure that the model color type is specified correctly to allow for proper resizing.

Checking Input Connection

Ensure that the folder is correctly connected to avoid errors when evaluating the block. The tooltip will indicate the status of the connection.

πŸ› οΈ Troubleshooting

No Input Detected

If you encounter an error indicating that no input is detected, ensure that you have connected the folder containing the images to the appropriate socket.

Invalid Size Input

If the size input value is invalid (e.g., non-integer), ensure that you enter a valid integer to prevent evaluation errors.

Last updated