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

【报错】训练自己数据集时报错 #477

Open
bleudeprusse opened this issue Oct 18, 2024 · 0 comments
Open

【报错】训练自己数据集时报错 #477

bleudeprusse opened this issue Oct 18, 2024 · 0 comments
Assignees

Comments

@bleudeprusse
Copy link

bleudeprusse commented Oct 18, 2024

(RT-DETR) PS E:\develop_python\python_code\RT-DETR-main\RT-DETR-main\rtdetr_pytorch> python tools/train.py -c configs/rtdetr/rtdetr_r18vd_6x_coco.yml
Not init distributed mode.
Traceback (most recent call last):
File "E:\develop_python\python_code\RT-DETR-main\RT-DETR-main\rtdetr_pytorch\tools\train.py", line 52, in
main(args)
File "E:\develop_python\python_code\RT-DETR-main\RT-DETR-main\rtdetr_pytorch\tools\train.py", line 26, in main
cfg = YAMLConfig(
File "E:\develop_python\python_code\RT-DETR-main\RT-DETR-main\rtdetr_pytorch\tools..\src\core\yaml_config.py", line 18, in init
cfg = load_config(cfg_path)
File "E:\develop_python\python_code\RT-DETR-main\RT-DETR-main\rtdetr_pytorch\tools..\src\core\yaml_utils.py", line 173, in load_config
base_cfg = load_config(base_yaml, cfg)
File "E:\develop_python\python_code\RT-DETR-main\RT-DETR-main\rtdetr_pytorch\tools..\src\core\yaml_utils.py", line 159, in load_config
file_cfg = yaml.load(f, Loader=yaml.Loader)
File "E:\anaconda3\envs\RT-DETR\lib\site-packages\yaml_init_.py", line 79, in load
loader = Loader(stream)
File "E:\anaconda3\envs\RT-DETR\lib\site-packages\yaml\loader.py", line 44, in init
Reader.init(self, stream)
File "E:\anaconda3\envs\RT-DETR\lib\site-packages\yaml\reader.py", line 85, in init
self.determine_encoding()
File "E:\anaconda3\envs\RT-DETR\lib\site-packages\yaml\reader.py", line 124, in determine_encoding
self.update_raw()
File "E:\anaconda3\envs\RT-DETR\lib\site-packages\yaml\reader.py", line 178, in update_raw
data = self.stream.read(size)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xb8 in position 266: illegal multibyte sequence
@lyuwenyu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants