X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=test-svrt.py;h=ad3677a97e69d181a25d7035317e4c9085ad5ad2;hb=24789240ca5395a857c16e602a2d0f5e8cb176d8;hp=5c16069d3ce7ff0bced73eb5d079a9e20a74b1b5;hpb=99878e6cbf07b86b0e180c3eb5bee055c7444b73;p=pysvrt.git
diff --git a/test-svrt.py b/test-svrt.py
index 5c16069..ad3677a 100755
--- a/test-svrt.py
+++ b/test-svrt.py
@@ -19,7 +19,7 @@
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with selector. If not, see .
+# along with svrt. If not, see .
import time
@@ -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)