Javacr / PyQt5-YOLOv5

PyQt5 implementation of YOLOv5 GUI
GNU General Public License v3.0
1.32k stars 222 forks source link

运行 python train.py --weights yolov5s.pt --cfg models/stamoch.yaml --data data/stamoch.yaml后产生的报错 #17

Open Vananananana opened 2 years ago

Vananananana commented 2 years ago

Traceback (most recent call last): File "train.py", line 660, in main(opt) File "train.py", line 558, in main train(opt.hyp, opt, device) File "train.py", line 91, in train data_dict = yaml.safe_load(f) # data dict File "/home/scu/anaconda3/envs/torch19_py38/lib/python3.8/site-packages/yaml/init.py", line 125, in safe_load return load(stream, SafeLoader) File "/home/scu/anaconda3/envs/torch19_py38/lib/python3.8/site-packages/yaml/init.py", line 79, in load loader = Loader(stream) File "/home/scu/anaconda3/envs/torch19_py38/lib/python3.8/site-packages/yaml/loader.py", line 34, in init Reader.init(self, stream) File "/home/scu/anaconda3/envs/torch19_py38/lib/python3.8/site-packages/yaml/reader.py", line 86, in init self.determine_encoding() File "/home/scu/anaconda3/envs/torch19_py38/lib/python3.8/site-packages/yaml/reader.py", line 125, in determine_encoding self.update_raw() File "/home/scu/anaconda3/envs/torch19_py38/lib/python3.8/site-packages/yaml/reader.py", line 179, in update_raw data = self.stream.read(size) File "/home/scu/anaconda3/envs/torch19_py38/lib/python3.8/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 294-295: invalid continuation byte