Skip to content

Conversation

@hua-ops
Copy link

@hua-ops hua-ops commented Sep 6, 2023

When I tried to run prepare_data.py on Windows System, I was having the error: assert len(ascii_sequences) == len(line_stroke_fnames) AssertionError. This is because on Windows system, os.path.join() gets the path concatenation character '\', so the path from line 50 of prepare_data.py would look like this: data/raw/ascii/z01\z01-000\z01-000z.txt, causing line 59 to be inaccessible and skipping the loop.
By changing fnames.append(os.path.join(dirpath, filename)) with fnames.append(os.path.join(dirpath, filename).replace('\\', '/')) in line 50, the error removed, and successfully processed the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant