-
Notifications
You must be signed in to change notification settings - Fork 144
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
I have made my own train,val,and test dataset. The file structure is:
data
├── test
│ ├── data.mdb
│ └── lock.mdb
├── train
│ └── real
│ ├── data.mdb
│ └── lock.mdb
└── val
├── data.mdb
└── lock.mdb
I have trained a model using my own dataset under data/train/real/
and data/val/
. But I don't know how to test this model using dataset under data/test/
.
In test.py, I can't find a parameter specifying the test dataset:
Lines 65 to 75 in 8fa5100
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('checkpoint', help="Model checkpoint (or 'pretrained=<model_id>')") | |
parser.add_argument('--data_root', default='data') | |
parser.add_argument('--batch_size', type=int, default=512) | |
parser.add_argument('--num_workers', type=int, default=4) | |
parser.add_argument('--cased', action='store_true', default=False, help='Cased comparison') | |
parser.add_argument('--punctuation', action='store_true', default=False, help='Check punctuation') | |
parser.add_argument('--new', action='store_true', default=False, help='Evaluate on new benchmark datasets') | |
parser.add_argument('--rotation', type=int, default=0, help='Angle of rotation (counter clockwise) in degrees.') | |
parser.add_argument('--device', default='cuda') |
And if I run directly ./test.py outputs/<model>/<timestamp>/checkpoints/last.ckpt
, it will report an error:
Additional keyword arguments: {'charset_test': '0123456789abcdefghijklmnopqrstuvwxyz'}
Traceback (most recent call last):
File "./test.py", line 133, in <module>
main()
...
...
...
lmdb.Error: data/test/CUTE80: No such file or directory
My charset_test
is not '0123456789abcdefghijklmnopqrstuvwxyz' and I don't want to test the model on CUTE80.
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation