-
Notifications
You must be signed in to change notification settings - Fork 129
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
How to use ./test.py to test a model on my own dataset? #27
Comments
In There is already a parameter in If you want to train only on your own data set, you can create another tuple, let's say
Now if you want to change your
Edit: The modification of the .yaml file must be done prior to training of the model even though it concerns Alternatively you can just change the value of |
That's so cool! I successfully test the model using your method. Thank you very much! |
Excuse me, but is this necessary? Do I have to change the code: Line 84 in 8fa5100
to kwargs.update({'charset_test': 'Lots of characters in my charset_test...'}) When I test the model on my test set 2 hours ago, it worked normally but I didn't change this line of code. The output was:
And the accuracy was 94%. Did I just use '0123456789abcdefghijklmnopqrstuvwxyz' to test the model? But If so, the accuracy should be very low. |
Also, I didn't change the value of
|
I have run a few tests on my own and it seems that any My thoughts are that since you load an already built model, the Though, as mentionned by baudm, the Now regarding the result of your test, it is indeed very strange. Something off somewhere and I couldn't figure out what |
Yes, It is necessary to change the code: Line 84 in 8fa5100
to kwargs.update({'charset_test': 'Lots of characters in my charset_test...'}) Before change, if I print After change, if I print Thank you! |
To put it in a nutshell, you can either:
By defaults: charset_test is overriden by kwargs.update with value "0123456789abcdefghijklmnopqrstuvwxyz". This default string can further be modified with the native parameter @baudm Do you concur ? |
To clarify:
In summary, for now just specify |
Aaah thank you for clarifications ! But then, to make it more transparent, shouldn't |
@bmusq it can't be since all models (i.e. Since a model checkpoint (either .ckpt or .pt) already contains the hyperparameters used for training, the config files aren't used anymore during inference (hence the decision to not use Hydra for Hydra is only a train-time dependency. It's not required for using the model during inference. |
I have made my own train,val,and test dataset. The file structure is:
I have trained a model using my own dataset under
data/train/real/
anddata/val/
. But I don't know how to test this model using dataset underdata/test/
.In test.py, I can't find a parameter specifying the test dataset:
parseq/test.py
Lines 65 to 75 in 8fa5100
And if I run directly
./test.py outputs/<model>/<timestamp>/checkpoints/last.ckpt
, it will report an error:My
charset_test
is not '0123456789abcdefghijklmnopqrstuvwxyz' and I don't want to test the model on CUTE80.The text was updated successfully, but these errors were encountered: