-
Notifications
You must be signed in to change notification settings - Fork 20
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
wrong predictions #3
Comments
Hey, how many epochs did you train? |
ConfigurationDEBUG = False trainingEPOCHS = 1 USE_CUDA=False file pathsIMAGES_PATH = "dataset" RESULTS_PATH="results" |
try to put |
okay |
More epochs you trainer more the model elaborate your data, I used with a 8 GB NVIDIA GPU to make 25-80 epochs, 3 epochs probably is too low, if you can try with at least 25. If you still get some problems send the If you reach your goal, leave a feedback here and close the issue ;-) |
Try to increase to 1k or 2k the items inside honda_civic and the same for Ford Or if you already have a lot of items, try to increase the epochs also because the graph seems to be still unstable. Try 50 epochs. |
okay
…On Tue, Oct 22, 2019 at 4:27 PM Stefano Borzì ***@***.***> wrote:
Try to increase to 1k or 2k the items inside honda_civic and the same for
Ford
and traing again
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=AL3HJWUSDQBZ5NYJYPF4S7TQP3PTTA5CNFSM4JCC3RDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB5MPAQ#issuecomment-544917378>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL3HJWQSANLSBT3RUCWNL4LQP3PTTANCNFSM4JCC3RDA>
.
|
Is it possible to train it for at least 45 classes with 86% accuracy? right now I have just tested this project using 3 classes with 50 epochs with following results. Accuracy: 0.6013851481338977 Confusion Matrix: F1 Score: |
TL;DR; Yes, but you need data Full answer:
But there are several neural network algorithms available online like resnet152 (that this project use), vggNET etc. The DATA is the problem in your case, indeed, if you have a lot of data PER class you can do anything with this project, you have to train it a lot (I think that 50 epochs is enough, with more classes just look at the results_graph and try with 80 if you think aren't enough). Good data should be 10k per class (for example), but I think that also 1-5k is enough to get 60% accuracy. Anyway, you can try to train the model with 80 classes, but it's a big deal 😅. P.S. = if you solved, we can close this issue 😉 |
Anyway, thank you, I just added more info about training and epochs parameter in the README for future users/developers 😉 |
so using the model that you trained on testing you do not get good results? |
@vokhidovhusan have you deal with it? I have the same issue, test accuracy is not growing. I have 5 classes and equal number of images per class |
how many images do you have per class? |
@Helias It's 2500 images per class |
Hey...thanks a lot for resolving the last issue and sorry for delay
The model has successfully trained but unfortunately giving wrong predictions i.e predicting all test images as result : /resnet152/resnet152.pt [[ 5.5552482e+11 4.6270378e+10 -5.7006516e+11]]
ford
OUTPUT:
/home/aqsa/anaconda3/envs/VGG/lib/python3.7/site-packages/sklearn/metrics/classification.py:1437: UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 in labels with no pr**edicted samples.
'precision', 'predicted', average, warn_for)
(VGG) aqsa@aqsa-OptiPlex-7060:~/Car-Model-Recognition-master-try3$ python3 main.py -i hondatest/filehonda2.jpg
input: hondatest/filehonda2.jpg
results/resnet152/resnet152.pt
[[ 1.5563196e+12 5.7977353e+11 -2.1043264e+12]]
ford
input: hondatest/filehonda3.jpg
results/resnet152/resnet152.pt
[[ 1.5563196e+12 5.7977353e+11 -2.1043264e+12]]
ford
input: fileford5.jpg
results/resnet152/resnet152.pt
[[ 5.5552482e+11 4.6270378e+10 -5.7006516e+11]]
ford
input: fileford4.jpg
results/resnet152/resnet152.pt
[[ 5.5552482e+11 4.6270378e+10 -5.7006516e+11]]
ford
The text was updated successfully, but these errors were encountered: