Image processing problem Follow
My editor cannot access a file to train a neural network.
import os
import cv2
import numpy as np
import matplotlib.pyplot as plt
import scipy
ROWS = 64
COLS = 64
CHANNELS = 3
TRAIN_DIR = 'Train_data/'
TEST_DIR = 'Test_data/'
train_images = [TRAIN_DIR + i for i in os.listdir(TRAIN_DIR)]
test_images = [TEST_DIR + i for i in os.listdir(TEST_DIR)]
print(len(test_images))
Do I have to click some tab on pycharm to let it access the data?
Please sign in to leave a comment.
Please make sure your working directory is set to path where your "Train_data" and "Test_data" directories are located. You can set working directory in run/debug configuration.