Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 101: invalid start byte #2316

Open
falloLIYX opened this issue Mar 12, 2024 · 0 comments
Labels
question An issue, pull request, or discussion needs more information

Comments

@falloLIYX
Copy link

falloLIYX commented Mar 12, 2024

when i use pycharm's terminal and type"python model_main_tf2.py --pipeline_config_path==faster_rcnn_resnet152_v1_1024x1024_coco17_tpu-8.config --model_dir==training --alsologtostderr"

it run but got the problem like below:
Traceback (most recent call last): File "C:\Users\user\PycharmProjects\pythonProject\TF2\models\research\object_detection\model_main_tf2.py", line 114, in <module> tf.compat.v1.app.run() File "C:\Users\user\PycharmProjects\pythonProject\TF2\.venv\lib\site-packages\tensorflow\python\platform\app.py", line 36, in run _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "C:\Users\user\PycharmProjects\pythonProject\TF2\.venv\lib\site-packages\absl\app.py", line 308, in run _run_main(main, args) File "C:\Users\user\PycharmProjects\pythonProject\TF2\.venv\lib\site-packages\absl\app.py", line 254, in _run_main sys.exit(main(argv)) File "C:\Users\user\PycharmProjects\pythonProject\TF2\models\research\object_detection\model_main_tf2.py", line 105, in main model_lib_v2.train_loop( File "C:\Users\user\PycharmProjects\pythonProject\TF2\.venv\lib\site-packages\object_detection\model_lib_v2.py", line 505, in train_loop configs = get_configs_from_pipeline_file( File "C:\Users\user\PycharmProjects\pythonProject\TF2\.venv\lib\site-packages\object_detection\utils\config_util.py", line 138, in get_configs_from_pipeline_file proto_str = f.read() File "C:\Users\user\PycharmProjects\pythonProject\TF2\.venv\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 114, in read self._preread_check() File "C:\Users\user\PycharmProjects\pythonProject\TF2\.venv\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 76, in _preread_check self._read_buf = _pywrap_file_io.BufferedInputStream( UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 101: invalid start byte
how can i fix it?

@falloLIYX falloLIYX added the question An issue, pull request, or discussion needs more information label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question An issue, pull request, or discussion needs more information
Projects
None yet
Development

No branches or pull requests

1 participant