cs230-code-examples icon indicating copy to clipboard operation
cs230-code-examples copied to clipboard

Windows compatability

Open karanrampal opened this issue 5 years ago • 0 comments

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.

karanrampal avatar Nov 19 '19 13:11 karanrampal