projects
/
platform
/
upstream
/
caffeonacl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
886563b
)
avoid non-integer array indices
author
Drew Abbot
<drewabbot@gmail.com>
Thu, 28 Apr 2016 06:25:09 +0000
(23:25 -0700)
committer
Drew Abbot
<drewabbot@gmail.com>
Thu, 28 Apr 2016 06:25:09 +0000
(23:25 -0700)
python/caffe/classifier.py
patch
|
blob
|
history
diff --git
a/python/caffe/classifier.py
b/python/caffe/classifier.py
index
537193d
..
ea29fed
100644
(file)
--- a/
python/caffe/classifier.py
+++ b/
python/caffe/classifier.py
@@
-79,6
+79,7
@@
class Classifier(caffe.Net):
-self.crop_dims / 2.0,
self.crop_dims / 2.0
])
+ crop = crop.astype(int)
input_ = input_[:, crop[0]:crop[2], crop[1]:crop[3], :]
# Classify