When i'm training the pre-trained model on kaggle dataset, it is showing 79% accuracy. when i test on different dataset it shows 42% accuracy
This is the code i used to train the pre-trained model 'inception v3'. And can i know it is showing accuracy as 0.8717 but the val_accuracy as 0.7781. 392
why there is a that much difference. Can anyone explain where it is training correctly or not. If not, can anyone suggest me what wrong is happening?
Thanks in advance
below is the Code:
D:\NEW_DRD\Scripts\python.exe D:/NEW_DRD/own_model.py
2022-04-11 05:58:26.638080: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2022-04-11 05:58:26.639003: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Found 43360 validated image filenames belonging to 5 classes.
Found 4817 validated image filenames belonging to 5 classes.
Found 12045 validated image filenames belonging to 5 classes.
2022-04-11 05:59:49.643475: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2022-04-11 05:59:49.649688: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2022-04-11 05:59:49.661769: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: LAPTOP-GV2TL8N2
2022-04-11 05:59:49.662122: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: LAPTOP-GV2TL8N2
2022-04-11 05:59:<PHONE_NUMBER>: I tensorflow/core/platform/cpu_feature_guard.cc:151] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Epoch 1/80
2022-04-11 06:00:<PHONE_NUMBER>: W tensorflow/core/framework/cpu_allocator_impl.cc:82] Allocation of 194658304 exceeds 10% of free system memory.
1/678 [..............................] - ETA: 1:47:38 - loss: 1.8145 - accuracy: 0.1094 - auc: 0.34042022-04-11 06:00:<PHONE_NUMBER>: W tensorflow/core/framework/cpu_allocator_impl.cc:82] Allocation of 194658304 exceeds 10% of free system memory.
2/678 [..............................] - ETA: 18:05 - loss: 5.7475 - accuracy: 0.2578 - auc: 0.5568 2022-04-11 06:00:<PHONE_NUMBER>: W tensorflow/core/framework/cpu_allocator_impl.cc:82] Allocation of 194658304 exceeds 10% of free system memory.
3/678 [..............................] - ETA: 20:15 - loss: 4.8893 - accuracy: 0.3125 - auc: 0.61232022-04-11 06:00:10.411100: W tensorflow/core/framework/cpu_allocator_impl.cc:82] Allocation of 194658304 exceeds 10% of free system memory.
4/678 [..............................] - ETA: 21:08 - loss: 4.6196 - accuracy: 0.2617 - auc: 0.57742022-04-11 06:00:12.517928: W tensorflow/core/framework/cpu_allocator_impl. 338