Now, we select the real images, as follows:
- Next, we use the values for first_row and last_row to create a subset of the array containing our real target images. We will also run two lines to remove attributes from our data objects. This is not strictly necessary and at times, you may want data that is stored here. However, for demonstration purposes, we will remove it now so we can see the dimensions of all the arrays in the data environment window. The array of real images equal to the batch size to be used in an iteration of the model is created using the following line of code:
real_images <- image_array[first_row:last_row,,,]attr(real_images, "dimnames") <- NULLattr(image_array, "dimnames") <- NULL
- After running ...