tensorflow / tensorflow/models
i am using tensorflow 2x and i have done changed tf.gfile into tf.io in config_util.py and also done this import tensorflow.compat.v1 as tf but still i am getting this error.
Open
@pkulzc is already working on this.
Since Mar 3, 2022.
models:research
type:support
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
in
----> 1 config = config_util.get_configs_from_pipeline_file(CONFIG_PATH)
~\AppData\Roaming\Python\Python38\site-packages\object_detection\utils\config_util.py in get_configs_from_pipeline_file(pipeline_config_path, config_override)
94 """
95 pipeline_config = pipeline_pb2.TrainEvalPipelineConfig()
---> 96 with tf.io.gfile.GFile(pipeline_config_path, mode="r") as f:
97 proto_str = f.read()
98 text_format.Merge(proto_str, pipeline_config)
AttributeError: module 'tensorflow' has no attribute 'gfile'
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.