You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have trained the model on my custom dataset with colab, performance are okay and the test on new data too.
When I run the detection part:
yolo = Create_Yolo(input_size=YOLO_INPUT_SIZE, CLASSES=TRAIN_CLASSES)
yolo.load_weights(checkpoints) # use keras weights
for img in os.listdir(image_path):
yolo.predict(img)
It gives me a strange behaviour: only the first image in the foor loop gives me a detection; the following ones have no detection.
This only happen when I'm using conda env with GPU; when I'm using CPU it's all working well.
any ideas?
thanks
The text was updated successfully, but these errors were encountered:
I have experienced the same thing and I figured out that batch normalization layer in Tensorflow conflicted with model.predict().
Solution: instead of using model.predict(), create data as in the training process and use model(data, training=False).
I have trained the model on my custom dataset with colab, performance are okay and the test on new data too.
When I run the detection part:
yolo = Create_Yolo(input_size=YOLO_INPUT_SIZE, CLASSES=TRAIN_CLASSES)
yolo.load_weights(checkpoints) # use keras weights
for img in os.listdir(image_path):
yolo.predict(img)
It gives me a strange behaviour: only the first image in the foor loop gives me a detection; the following ones have no detection.
This only happen when I'm using conda env with GPU; when I'm using CPU it's all working well.
any ideas?
thanks
The text was updated successfully, but these errors were encountered: