tensorflow / tensorflow/models
`faster_rcnn_inception_resnet_v2_1024x1024_coco17_tpu-8.config` is missing
Open
Nobody has claimed this yet.
models:research:odapi
type:bug
type:feature
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
Prerequisites
Please answer the following questions for yourself before submitting an issue.
- I am using the latest TensorFlow Model Garden release and TensorFlow 2.
- I am reporting the issue to the correct repository. (Model Garden official or research directory)
- I checked to make sure that this issue has not already been filed.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/tree/master/research/object_detection/configs/
2. Describe the bug
Config file for faster_rcnn_inception_resnet_v2_1024x1024_coco17_tpu-8 model is not present
3. Steps to reproduce
Clone repo and try to setup the following model using the inference_tf2_colab.ipynb
pipeline_config = os.path.join('../configs/tf2/',
model_name + '.config')
print(os.path.abspath(pipeline_config))
model_dir = '../test_data/checkpoint/'
# Load pipeline config and build a detection model
configs = config_util.get_configs_from_pipeline_file(pipeline_config)
model_config = configs['model']
detection_model = model_builder.build(
model_config=model_config, is_training=False)
# Restore checkpoint
ckpt = tf.compat.v2.train.Checkpoint(
model=detection_model)
ckpt.restore(os.path.join(model_dir, 'ckpt-0')).expect_partial()
def get_model_detection_function(model):
"""Get a tf.function for detection."""
@tf.function
def detect_fn(image):
"""Detect objects in image."""
image, shapes = model.preprocess(image)
prediction_dict = model.predict(image, shapes)
detections = model.postprocess(prediction_dict, shapes)
return detections, prediction_dict, tf.reshape(shapes, [-1])
return detect_fn
detect_fn = get_model_detection_function(detection_model)
OUTPUT
/home/tensorflow/models/research/object_detection/configs/tf2/faster_rcnn_inception_resnet_v2_1024x1024_coco17_tpu-8.config
---------------------------------------------------------------------------
NotFoundError Traceback (most recent call last)
<ipython-input-13-26af6c79482c> in <module>
5
6 # Load pipeline config and build a detection model
----> 7 configs = config_util.get_configs_from_pipeline_file(pipeline_config)
8 model_config = configs['model']
9 detection_model = model_builder.build(
~/.local/lib/python3.6/site-packages/object_detection/utils/config_util.py in get_configs_from_pipeline_file(pipeline_config_path, config_override)
136 pipeline_config = pipeline_pb2.TrainEvalPipelineConfig()
137 with tf.gfile.GFile(pipeline_config_path, "r") as f:
--> 138 proto_str = f.read()
139 text_format.Merge(proto_str, pipeline_config)
140 if config_override:
~/.local/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py in read(self, n)
115 string if in string (regular) mode.
116 """
--> 117 self._preread_check()
118 if n == -1:
119 length = self.size() - self.tell()
~/.local/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py in _preread_check(self)
78 "File isn't open for reading")
79 self._read_buf = _pywrap_file_io.BufferedInputStream(
---> 80 compat.path_to_str(self.__name), 1024 * 512)
81
82 def _prewrite_check(self):
NotFoundError: ../configs/tf2/faster_rcnn_inception_resnet_v2_1024x1024_coco17_tpu-8.config; No such file or directory
4. Expected behavior
The cell should've run correctly, without throwing any error
5. Additional context
Download is successful
--2021-04-07 05:55:05-- http://download.tensorflow.org/models/object_detection/tf2/20200711/faster_rcnn_inception_resnet_v2_1024x1024_coco17_tpu-8.tar.gz
Resolving download.tensorflow.org (download.tensorflow.org)... 142.250.192.16, 2404:6800:4009:827::2010
Connecting to download.tensorflow.org (download.tensorflow.org)|142.250.192.16|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 447961769 (427M) [application/x-tar]
Saving to: ‘faster_rcnn_inception_resnet_v2_1024x1024_coco17_tpu-8.tar.gz’
faster_rcnn_incepti 100%[===================>] 427.21M 2.91MB/s in 3m 0s
2021-04-07 05:58:06 (2.38 MB/s) - ‘faster_rcnn_inception_resnet_v2_1024x1024_coco17_tpu-8.tar.gz’ saved [447961769/447961769]
6. System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Using docker image - tensorflow/tensorflow:latest-gpu-jupyter link
- Mobile device name if the issue happens on a mobile device:
- TensorFlow installed from (source or binary): docker image
- TensorFlow version (use command below): v2.4.0-49-g85c8b2a817f 2.4.1
- Python version: 3.6.9
- Bazel version (if compiling from source):
- GCC/Compiler version (if compiling from source):
- CUDA/cuDNN version: 11
- GPU model and memory: GeForce GTX 1650 Notebook
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.