nicknochnack / TFODCourse

944 stars 919 forks source link

Error when changing pretrained model to other pretrained model #155

Open ck12780 opened 6 months ago

ck12780 commented 6 months ago

Hi there, i have face issue when changing to other pretrained model Tensorflow: 2.10.1 Python :3.10.0 Pretrained model: faster_rcnn_inception_resnet_v2_640x640_coco17_tpu-8 Link: http://download.tensorflow.org/models/object_detection/tf2/20200711/faster_rcnn_inception_resnet_v2_640x640_coco17_tpu-8.tar.gz When I run training as code below TRAINING_SCRIPT = os.path.join(paths['APIMODEL_PATH'], 'research', 'object_detection', 'model_main_tf2.py') command = "python {} --model_dir={} --pipeline_config_path={} --num_train_steps=2000".format(TRAINING_SCRIPT, paths['CHECKPOINT_PATH'],files['PIPELINE_CONFIG']) It show error like this ValueError: is not supported for tf version 2. See model_builder.py for features extractors compatible with different versions of Tensorflow
Is there anyone know how to solve this

sabbir2609 commented 6 months ago

The instruction in the error is clear.