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.
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 directorycp: target './dataset/bird/database' is not a directoryAnd 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.