williamyang1991 / VToonify

[SIGGRAPH Asia 2022] VToonify: Controllable High-Resolution Portrait Video Style Transfer
Other
3.53k stars 442 forks source link

Suggestion: unique name of the output #43

Open vitacon opened 1 year ago

vitacon commented 1 year ago

It was a bit inconvenient to manually rename output files to avoid overwriting so I made a rather provisional hack:

savename = os.path.join(args.output_path, basename + '_vtoonify_' + args.backbone[0] + '-' + args.ckpt[24:29] + '-' + str(args.style_id).zfill(3) + '-' + str(100*args.style_degree).zfill(3) + '.jpg')

I think it would be useful to add something like this ("args.ckpt[24:29]" needs to be replaced by something more robust) into your code.

ashleykleynhans commented 1 year ago

I would also like to specify the path and filename of the output file please.