When calling hf_main(args) directly, the __main__ block conversions that run between parse_args() and main() are skipped. calib_size stays as string '128' instead of [128], causing TypeError on list concatenation.
When calling hf_main(args) directly, the __main__ block conversions that run between parse_args() and main() are skipped. calib_size stays as string '128' instead of [128], causing TypeError on list concatenation.