StopIteration
Created by: zheng5yu9
文本处理,在执行 bash ./preprocess.sh 报错,什么原因 root@74060277ac06:/home/Paddle/demo/quick_start# bash ./preprocess.sh Start to preprcess... Traceback (most recent call last): File "preprocess.py", line 359, in main() File "preprocess.py", line 355, in main data_creator.create_dataset() File "preprocess.py", line 172, in create_dataset train_data, train_lab_set = self.data_list(self.train_dir) File "preprocess.py", line 132, in data_list label_set = get_label_set_from_dir(path) File "/usr/local/lib/python2.7/dist-packages/paddle/utils/preprocess_util.py", line 88, in get_label_set_from_dir dirs = list_dirs(path) File "/usr/local/lib/python2.7/dist-packages/paddle/utils/preprocess_util.py", line 55, in list_dirs os.path.join(path, d) for d in next(os.walk(path))[1] StopIteration