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

Improve python wrapper #311

Merged
merged 28 commits into from
May 20, 2014
Merged

Improve python wrapper #311

merged 28 commits into from
May 20, 2014

Commits on May 14, 2014

  1. Configuration menu
    Copy the full SHA
    51f276e View commit details
    Browse the repository at this point in the history
  2. make python wrapper mean match binaryproto dimensions

    ilsvrc_2012_mean.npy has dims K x H x W.
    
    Code written for the old D x D x K mean needs to be rewritten!
    shelhamer committed May 14, 2014
    1 Configuration menu
    Copy the full SHA
    47ec9ac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8da2a32 View commit details
    Browse the repository at this point in the history
  4. pycaffe comments, lint

    shelhamer committed May 14, 2014
    Configuration menu
    Copy the full SHA
    872ddf3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    56ca978 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    96cd02d View commit details
    Browse the repository at this point in the history
  7. pycaffe Net.forward() helper

    Do forward pass by prefilled or packaging input + output blobs and
    returning a {output blob name: output list} dict.
    shelhamer committed May 14, 2014
    Configuration menu
    Copy the full SHA
    0e5a5cf View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9d4324e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ac5e6fa View commit details
    Browse the repository at this point in the history

Commits on May 15, 2014

  1. Configuration menu
    Copy the full SHA
    af0b857 View commit details
    Browse the repository at this point in the history
  2. don't squeeze blob arrays for python

    Preserve the non-batch dimensions of blob arrays, even for singletons.
    
    The forward() and backward() helpers take lists of ndarrays instead of a
    single ndarray per blob, and lists of ndarrays are likewise returned.
    
    Note that for output the blob array could actually be returned as a
    single ndarray instead of a list.
    shelhamer committed May 15, 2014
    Configuration menu
    Copy the full SHA
    8af33e8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1b23680 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a3b307a View commit details
    Browse the repository at this point in the history
  5. python style

    shelhamer committed May 15, 2014
    Configuration menu
    Copy the full SHA
    a7f6750 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    459c8c1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    025c64e View commit details
    Browse the repository at this point in the history

Commits on May 16, 2014

  1. take blob args as ndarrays and assign on the python side

    Take blob args and give blob returns as single ndarrays instead of lists
    of arrays.
    
    Assign the net blobs and diffs as needed on the python side, which
    reduces copies and simplifies the C++ side of the wrapper.
    
    Thanks @longjon for the suggestion.
    shelhamer committed May 16, 2014
    1 Configuration menu
    Copy the full SHA
    5d584c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5102413 View commit details
    Browse the repository at this point in the history
  3. drop cute names in favor of Net.{pre,de}process() for input formatting

    ...and refer to inputs as inputs and not images since general vectors
    and matrices are perfectly fine.
    shelhamer committed May 16, 2014
    Configuration menu
    Copy the full SHA
    37123a5 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2014

  1. fix python mean subtraction

    shelhamer committed May 20, 2014
    Configuration menu
    Copy the full SHA
    738c875 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    50d0b6d View commit details
    Browse the repository at this point in the history
  3. split drawnet into module code and script

    Don't run scripts in the module dir to avoid import collisions between
    io and caffe.io.
    shelhamer committed May 20, 2014
    Configuration menu
    Copy the full SHA
    6b85fd0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bf4d726 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2fc32d5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    111df0e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    02ecf1d View commit details
    Browse the repository at this point in the history
  8. preprocess single inputs instead of lists

    For compositionality and expectations.
    shelhamer committed May 20, 2014
    Configuration menu
    Copy the full SHA
    8830dc5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    42bf2d2 View commit details
    Browse the repository at this point in the history