Skip to content

Commit db66432

Browse files
committed
fix many typos by using codespell
1 parent b644a87 commit db66432

16 files changed

Lines changed: 22 additions & 22 deletions

File tree

cmake/Targets.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function(caffe_pickup_caffe_sources root)
9494
caffe_convert_absolute_paths(test_srcs)
9595
caffe_convert_absolute_paths(test_cuda)
9696

97-
# propogate to parent scope
97+
# propagate to parent scope
9898
set(srcs ${srcs} PARENT_SCOPE)
9999
set(cuda ${cuda} PARENT_SCOPE)
100100
set(test_srcs ${test_srcs} PARENT_SCOPE)

examples/02-fine-tuning.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@
11411141
"cell_type": "markdown",
11421142
"metadata": {},
11431143
"source": [
1144-
"So we did finetuning and it is awesome. Let's take a look at what kind of results we are able to get with a longer, more complete run of the style recognition dataset. Note: the below URL might be occassionally down because it is run on a research machine.\n",
1144+
"So we did finetuning and it is awesome. Let's take a look at what kind of results we are able to get with a longer, more complete run of the style recognition dataset. Note: the below URL might be occasionally down because it is run on a research machine.\n",
11451145
"\n",
11461146
"http://demo.vislab.berkeleyvision.org/"
11471147
]

examples/mnist/train_lenet_docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set -e
2525
# executed.
2626
#
2727
# In order to provide additional flexibility, the following shell (environment)
28-
# variables can be used to controll the execution of each of the phases:
28+
# variables can be used to control the execution of each of the phases:
2929
#
3030
# DOWNLOAD_DATA: Enable (1) or disable (0) the downloading of the MNIST dataset
3131
# CREATE_LMDB: Enable (1) or disable (0) the creation of the LMDB database

examples/pycaffe/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def set_scale(self, scale):
2626

2727
def preprocess(self, im):
2828
"""
29-
preprocess() emulate the pre-processing occuring in the vgg16 caffe
29+
preprocess() emulate the pre-processing occurring in the vgg16 caffe
3030
prototxt.
3131
"""
3232

@@ -75,7 +75,7 @@ def __init__(self, testnet_prototxt_path="testnet.prototxt",
7575
# looks:
7676
self.sp['display'] = '25'
7777
self.sp['snapshot'] = '2500'
78-
self.sp['snapshot_prefix'] = '"snapshot"' # string withing a string!
78+
self.sp['snapshot_prefix'] = '"snapshot"' # string within a string!
7979

8080
# learning rate policy
8181
self.sp['lr_policy'] = '"fixed"'

matlab/+caffe/private/caffe_.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void mxCHECK_FILE_EXIST(const char* file) {
4444
// The pointers to caffe::Solver and caffe::Net instances
4545
static vector<shared_ptr<Solver<float> > > solvers_;
4646
static vector<shared_ptr<Net<float> > > nets_;
47-
// init_key is generated at the beginning and everytime you call reset
47+
// init_key is generated at the beginning and every time you call reset
4848
static double init_key = static_cast<double>(caffe_rng_rand());
4949

5050
/** -----------------------------------------------------------------

matlab/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if(NOT BUILD_SHARED_LIBS AND build_using MATCHES Matlab)
2020
message(FATAL_ERROR "Matlab MEX interface (with default mex options file) can only be built if caffe is compiled as shared library. Please enable 'BUILD_SHARED_LIBS' in CMake. Aternativelly you can switch to Octave compiler.")
2121
endif()
2222

23-
# helper function to set proper mex file extention
23+
# helper function to set proper mex file extension
2424
function(caffe_fetch_and_set_proper_mexext mexfile_variable)
2525
execute_process(COMMAND ${Matlab_mexext} OUTPUT_STRIP_TRAILING_WHITESPACE RESULT_VARIABLE res OUTPUT_VARIABLE ext)
2626
if(res MATCHES 0)

scripts/cpp_lint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4460,7 +4460,7 @@ def UpdateIncludeState(filename, include_state, io=codecs):
44604460
io: The io factory to use to read the file. Provided for testability.
44614461
44624462
Returns:
4463-
True if a header was succesfully added. False otherwise.
4463+
True if a header was successfully added. False otherwise.
44644464
"""
44654465
headerfile = None
44664466
try:
@@ -4532,7 +4532,7 @@ def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error,
45324532
# Let's copy the include_state so it is only messed up within this function.
45334533
include_state = include_state.copy()
45344534

4535-
# Did we find the header for this file (if any) and succesfully load it?
4535+
# Did we find the header for this file (if any) and successfully load it?
45364536
header_found = False
45374537

45384538
# Use the absolute path so that matching works properly.
@@ -4833,7 +4833,7 @@ def ParseArguments(args):
48334833
try:
48344834
_valid_extensions = set(val.split(','))
48354835
except ValueError:
4836-
PrintUsage('Extensions must be comma seperated list.')
4836+
PrintUsage('Extensions must be comma separated list.')
48374837

48384838
if not filenames:
48394839
PrintUsage('No files were specified.')

src/caffe/layers/crop_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void CropLayer<Dtype>::crop_copy(const vector<Blob<Dtype>*>& bottom,
8585
src_data, dest_data, is_forward);
8686
}
8787
} else {
88-
// We are at the last dimensions, which is stored continously in memory
88+
// We are at the last dimensions, which is stored continuously in memory
8989
for (int i = 0; i < top[0]->shape(cur_dim); ++i) {
9090
// prepare index vector reduced(red) and with offsets(off)
9191
std::vector<int> ind_red(cur_dim, 0);

src/caffe/layers/crop_layer.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void CropLayer<Dtype>::crop_copy_gpu(const vector<Blob<Dtype>*>& bottom,
3939
src_data, dest_data, is_forward);
4040
}
4141
} else {
42-
// We are at the last two dimensions, which are stored continously in memory
42+
// We are at the last two dimensions, which are stored continuously in memory
4343
// With (N,C,H,W)
4444
// (0,1,2,3) cur_dim -> H
4545
// cur_dim+1 -> W

src/caffe/layers/hdf5_data_layer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ void HDF5DataLayer<Dtype>::LoadHDF5FileData(const char* filename) {
6161
// Shuffle if needed.
6262
if (this->layer_param_.hdf5_data_param().shuffle()) {
6363
std::random_shuffle(data_permutation_.begin(), data_permutation_.end());
64-
DLOG(INFO) << "Successully loaded " << hdf_blobs_[0]->shape(0)
64+
DLOG(INFO) << "Successfully loaded " << hdf_blobs_[0]->shape(0)
6565
<< " rows (shuffled)";
6666
} else {
67-
DLOG(INFO) << "Successully loaded " << hdf_blobs_[0]->shape(0) << " rows";
67+
DLOG(INFO) << "Successfully loaded " << hdf_blobs_[0]->shape(0) << " rows";
6868
}
6969
}
7070

0 commit comments

Comments
 (0)