Open karanrampal opened 4 years ago
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.
os.path.basename(filename)
filename.split('/')[-1]
\\
/
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 offilename.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.