X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=pysvrt.git;a=blobdiff_plain;f=test-svrt.py;h=5f38fa9bede770220868c21c115e51d1c37dbb4a;hp=5c16069d3ce7ff0bced73eb5d079a9e20a74b1b5;hb=51d45bec8caf5896a113e79475abd7d2df4a646d;hpb=717e2208c858cb4cd746c721a29f72155938948a diff --git a/test-svrt.py b/test-svrt.py index 5c16069..5f38fa9 100755 --- 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)