zhifu gao
2024-04-24 861147c7308b91068ffa02724fdf74ee623a909e
funasr/bin/export.py
@@ -22,13 +22,16 @@
    logging.basicConfig(level=log_level)
    if kwargs.get("debug", False):
        import pdb; pdb.set_trace()
        import pdb
        pdb.set_trace()
    if "device" not in kwargs:
        kwargs["device"] = "cpu"
    model = AutoModel(**kwargs)
    
    res = model.export(input=kwargs.get("input", None),
    res = model.export(
        input=kwargs.get("input", None),
                       type=kwargs.get("type", "onnx"),
                       quantize=kwargs.get("quantize", False),
                       fallback_num=kwargs.get("fallback-num", 5),
@@ -38,5 +41,5 @@
    print(res)
if __name__ == '__main__':
if __name__ == "__main__":
    main_hydra()