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

Stop-gap fixes for pycaffe #1902

Merged
merged 3 commits into from
Feb 19, 2015
Merged

Stop-gap fixes for pycaffe #1902

merged 3 commits into from
Feb 19, 2015

Conversation

shelhamer
Copy link
Member

Until the pyreformation of #1703 is completed by examples and documentation this PR fixes the current examples and takes a step in the right direction for the interface by separating pre-processing from Net.

The pycaffe interface examples will switch to caffe.Net alone in the future since it is the true interface. Upcoming documentation will address #1774.

The pyreformation BVLC#1703 aligned pycaffe Net with the real Caffe Net.
This broke the pre-processing helpers that had been bolted on to
`caffe.Net`.

These responsibilities are gathered in `caffe.io.Transformer` instead.
This is only an intermediate step in a real solution to pycaffe IO that
should make use of the same data pipeline as the rest of the framework.

See BVLC#1245 for further thoughts on input processing.
This is a quick translation of the examples to the caffe.io.Transformer
interface. The results are not strictly identical to the earlier
implementation! The models now use a mean pixel instead of a mean image
for simplicity. The output classifications and detections are preserved
but scores may differ.

Note: the examples will be rewritten to make use of `caffe.Net` alone
since it is the true interface, but not yet.
shelhamer added a commit that referenced this pull request Feb 19, 2015
@shelhamer shelhamer merged commit c66847b into BVLC:dev Feb 19, 2015
@shelhamer shelhamer deleted the py-stopgap branch February 19, 2015 08:25
shelhamer added a commit to shelhamer/caffe that referenced this pull request Mar 7, 2015
shelhamer added a commit to shelhamer/caffe that referenced this pull request Mar 7, 2015
shelhamer added a commit that referenced this pull request Mar 8, 2015
cbfinn pushed a commit to cbfinn/caffe that referenced this pull request Aug 12, 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.

1 participant