Open paapu88 opened 4 years ago
Also the same problem when using conda (which has tensorflow-gpu==2.1.0rc1), maybe this has something to do with not much GPU memory?
ok,
Training from random weights (NOT RECOMMENDED)
Seems to work, so I'm happy with that
@paapu88 Hi, how did you solve the problem??
It crashes every now and then. I restart from lowest validation loss.
and: to read old weights one must add to train.py
yolov3-tf2/train.py has been edited to:
# Configure the model for transfer learning
if FLAGS.transfer == 'none':
try:
model.load_weights(FLAGS.weights)
print("LOADING OLD WEIGHTS FROM:", FLAGS.weights)
except:
print("no weights loaded, starting from scracth")
I restart with
python3 train.py --dataset ./data/hurricane_train.tfrecord --val_dataset ./data/hurricane_test.tfrecord --classes ./data/hurricane7.names --num_classes 1 --mode fit --transfer none --batch_size 1 --epochs 20 --size 416 --weights ./checkpoints/yolov3_train_1.tf
My first contact with the target detection, according to your method successfully solved this problem. But when is the end of the training
I just let it run and take the weights with the lowest validation error. This is not the most elegant solution, but did work for me.
When following https://github.com/zzh8829/yolov3-tf2/blob/master/docs/training_voc.md
after
I get:
This problem is discussed here: https://github.com/tensorflow/tensorflow/issues/31509
Any suggestions: I have tried tensorflow-gpu==2.0.0 and
pip3 install --user tensorflow-gpu==2.1.0rc1