Skip to content

Comments

Fix ImageDataLayer's silent failure on file paths with spaces #3433

Closed
bchu wants to merge 1 commit intoBVLC:masterfrom
bchu:filename_whitespace
Closed

Fix ImageDataLayer's silent failure on file paths with spaces #3433
bchu wants to merge 1 commit intoBVLC:masterfrom
bchu:filename_whitespace

Conversation

@bchu
Copy link
Contributor

@bchu bchu commented Dec 9, 2015

by splitting on last space.

Also fixes its test to contain newlines. Fixes #1935 and #1951.

Note: I don't work with C++ very much, so please let me know if there's a better way of doing this.
I've also changed window_data_layer and hdf5_data_layer to read in lines. Please check that this is correct (I have never used hdf5 or window_data).

…tting on last space.

Also fixes its test to contain newlines. Fixes BVLC#1935.
@bchu bchu force-pushed the filename_whitespace branch from 3da69d5 to 47962e0 Compare December 9, 2015 21:22
@bchu bchu closed this Dec 12, 2015
@bchu
Copy link
Contributor Author

bchu commented Dec 14, 2015

I realized that the issue is already fixed by: #1971, so I closed this PR.

Re-opening in case people think it's a good idea. This method is less forgiving than the regex method, with the sole benefit of avoiding a dependency on boost regex.

@bchu bchu reopened this Dec 14, 2015
@vimalthilak
Copy link

I would be happy to see this fix merged since we ran into this problem while using caffe in our group at work. With that said, it'd be nice to use a comma or something that's more robust than just a space as a separator.

@bchu
Copy link
Contributor Author

bchu commented May 19, 2016

Resolved by #4059

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.

ImageData requires file paths with no spaces

2 participants