Please answer the following questions for yourself before submitting an issue.
https://github.com/tensorflow/models/tree/master/research/object_detection
I'm having the OOM issue on the big models, so I tried to train a dummy model,
faster_rcnn {
num_classes: 9
image_resizer {
keep_aspect_ratio_resizer {
min_dimension: 80
max_dimension: 100
pad_to_max_dimension: true
}
}
...
train_config: {
batch_size: 1
num_steps: 200
....
for a some reason resulting checkpoint files are very small
ckpt-1.index = 247 bytes
ckpt-1.data-00000-of-00001 = 864 bytes
Export of this dummy model fails with assertion
raise AssertionError(
("Some Python objects were not bound to checkpointed values, likely due to changes in the Python program: %s") %
(list(unused_python_objects),))
Train dummy faster_rcnn model without finetune checkpoint
final checkpoint file has to be ~100 Mb like in v1. Export happens without errors
@veonua
Request you to share complete code snippet or steps to reproduce the issue in our environment.It helps us in localizing the issue faster.Thanks!
@ravikyram https://gist.github.com/veonua/e4186c92df80b49ad3d813f1219d0727
I'm using latest master version of object detection API
object_detection/model_main_tf2.py --model_dir=./output --pipeline_config_path=checkpoint/pipeline.config --num_train_steps=1000
object_detection/exporter_main_v2.py --input_type=image_tensor --trained_checkpoint_dir="./output" --output_directory="./model" --pipeline_config_path=checkpoint/pipeline.config
please let me know if you need any more information
I get the same error with any model. Attached (TF2 Error.txt) is the terminal output with
ssd_resnet50_v1_fpn_shared_box_predictor_640x640_coco14_sync_2018_07_03 (also tried bunch of other models including efficientdet_d0_coco17_tpu-32)
Here's what I run:
python model_main_tf2.py \
--pipeline_config_path=training/ssd_resnet50_v1_fpn_shared_box_predictor_640x640_coco14_sync_2018_07_03.config \
--model_dir=training/ \
--alsologtostderr
I get the AssertionError, followed by tons of warnings related to weight loading.
AssertionError: Some Python objects were not bound to checkpointed values, likely due to changes in the Python program:
The platform I use:
I've tried on a brand new machine with fresh installation as well, the issue is persistant.
Same Error:
AssertionError: Some Python objects were not bound to checkpointed values, likely due to changes in the Python program:
same error. Bump. It happens to me when loading CenterNet
as the temporary solution, I've removed
status.assert_existing_objects_matched()
The model seems to be working.
same error. It happens to me when loading CenterNet_ResNet50_v1
Any updates on this? I'm getting the same error with every TF2 model I've tried.
Likely a bug in TF 2.3.0
Change the line in pipeline.config
fine_tune_checkpoint_type: "classification" to fine_tune_checkpoint_type: "detection"
Most helpful comment
I get the same error with any model. Attached (TF2 Error.txt) is the terminal output with
ssd_resnet50_v1_fpn_shared_box_predictor_640x640_coco14_sync_2018_07_03 (also tried bunch of other models including efficientdet_d0_coco17_tpu-32)
Here's what I run:
I get the AssertionError, followed by tons of warnings related to weight loading.
The platform I use:
I've tried on a brand new machine with fresh installation as well, the issue is persistant.