"ValueError: Couldn't find 'checkpoint' file or checkpoints in given directory" error with Google's object detection tutorial

1.8k Views Asked by At

I'm following Google's object detection tutorial here, but when I run the job, I get the following error:

ValueError: Couldn't find 'checkpoint' file or checkpoints in given directory gs://cloud-samples-data/ai-platform/built-in/image/pretrained_checkpoints/detection/

Is this error something specific to my setup, or is there something broken? How can I provide more information?

1

There are 1 best solutions below

0
Malte On

I ran into the same error. Inspecting the provided gs location, the pretrained_checkpoints/ folder directory contains pre-trained checkpoints for both detection and classification.

In the detection/ directory, there is again a choice for different resnet backbones. As I chose the resnet50 in my algorithm config, I also chose the corresponding directory, making the entire --pretrained_checkpoint_path to fill in

gs://cloud-samples-data/ai-platform/built-in/image/pretrained_checkpoints/detection/resnet50/

instead of gs://cloud-samples-data/ai-platform/built-in/image/pretrained_checkpoints, as shown in the tutorial that you linked to.