Sync the repo with the working directory: full NOTES.md (rounds 4-5, LFM3-VL), VL tests and test images, quality eval, AutoRound W4A16 quantization scripts and calibration recipe, the variant.sh MODEL/DOCKER_ENV options, and the remaining benchmark results. Large regenerable artifacts (INT4 checkpoint, ref_vl.pt, raw logprob dumps) stay out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
492 B
Python
12 lines
492 B
Python
# Full-page PNG of a local HTML file: python screenshot.py IN.html OUT.png [width]
|
|
import sys
|
|
from playwright.sync_api import sync_playwright
|
|
src, out = sys.argv[1], sys.argv[2]
|
|
width = int(sys.argv[3]) if len(sys.argv) > 3 else 1280
|
|
with sync_playwright() as p:
|
|
b = p.chromium.launch()
|
|
pg = b.new_page(viewport={"width": width, "height": 900}, device_scale_factor=1.5)
|
|
pg.goto("file://" + src); pg.wait_for_timeout(1500)
|
|
pg.screenshot(path=out, full_page=True)
|
|
b.close()
|