Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test images/label names should be same as train images/label names? #81

Open
AvneeshKhanna opened this issue Feb 8, 2022 · 0 comments

Comments

@AvneeshKhanna
Copy link

Hi
I was wondering that for training our custom dataset, should test images/labels names be same as train images/labels names? Because I one of my train label has the name 0000.txt, but test label has no such name. However, I get the following error:

Traceback (most recent call last):
  File "test.py", line 139, in <module>
    args.debugDec,)
  File "test.py", line 79, in test
    debugEnc=debugEnc, debugDec=debugDec)
  File "/home/ubuntu/lstr-custom/LSTR/test/custom.py", line 225, in testing
    repeat=repeat, isEncAttn=debugEnc, isDecAttn=debugDec)
  File "/home/ubuntu/lstr-custom/LSTR/test/custom.py", line 216, in kp_detection
    eval_result = evaluator.eval(label='{}'.format(os.path.basename(exp_name)))
  File "/home/ubuntu/lstr-custom/LSTR/db/utils/evaluator.py", line 28, in eval
    return self.dataset.eval(self.exp_dir, self.predictions, self.runtimes, **kwargs)
  File "/home/ubuntu/lstr-custom/LSTR/db/custom.py", line 352, in eval
    return f1_metric.eval_predictions(self.anno_root, eval_dir, width=30, official=True, sequential=False)
  File "/home/ubuntu/lstr-custom/LSTR/db/utils/f1_metrics.py", line 116, in eval_predictions
    annotations = load_fld_gt(anno_dir, names)
  File "/home/ubuntu/lstr-custom/LSTR/db/utils/f1_metrics.py", line 107, in load_fld_gt
    anno_data = load_culane_img_data(anno_file)
  File "/home/ubuntu/lstr-custom/LSTR/db/utils/f1_metrics.py", line 84, in load_culane_img_data
    with open(path, 'r') as data_file:
**FileNotFoundError: [Errno 2] No such file or directory: './raws/test_labels/0000.txt**'
@AvneeshKhanna AvneeshKhanna changed the title Test images/labels should be same as train images/labels? Test images/label names should be same as train images/label names? Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant