platform/upstream/caffe.git
10 years agoswitch from inheritance to directly overriding methods for caffe.Net
Jonathan L Long [Fri, 4 Apr 2014 05:21:13 +0000 (22:21 -0700)]
switch from inheritance to directly overriding methods for caffe.Net

Also, internally drop the "Caffe" prefix for classes exported by the
internal _caffe module. This change means that SGDSolver will
automatically return a Net with the "nice" Python interface rather than
the internal one, (and avoids the extra layer of method wrapping that
results from switching to composition).

10 years agomake Solver::net return a shared_ptr rather than a raw pointer
Jonathan L Long [Wed, 2 Apr 2014 04:20:40 +0000 (21:20 -0700)]
make Solver::net return a shared_ptr rather than a raw pointer

This makes it possible to manage the Net pointer externally (e.g., from
the Python interface) using a shared_ptr. No existing code is affected.

10 years agopycaffe: expose SGDSolver
Jonathan L Long [Wed, 2 Apr 2014 03:14:15 +0000 (20:14 -0700)]
pycaffe: expose SGDSolver

10 years agoadd string constructor to Solver (analogous to Net)
Jonathan L Long [Wed, 2 Apr 2014 02:14:00 +0000 (19:14 -0700)]
add string constructor to Solver (analogous to Net)

10 years agoRevert "Fix segfault." (python)
Evan Shelhamer [Sat, 5 Apr 2014 05:10:47 +0000 (22:10 -0700)]
Revert "Fix segfault." (python)

Revert 88507032de1eb675539d91a1d79c221f3faf5d99 from #287.

The call to `Py_Initialize()` is unnecessary and masked a build
configuration issue.

10 years agoMerge pull request #277 from jeffdonahue/makefile-improvements
Evan Shelhamer [Fri, 4 Apr 2014 22:25:38 +0000 (15:25 -0700)]
Merge pull request #277 from jeffdonahue/makefile-improvements

Makefile improvements

10 years agogitignore python/caffe/proto/; superclean ignore data dir
Jeff Donahue [Fri, 4 Apr 2014 20:44:34 +0000 (13:44 -0700)]
gitignore python/caffe/proto/; superclean ignore data dir

10 years agoMerge pull request #287 from robwhess/dev
Evan Shelhamer [Fri, 4 Apr 2014 03:55:49 +0000 (20:55 -0700)]
Merge pull request #287 from robwhess/dev

Fix python segfault in Mac OS X.

10 years agoMerge pull request #288 from beam2d/fix-blob-params-order
Jeff Donahue [Thu, 3 Apr 2014 14:44:43 +0000 (07:44 -0700)]
Merge pull request #288 from beam2d/fix-blob-params-order

Fix parameter orders in declaration of Reshape

10 years agoFix parameter orders in declaration of Reshape
Seiya Tokui [Thu, 3 Apr 2014 07:56:38 +0000 (16:56 +0900)]
Fix parameter orders in declaration of Reshape

10 years agoFix segfault.
Rob Hess [Thu, 3 Apr 2014 00:50:18 +0000 (17:50 -0700)]
Fix segfault.

10 years agoinclude build/ before other dirs so old proto built files in src/ and
Jeff Donahue [Wed, 2 Apr 2014 18:29:01 +0000 (11:29 -0700)]
include build/ before other dirs so old proto built files in src/ and
include/ don't interfere

10 years agoremove silly thing where I copied proto headers to a separate
Jeff Donahue [Mon, 31 Mar 2014 21:25:42 +0000 (14:25 -0700)]
remove silly thing where I copied proto headers to a separate
build/include dir

10 years agomatcaffe fixes
Jeff Donahue [Mon, 31 Mar 2014 21:16:11 +0000 (14:16 -0700)]
matcaffe fixes

10 years agofix test bugs and minor cleanup
Jeff Donahue [Sun, 30 Mar 2014 14:21:00 +0000 (07:21 -0700)]
fix test bugs and minor cleanup

10 years agocleanup python build and clean
Jeff Donahue [Sun, 30 Mar 2014 13:58:17 +0000 (06:58 -0700)]
cleanup python build and clean

10 years agocompile test bins directly into build/test
Jeff Donahue [Sun, 30 Mar 2014 13:21:38 +0000 (06:21 -0700)]
compile test bins directly into build/test

10 years agoadd test header dependency and fix mat targets
Jeff Donahue [Sun, 30 Mar 2014 12:22:52 +0000 (05:22 -0700)]
add test header dependency and fix mat targets

10 years agominor cleanup
Jeff Donahue [Sun, 30 Mar 2014 11:44:17 +0000 (04:44 -0700)]
minor cleanup

10 years agolibcaffe.* in build/lib/
Jeff Donahue [Sun, 30 Mar 2014 11:42:43 +0000 (04:42 -0700)]
libcaffe.* in build/lib/

10 years agoeverything prints a blank line after compiling
Jeff Donahue [Sun, 30 Mar 2014 11:36:22 +0000 (04:36 -0700)]
everything prints a blank line after compiling

10 years agolots of corrections to dependencies etc., things seem to mostly build
Jeff Donahue [Sun, 30 Mar 2014 11:14:48 +0000 (04:14 -0700)]
lots of corrections to dependencies etc., things seem to mostly build
coherently now

10 years agomessed around with Makefile - currently in very messy state
Jeff Donahue [Sun, 30 Mar 2014 05:26:46 +0000 (22:26 -0700)]
messed around with Makefile - currently in very messy state

10 years agocleanup superclean output
Jeff Donahue [Sun, 30 Mar 2014 03:12:24 +0000 (20:12 -0700)]
cleanup superclean output

10 years agoput proto-generated .cc and .h files in build directory
Jeff Donahue [Sun, 30 Mar 2014 02:36:05 +0000 (19:36 -0700)]
put proto-generated .cc and .h files in build directory

10 years agocreate softlink to test directory at build/test
Jeff Donahue [Sun, 30 Mar 2014 01:29:15 +0000 (18:29 -0700)]
create softlink to test directory at build/test

10 years agocreate superclean Makefile target to delete all files with generated
Jeff Donahue [Sun, 30 Mar 2014 00:47:58 +0000 (17:47 -0700)]
create superclean Makefile target to delete all files with generated
extensions

10 years agoput TEST_GPUID in Makefile.config
Jeff Donahue [Sun, 30 Mar 2014 00:46:39 +0000 (17:46 -0700)]
put TEST_GPUID in Makefile.config

10 years agoMerge pull request #223 from sguada/improved_matcaffe
Jeff Donahue [Wed, 2 Apr 2014 17:50:59 +0000 (10:50 -0700)]
Merge pull request #223 from sguada/improved_matcaffe

Improved matcaffe

10 years agoMerge pull request #278 from kloudkl/log_error_string_in_check_macro
Jeff Donahue [Wed, 2 Apr 2014 17:39:10 +0000 (10:39 -0700)]
Merge pull request #278 from kloudkl/log_error_string_in_check_macro

Log error strings in the error/status checking macros

10 years agoMerge pull request #283 from jeffdonahue/boost-rand-seed
Evan Shelhamer [Wed, 2 Apr 2014 00:28:41 +0000 (17:28 -0700)]
Merge pull request #283 from jeffdonahue/boost-rand-seed

Seed Boost RNG with cluster_seedgen by default

10 years agoseed boost rng with cluster_seedgen by default
Jeff Donahue [Tue, 1 Apr 2014 23:49:34 +0000 (16:49 -0700)]
seed boost rng with cluster_seedgen by default

10 years agoAdd a space before the error string
Kai Li [Tue, 1 Apr 2014 02:30:40 +0000 (10:30 +0800)]
Add a space before the error string

10 years agoFix cpplint errors
Kai Li [Mon, 31 Mar 2014 14:38:16 +0000 (22:38 +0800)]
Fix cpplint errors

10 years agoAdd curandGetErrorString and use it to redefine CURAND_CHECK
Kai Li [Mon, 31 Mar 2014 14:29:36 +0000 (22:29 +0800)]
Add curandGetErrorString and use it to redefine CURAND_CHECK

10 years agoAdd caffe::cublasGetErrorString and redefine CUBLAS_CHECK with it
Kai Li [Mon, 31 Mar 2014 14:23:22 +0000 (22:23 +0800)]
Add caffe::cublasGetErrorString and redefine CUBLAS_CHECK with it

10 years agoDefine CUDA_POST_KERNEL_CHECK with CUDA_CHECK
Kai Li [Mon, 31 Mar 2014 14:07:22 +0000 (22:07 +0800)]
Define CUDA_POST_KERNEL_CHECK with CUDA_CHECK

10 years agoLog error string rather than enum value in CUDA_CHECK
Kai Li [Mon, 31 Mar 2014 13:56:05 +0000 (21:56 +0800)]
Log error string rather than enum value in CUDA_CHECK

10 years agoRemoved empty space, verified lint
Sergio Guadarrama [Mon, 31 Mar 2014 22:57:48 +0000 (15:57 -0700)]
Removed empty space, verified lint

10 years agoAdded default values to matcaffe_batch for testing
Sergio Guadarrama [Mon, 31 Mar 2014 22:55:33 +0000 (15:55 -0700)]
Added default values to matcaffe_batch for testing

10 years agoAdded matcaffe_init to easy reuse of caffe initialization
Sergio Guadarrama [Mon, 31 Mar 2014 22:47:36 +0000 (15:47 -0700)]
Added matcaffe_init to easy reuse of caffe initialization

10 years agoRemoved fillers from imagenet_deploy
Sergio Guadarrama [Mon, 31 Mar 2014 21:45:29 +0000 (14:45 -0700)]
Removed fillers from imagenet_deploy

10 years agoCreated reset command and changed END to NULL again
Sergio Guadarrama [Mon, 17 Mar 2014 19:44:58 +0000 (12:44 -0700)]
Created reset command and changed END to NULL again

10 years agoAdded prints to matcaffe_demo stages
sguada [Thu, 27 Feb 2014 21:40:31 +0000 (13:40 -0800)]
Added prints to matcaffe_demo stages

10 years agoCleaned matcaffe.cpp to pass lint
Sergio Guadarrama [Mon, 31 Mar 2014 21:42:24 +0000 (14:42 -0700)]
Cleaned matcaffe.cpp to pass lint

10 years agoChanged matcaffe_demo to return maxlabel
Sergio Guadarrama [Mon, 31 Mar 2014 21:40:38 +0000 (14:40 -0700)]
Changed matcaffe_demo to return maxlabel

10 years agoChanged Copyright to BVLC
Sergio Guadarrama [Mon, 31 Mar 2014 21:39:16 +0000 (14:39 -0700)]
Changed Copyright to BVLC

10 years agoResolved merge conflicts
Sergio Guadarrama [Mon, 31 Mar 2014 21:37:58 +0000 (14:37 -0700)]
Resolved merge conflicts

10 years agoMerge pull request #275 from kloudkl/fix_kernel_for_loop_in_macro
Jeff Donahue [Sat, 29 Mar 2014 20:46:04 +0000 (13:46 -0700)]
Merge pull request #275 from kloudkl/fix_kernel_for_loop_in_macro

Fix kernel for loop in macro

10 years agoUse CUDA_KERNEL_LOOP in the macro DEFINE_AND_INSTANTIATE_GPU_UNARY_FUNC
Kai Li [Sat, 29 Mar 2014 20:37:53 +0000 (04:37 +0800)]
Use CUDA_KERNEL_LOOP in the macro DEFINE_AND_INSTANTIATE_GPU_UNARY_FUNC

10 years agoMerge pull request #272 from kloudkl/gpu_hamming_distance
Evan Shelhamer [Sat, 29 Mar 2014 19:57:47 +0000 (12:57 -0700)]
Merge pull request #272 from kloudkl/gpu_hamming_distance

Implement GPU Hamming distance math function

10 years agoMerge pull request #271 from jeffdonahue/lint-bvlc-copyright
Evan Shelhamer [Sat, 29 Mar 2014 19:19:30 +0000 (12:19 -0700)]
Merge pull request #271 from jeffdonahue/lint-bvlc-copyright

lint check for BVLC Copyright

10 years agoImplement and test gpu hamming distance
Kai Li [Sat, 29 Mar 2014 13:36:13 +0000 (21:36 +0800)]
Implement and test gpu hamming distance

10 years agoRename caffe_hamming_distance into caffe_cpu_hamming_distance
Kai Li [Sat, 29 Mar 2014 12:20:58 +0000 (20:20 +0800)]
Rename caffe_hamming_distance into caffe_cpu_hamming_distance

10 years agomake lint check for 'Copyright [year] BVLC and contributors.'
Jeff Donahue [Sat, 29 Mar 2014 05:03:13 +0000 (22:03 -0700)]
make lint check for 'Copyright [year] BVLC and contributors.'

10 years agocompile the copyright regex
Jeff Donahue [Sat, 29 Mar 2014 04:54:58 +0000 (21:54 -0700)]
compile the copyright regex

10 years agoMerge pull request #219 from jeffdonahue/refactor-layerparam-proto
Evan Shelhamer [Fri, 28 Mar 2014 07:49:18 +0000 (00:49 -0700)]
Merge pull request #219 from jeffdonahue/refactor-layerparam-proto

Refactor LayerParameter into per-layer Parameter messages and add tools for seamless proto upgrade.

10 years agorename test_innerproduct_layer to test_inner_product_layer
Jeff Donahue [Fri, 28 Mar 2014 07:21:26 +0000 (00:21 -0700)]
rename test_innerproduct_layer to test_inner_product_layer

10 years agomove ReadNetParamsFrom{Text,Binary}File into util
Jeff Donahue [Fri, 28 Mar 2014 04:25:26 +0000 (21:25 -0700)]
move ReadNetParamsFrom{Text,Binary}File into util

10 years agoadd NetParameterPrettyPrint so that upgrade tool prints inputs before
Jeff Donahue [Fri, 28 Mar 2014 01:24:51 +0000 (18:24 -0700)]
add NetParameterPrettyPrint so that upgrade tool prints inputs before
layers

10 years agoupdate docs (and a couple comments) for refactored layerparam
Jeff Donahue [Thu, 27 Mar 2014 23:37:20 +0000 (16:37 -0700)]
update docs (and a couple comments) for refactored layerparam

10 years agofix upgrade_net_proto names
Jeff Donahue [Thu, 27 Mar 2014 23:07:07 +0000 (16:07 -0700)]
fix upgrade_net_proto names

10 years agominor cleanup
Jeff Donahue [Thu, 27 Mar 2014 22:53:10 +0000 (15:53 -0700)]
minor cleanup

10 years agoadd support for hdf5 output layer
Jeff Donahue [Thu, 27 Mar 2014 22:11:22 +0000 (15:11 -0700)]
add support for hdf5 output layer

10 years agocleaner version of refactoring with fields added to LayerConnection
Jeff Donahue [Thu, 27 Mar 2014 21:58:45 +0000 (14:58 -0700)]
cleaner version of refactoring with fields added to LayerConnection
(which retains an optional V0LayerParameter field for legacy support)
and LayerConnection renamed to LayerParameter

10 years agosome post rebase fixes -- copyright, hdf5_output layer (still need to
Jeff Donahue [Thu, 27 Mar 2014 19:34:40 +0000 (12:34 -0700)]
some post rebase fixes -- copyright, hdf5_output layer (still need to
incorporate into util/upgrade_proto)

10 years agorollback previous commit adding version number to NetParameter -- going
Jeff Donahue [Mon, 24 Mar 2014 04:06:09 +0000 (21:06 -0700)]
rollback previous commit adding version number to NetParameter -- going
a different route

10 years agoadd NetParameter required version number as breaking change for
Jeff Donahue [Mon, 24 Mar 2014 04:53:59 +0000 (21:53 -0700)]
add NetParameter required version number as breaking change for
V0NetParameter

10 years agoallow upgrade_net_proto to also read/write binary protos (e.g. saved
Jeff Donahue [Mon, 24 Mar 2014 04:06:09 +0000 (21:06 -0700)]
allow upgrade_net_proto to also read/write binary protos (e.g. saved
models)

10 years agoregenerate imagenet_val feature extraction prototxt with missing
Jeff Donahue [Mon, 24 Mar 2014 00:34:39 +0000 (17:34 -0700)]
regenerate imagenet_val feature extraction prototxt with missing
IMAGE_DATA params

10 years agomake all tools backwards compatible with v0 net param
Jeff Donahue [Sun, 23 Mar 2014 21:26:31 +0000 (14:26 -0700)]
make all tools backwards compatible with v0 net param

10 years agoupgrade images layer
Jeff Donahue [Sun, 23 Mar 2014 21:14:17 +0000 (14:14 -0700)]
upgrade images layer

10 years agoupgrade remaining prototxts
Jeff Donahue [Fri, 21 Mar 2014 23:42:33 +0000 (16:42 -0700)]
upgrade remaining prototxts

10 years agoupgrade_net_proto: allow input files already in new proto format
Jeff Donahue [Fri, 21 Mar 2014 23:05:41 +0000 (16:05 -0700)]
upgrade_net_proto: allow input files already in new proto format

10 years agofix upgrade_net_proto name
Jeff Donahue [Fri, 21 Mar 2014 22:58:06 +0000 (15:58 -0700)]
fix upgrade_net_proto name

10 years agoincorporate WindowDataLayer into V0Upgrade and add tests
Jeff Donahue [Fri, 21 Mar 2014 22:53:35 +0000 (15:53 -0700)]
incorporate WindowDataLayer into V0Upgrade and add tests

10 years agoupdate deprecated protos to latest dev versions
Jeff Donahue [Fri, 21 Mar 2014 22:37:43 +0000 (15:37 -0700)]
update deprecated protos to latest dev versions

10 years agomake test_protobuf use NONE for dummy layer instead of SPLIT
Jeff Donahue [Fri, 21 Mar 2014 22:20:43 +0000 (15:20 -0700)]
make test_protobuf use NONE for dummy layer instead of SPLIT

10 years agosome naming standardization: ImagesLayer -> ImageDataLayer (like other
Jeff Donahue [Fri, 21 Mar 2014 22:14:08 +0000 (15:14 -0700)]
some naming standardization: ImagesLayer -> ImageDataLayer (like other
data layers), and load_hdf5_file_data -> LoadHDF5FileData

10 years agoalphabetize classes in vision_layers.hpp
Jeff Donahue [Fri, 21 Mar 2014 22:01:55 +0000 (15:01 -0700)]
alphabetize classes in vision_layers.hpp

10 years agosome cleanup - lowercase layer class member variable names
Jeff Donahue [Fri, 21 Mar 2014 21:48:31 +0000 (14:48 -0700)]
some cleanup - lowercase layer class member variable names

10 years agoremove padding layer
Jeff Donahue [Fri, 21 Mar 2014 21:33:42 +0000 (14:33 -0700)]
remove padding layer

10 years agofix test_net for refactor
Jeff Donahue [Fri, 21 Mar 2014 21:04:11 +0000 (14:04 -0700)]
fix test_net for refactor

10 years agoincorporate WindowDataLayer
Jeff Donahue [Fri, 21 Mar 2014 20:45:38 +0000 (13:45 -0700)]
incorporate WindowDataLayer

10 years agorebase and fix stuff, incorporate image and padding layers
Jeff Donahue [Tue, 18 Mar 2014 20:40:39 +0000 (13:40 -0700)]
rebase and fix stuff, incorporate image and padding layers

10 years agofix layertype alphabetization
Jeff Donahue [Mon, 17 Mar 2014 19:38:11 +0000 (12:38 -0700)]
fix layertype alphabetization

10 years agofix lint errors
Jeff Donahue [Mon, 17 Mar 2014 19:21:24 +0000 (12:21 -0700)]
fix lint errors

10 years agofix post-rebase param bugs
Jeff Donahue [Mon, 17 Mar 2014 18:35:01 +0000 (11:35 -0700)]
fix post-rebase param bugs

10 years agoconvert existing models to new format (used tools/upgrade_net_proto with
Jeff Donahue [Mon, 17 Mar 2014 13:22:29 +0000 (06:22 -0700)]
convert existing models to new format (used tools/upgrade_net_proto with
no manual editing)

10 years agoLayerType enum
Jeff Donahue [Mon, 17 Mar 2014 13:20:55 +0000 (06:20 -0700)]
LayerType enum

10 years agoput inputs before layers in the proto so they print in that order
Jeff Donahue [Mon, 17 Mar 2014 12:24:53 +0000 (05:24 -0700)]
put inputs before layers in the proto so they print in that order

10 years agoadd test for input/input_dim and fix bug, wasn't copying input
Jeff Donahue [Mon, 17 Mar 2014 12:18:55 +0000 (05:18 -0700)]
add test for input/input_dim and fix bug, wasn't copying input

10 years agoadd upgrade_net_proto tool
Jeff Donahue [Mon, 17 Mar 2014 11:35:31 +0000 (04:35 -0700)]
add upgrade_net_proto tool

10 years agofix insert_splits for new layer param format
Jeff Donahue [Mon, 17 Mar 2014 10:45:09 +0000 (03:45 -0700)]
fix insert_splits for new layer param format

10 years agoadd test which includes upgraded params
Jeff Donahue [Mon, 17 Mar 2014 10:30:49 +0000 (03:30 -0700)]
add test which includes upgraded params

10 years agoadd imagenet upgrade test and fix bug in upgrade_proto
Jeff Donahue [Mon, 17 Mar 2014 10:04:35 +0000 (03:04 -0700)]
add imagenet upgrade test and fix bug in upgrade_proto

10 years agomore padding layer upgrade tests
Jeff Donahue [Mon, 17 Mar 2014 09:08:09 +0000 (02:08 -0700)]
more padding layer upgrade tests

10 years agoimagenet padding upgrade test
Jeff Donahue [Mon, 17 Mar 2014 08:58:29 +0000 (01:58 -0700)]
imagenet padding upgrade test

10 years agoset correct bottom blob name in upgraded conv layer
Jeff Donahue [Mon, 17 Mar 2014 08:40:03 +0000 (01:40 -0700)]
set correct bottom blob name in upgraded conv layer

10 years agofunction to upgrade padding layers
Jeff Donahue [Mon, 17 Mar 2014 08:21:06 +0000 (01:21 -0700)]
function to upgrade padding layers