Choose Folder 2D
This function block is used to select a directory containing image data organized into structured folders. It is designed to facilitate the preparation of data for training a 2D convolutional neural network (CNN).
📥 Inputs
This function block does not have any inputs.
📤 Outputs
PNNModel
This output provides the configuration of the model including the path to the training data and the classes derived from the dataset.
🕹️ Controls
Channel Size
A dropdown menu that allows you to specify the color mode for reading images (e.g., Grayscale or RGB).
Data Augmentation
A checkbox that enables or disables data augmentation during the training process. This can help improve model robustness.
Choose Folder
A button that, when clicked, opens a dialog for selecting the folder containing the structured dataset.
🎨 Features
Structured Folder Support
The block checks for a specific folder structure (train
, validation
, and test
) to ensure the data is organized correctly for model training.
Class Logging
Automatically logs the class names found in the training data directory for user reference.
📝 Usage Instructions
Select Folder: Click on the
Choose Folder
button to locate the directory containing your images. The folder should have subdirectories fortrain
,validation
, and optionallytest
.Configure Channel Size: Select the desired image reading mode (Grayscale or RGB) using the dropdown menu.
Toggle Data Augmentation: Check or uncheck the
Data Augmentation
option based on whether you want to apply augmentation during training.Evaluate: Run the function block to return a model configuration based on the selected dataset.
📊 Evaluation
When executed, this function block checks the chosen folder structure, logs the relevant classes, and provides the necessary configurations for training a CNN, returning a structured output for further processing.
🛠️ Troubleshooting
💡 Tips and Tricks
Last updated