I am getting the following error when I try to train a model on the minst dataset.
INFO - crnn - Running command 'training'
INFO - crnn - Started
ERROR - crnn - Failed after 0:00:00!
Traceback (most recent calls WITHOUT Sacred internals):
File "training.py", line 43, in training
n_samples_train, n_samples_eval = data_preprocessing(parameters)
File "/home/ubuntu/github/tf-crnn/tf_crnn/preprocessing.py", line 144, in data_preprocessing
n_samples_train = preprocess_csv(params.csv_files_train, params, csv_train_output)
File "/home/ubuntu/github/tf-crnn/tf_crnn/preprocessing.py", line 81, in preprocess_csv
dataframe['label_string'] = dataframe.labels.apply(lambda x: re.sub(re.escape(parameters.string_split_delimiter), '', x))
File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/pandas/core/series.py", line 3591, in apply
mapped = lib.map_infer(values, f, convert=convert_dtype)
File "pandas/_libs/lib.pyx", line 2217, in pandas._libs.lib.map_infer
File "/home/ubuntu/github/tf-crnn/tf_crnn/preprocessing.py", line 81, in <lambda>
dataframe['label_string'] = dataframe.labels.apply(lambda x: re.sub(re.escape(parameters.string_split_delimiter), '', x))
File "/home/ubuntu/anaconda3/lib/python3.6/re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
It seems to be failing to parse my csv files but I believe my file format is correct. My training data csv file is in this format (truncated here for obvious reasons):
I had this working a few months ago with an older version of tf-crnn. However, I recently moved all of my work to AWS machines and decided to use the newest version but now I can not get it to train a model.
I am getting the following error when I try to train a model on the minst dataset.
It seems to be failing to parse my csv files but I believe my file format is correct. My training data csv file is in this format (truncated here for obvious reasons):
My test dataset csv file is in the same format. And finally my config.json file is shown below:
I had this working a few months ago with an older version of tf-crnn. However, I recently moved all of my work to AWS machines and decided to use the newest version but now I can not get it to train a model.