Skip to content

model 'loses' weights after one prediction #192

Open
@baldellimtt

Description

@baldellimtt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions