MCPcopy Create free account
hub / github.com/AlayaLab/Hive / parse_args

Function parse_args

infer_flowsep.py:82–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81
82def parse_args():
83 parser = argparse.ArgumentParser(
84 description="Run FlowSep inference from the Hive wrapper."
85 )
86 parser.add_argument(
87 "--audio_file",
88 type=str,
89 default=str(TEST_DATA_DIR / "acoustic_guitar.wav"),
90 help="Input mixed audio file path.",
91 )
92 parser.add_argument(
93 "--text",
94 type=str,
95 default="acoustic_guitar",
96 help="Text query used for source separation.",
97 )
98 parser.add_argument(
99 "--output_file",
100 type=str,
101 default=str(TEST_DATA_DIR / "separated_audio.wav"),
102 help="Output separated audio file path.",
103 )
104 return parser.parse_args()
105
106
107def main():

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected