In this function: (NDArray, NDArray) GetNextBatch(Session sess, string[] x, NDArray y, int start, int end) The part of the code: for (int i = start; i < end; i++) { NDArray img4 = cv2.imread(x[i], IMREAD_COLOR.IMREAD_GRAYSCALE); img4 = img4.reshape((img4.shape[0], img4.shape[1], 1)); x_batch[n] = sess.run(normalized, (decodeJpeg, img4)); n++; } This line: img4 = img4.reshape((img4.shape[0], img4.shape[1], 1)); There is an issue with the "img4.shape[1]" being empty. "img4.shape[0]" has a value. When the loop runs at no point the "img4.shape[1]" get set. Any idea or assistance on this one. Thanks Ken
Activity
Bushpilot2112 commentedon Aug 8, 2025
Ignore this post ... thanks