projects
/
pysvrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8bc2db
)
Minor fix.
author
Francois Fleuret
<francois@fleuret.org>
Thu, 15 Jun 2017 22:29:44 +0000
(
00:29
+0200)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 15 Jun 2017 22:29:44 +0000
(
00:29
+0200)
vignette_set.py
patch
|
blob
|
history
diff --git
a/vignette_set.py
b/vignette_set.py
index
ea52159
..
0ed3d39
100755
(executable)
--- a/
vignette_set.py
+++ b/
vignette_set.py
@@
-84,7
+84,7
@@
class CompressedVignetteSet:
self.input_storages.append(svrt.compress(input.storage()))
self.mean = acc / self.nb_batches
- self.std =
math.
sqrt(acc_sq / self.nb_batches - self.mean * self.mean)
+ self.std = sqrt(acc_sq / self.nb_batches - self.mean * self.mean)
def get_batch(self, b):
input = torch.ByteTensor(svrt.uncompress(self.input_storages[b])).float()