projects
/
pysvrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added storage compression / decompression functions to prepare for sets of 1M samples.
[pysvrt.git]
/
test-svrt.py
diff --git
a/test-svrt.py
b/test-svrt.py
index
5c16069
..
5f38fa9
100755
(executable)
--- a/
test-svrt.py
+++ b/
test-svrt.py
@@
-41,6
+41,8
@@
labels.narrow(0, 0, labels.size(0)//2).fill_(1)
x = svrt.generate_vignettes(4, labels)
+print('compression factor {:f}'.format(x.storage().size() / svrt.compress(x.storage()).size()))
+
x = x.view(x.size(0), 1, x.size(1), x.size(2))
x.div_(255)