Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoded cleanup #1878

Merged
merged 1 commit into from
Feb 17, 2015
Merged

Encoded cleanup #1878

merged 1 commit into from
Feb 17, 2015

Conversation

philkr
Copy link
Contributor

@philkr philkr commented Feb 16, 2015

I decided to clean the encoded flag up a bit and add some more options.
convert_imageset can now store images encoded with resize and gray options on. Internally io.cpp will use opencv to re-encode a resized image if needed. It is also possible to change the encoding, using the encode_type flag.

The DecodeDatumToCVMat and DecodeDatum functions were renamed to DecodeDatumToCVMatNative and DecodeDatumNative . The ...Native functions will load images with their native color channels (grey or BGR) instead of always converting encoded images to BGR. This allows the encoding of 1d label masks (such as image class labels).

}
if (encode_type.size() && !encoded)
LOG(INFO) << "encode_type specified, assuming encoded=true.";
// if (encoded) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why keep these around as comments? Just drop.

@shelhamer
Copy link
Member

@philkr thanks for improving the encoding. Can you squash this into a single commit and take care of the inline comments? Thanks.

@shelhamer
Copy link
Member

Please combine your commits for the sake of the history http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html then this can be merged.

…le) to be encoded. Allowing for a change in encoded (jpg -> png vice versa) and cleaning up some unused functions.
@philkr
Copy link
Contributor Author

philkr commented Feb 17, 2015

ahh, the wonders of git :)

shelhamer added a commit that referenced this pull request Feb 17, 2015
Groom handling of encoded image inputs
@shelhamer shelhamer merged commit 2f5af3f into BVLC:dev Feb 17, 2015
@philkr philkr deleted the encoded branch February 17, 2015 16:04
shelhamer added a commit that referenced this pull request Feb 19, 2015
This reverts the encoding cleanup since it breaks data processing for
existing inputs as discussed in #1901.
shelhamer added a commit that referenced this pull request Feb 20, 2015
shelhamer added a commit to shelhamer/caffe that referenced this pull request Feb 20, 2015
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.

2 participants