cs230-code-examples
cs230-code-examples copied to clipboard
Windows compatability
https://github.com/cs230-stanford/cs230-code-examples/blob/96ac6fd7dd72831a42f534e65182471230007bee/tensorflow/vision/build_dataset.py#L40
I think we can maybe use os.path.basename(filename)
instead of filename.split('/')[-1]
as in windows os the paths to images get a \\
instead of /
. Just with this change we can keep a consistent backslash system. Just a thought.