Skip to content

Commit

Permalink
[FIX] status and set_type in CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCretois committed Sep 5, 2023
1 parent bbabd8d commit 6bf8c06
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions data_utils/DCASEfewshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,22 +543,6 @@ def preprocess_df(df):
if __name__ == "__main__":
parser = argparse.ArgumentParser()

parser.add_argument(
"--status",
help=" 'train' or 'validate' or 'test'",
default="train",
required=False,
type=str,
)

parser.add_argument(
"--set_type",
help=" 'Training_Set' or 'Validation_Set' or 'Evaluation_Set",
default="Training_Set",
required=False,
type=str,
)

parser.add_argument(
"--overwrite",
help="If there's an existing folder, should it be deleted?",
Expand Down Expand Up @@ -598,8 +582,8 @@ def preprocess_df(df):
cfg = yaml.load(f, Loader=FullLoader)

prepare_training_val_data(
cli_args.status,
cli_args.set_type,
cfg["data"]["status"],
cfg["data"]["set_type"],
cli_args.overwrite,
cfg["data"]["tensor_length"],
cfg["data"]["frame_length"],
Expand Down

0 comments on commit 6bf8c06

Please sign in to comment.