Files

13 lines
559 B
Python

from pathlib import Path
import json,subprocess
root=Path('/home/ps/huobao-vdn')
p=root/'workflows/vdn_hd.json'; graph=json.loads(p.read_text())
graph.pop('15',None)
graph['16']['inputs']['images']=['13',0]
p.write_text(json.dumps(graph))
p=root/'workflow.py'; text=p.read_text()
text=text.replace(" _patch_node(workflow, '15', {'width': width, 'height': height})\n",'')
p.write_text(text)
subprocess.run(['docker','restart','huobao-vdn-normalizer'],check=True)
print('VDN decodes full native aligned dimensions; desktop trims only alignment padding')