# Tolerance sweep on the first 100 frames (5 shots): size vs error. $env:PYTHONPATH = "D:\dev\rick-roll-md" $root = "D:\dev\rick-roll-md" $settings = @( @(25, 40, 40), @(50, 80, 80), @(100, 160, 160), @(200, 320, 320) ) foreach ($s in $settings) { $tag = "sw_$($s[0])_$($s[1])_$($s[2])" py -3.12 -m rrmd encode-clip "$root\encoder-prototype\fields\seg0" "$root\out\$tag" --limit 100 --codebook --tols $s[0] $s[1] $s[2] *> "$root\out\$tag.log" $j = Get-Content "$root\out\$tag\summary.json" | ConvertFrom-Json $total = $j.store_bytes + $j.patch_bytes + $j.descriptor_bytes "{0,-16} store {1,7:N0} B patches {2,7:N0} B descr {3,7:N0} B total {4,9:N0} B -> x14 song est {5,6:N1} MB err {6,6:N1} (base {7,6:N1})" -f $tag, $j.store_bytes, $j.patch_bytes, $j.descriptor_bytes, $total, ($total * 52.75 / 1e6), $j.mean_error_per_pixel, $j.mean_base_error_per_pixel }