Image processing problem

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

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)]



Do I have to click some tab on pycharm to let it access the data?

1 comment
Comment actions Permalink

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.


Please sign in to leave a comment.