Skip to content

something went wrong in function bird_pre_process #56

Description

@cbacode

Grateful for your excellent work! But I was trapped by problems when I was preprocessing bird bataset, the error is like

cp: target './dataset/bird/database' is not a directory
cp: target './dataset/bird/database' is not a directory

And I changed these lines like this and it works now:

def bird_pre_process(bird_dir, with_evidence=False):
new_db_path = os.path.join(bird_dir, "databases")
if not os.path.exists(new_db_path):
os.system(f"mkdir {os.path.join(bird_dir, 'databases')}")
os.system(f"cp -r {os.path.join(bird_dir, 'train/train_databases/*')} {new_db_path}")
os.system(f"cp -r {os.path.join(bird_dir, 'dev/dev_databases/*')} {new_db_path}")

Is this the correct solution? Thank you for tour reply.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions