Skip to content

Comments

Make net preprocessing options belong to instantiated net and not class#459

Merged
shelhamer merged 1 commit intoBVLC:devfrom
shelhamer:python-net-preprocessing-members
May 27, 2014
Merged

Make net preprocessing options belong to instantiated net and not class#459
shelhamer merged 1 commit intoBVLC:devfrom
shelhamer:python-net-preprocessing-members

Conversation

@shelhamer
Copy link
Member

The preprocessing members mean, input_scale, and channel_swap were accidentally scoped as class members, making all instantiated caffe.Nets share the same input preprocessing options. This dodges the python boost constructor by doing an initialization check on the setters. It's a fix for now-truth and beauty can come later.

shelhamer added a commit that referenced this pull request May 27, 2014
Make net preprocessing options belong to instantiated net and not class
@shelhamer shelhamer merged commit ad5c15e into BVLC:dev May 27, 2014
@shelhamer shelhamer deleted the python-net-preprocessing-members branch May 27, 2014 04:58
@shelhamer
Copy link
Member Author

Fixed in master @ 1bb7ba5.

sguada pushed a commit to sguada/caffe-public that referenced this pull request May 27, 2014
…embers

Make net preprocessing options belong to instantiated net and not class
mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
…embers

Make net preprocessing options belong to instantiated net and not class
mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
…embers

Make net preprocessing options belong to instantiated net and not class
frankier pushed a commit to frankier/caffe that referenced this pull request May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant