You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I installed comet_ml and ran train.py, the following error was reported. If comet is not installed, it will not happen. How to solve this problem?
I have set save-period
`train: weights=yolov5s.pt, cfg=, data=data\coco128.yaml, hyp=data\hyps\hyp.scratch-low.yaml, epochs=100, batch_size=8, imgsz=640, rect=False, resume=False, nosave=False, noval=False, noautoanchor=False, noplots=False, evolve=None, bucket=, cache=None, image_weights=False, device=0, multi_scale=False, single_cls=False, optimizer=SGD, sync_bn=False, workers=8, project=runs\train, name=exp, exist_ok=False, quad=False, cos_lr=False, label_smoothing=0.0, patience=100, freeze=[0], save_period=1, seed=0, local_rank=-1, entity=None, upload_dataset=False, bbox_interval=-1, artifact_alias=latest
github: skipping check (offline), for updates see https://github.com/ultralytics/yolov5
YOLOv5 173a77a Python-3.11.6 torch-2.0.0+cu118 CUDA:0 (NVIDIA GeForce RTX 2070, 8192MiB)
hyperparameters: lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.0005, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=0.05, cls=0.5, cls_pw=1.0, obj=1.0, obj_pw=1.0, iou_t=0.2, anchor_t=4.0, fl_gamma=0.0, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, mosaic=1.0, mixup=0.0, copy_paste=0.0
TensorBoard: Start with 'tensorboard --logdir runs\train', view at http://localhost:6006/
COMET WARNING: Native output logging mode is not available, falling back to basic output logging
COMET INFO: Experiment is live on comet.com https://www.comet.com/ruiruo/yolov5test/fec255b0d3b143e388d56ec736ebe7fb
Traceback (most recent call last):
File "E:\yolov5\train.py", line 647, in
main(opt)
File "E:\yolov5\train.py", line 536, in main
train(opt.hyp, opt, device, callbacks)
File "E:\yolov5\train.py", line 101, in train
loggers = Loggers(save_dir, weights, opt, hyp, LOGGER) # loggers instance
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\yolov5\utils\loggers_init_.py", line 129, in init
self.comet_logger = CometLogger(self.opt, self.hyp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\yolov5\utils\loggers\comet_init_.py", line 98, in init
self.data_dict = self.check_dataset(self.opt.data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\yolov5\utils\loggers\comet_init_.py", line 233, in check_dataset
data_config = yaml.safe_load(f)
^^^^^^^^^^^^^^^^^
File "E:\yolov5\venv\Lib\site-packages\yaml_init_.py", line 125, in safe_load
return load(stream, SafeLoader)
^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\yolov5\venv\Lib\site-packages\yaml_init_.py", line 79, in load
loader = Loader(stream)
^^^^^^^^^^^^^^
File "E:\yolov5\venv\Lib\site-packages\yaml\loader.py", line 34, in init
Reader.init(self, stream)
File "E:\yolov5\venv\Lib\site-packages\yaml\reader.py", line 85, in init
self.determine_encoding()
File "E:\yolov5\venv\Lib\site-packages\yaml\reader.py", line 124, in determine_encoding
self.update_raw()
File "E:\yolov5\venv\Lib\site-packages\yaml\reader.py", line 178, in update_raw
data = self.stream.read(size)
^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 238: illegal multibyte sequence
COMET INFO: ---------------------------------------------------------------------------------------
COMET INFO: Comet.ml Experiment Summary
COMET INFO: ---------------------------------------------------------------------------------------
COMET INFO: Data:
COMET INFO: display_summary_level : 1
COMET INFO: url : https://www.comet.com/ruiruo/yolov5test/fec255b0d3b143e388d56ec736ebe7fb
COMET INFO: Others:
COMET INFO: Name : exp
COMET INFO: Uploads:
COMET INFO: environment details : 1
COMET INFO: git metadata : 1
COMET INFO: installed packages : 1
COMET INFO:
COMET INFO: Please wait for metadata to finish uploading (timeout is 3600 seconds)
COMET INFO: Uploading 1 metrics, params and output messages`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After I installed comet_ml and ran train.py, the following error was reported. If comet is not installed, it will not happen. How to solve this problem?
I have set save-period
`train: weights=yolov5s.pt, cfg=, data=data\coco128.yaml, hyp=data\hyps\hyp.scratch-low.yaml, epochs=100, batch_size=8, imgsz=640, rect=False, resume=False, nosave=False, noval=False, noautoanchor=False, noplots=False, evolve=None, bucket=, cache=None, image_weights=False, device=0, multi_scale=False, single_cls=False, optimizer=SGD, sync_bn=False, workers=8, project=runs\train, name=exp, exist_ok=False, quad=False, cos_lr=False, label_smoothing=0.0, patience=100, freeze=[0], save_period=1, seed=0, local_rank=-1, entity=None, upload_dataset=False, bbox_interval=-1, artifact_alias=latest
github: skipping check (offline), for updates see https://github.com/ultralytics/yolov5
YOLOv5 173a77a Python-3.11.6 torch-2.0.0+cu118 CUDA:0 (NVIDIA GeForce RTX 2070, 8192MiB)
hyperparameters: lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.0005, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=0.05, cls=0.5, cls_pw=1.0, obj=1.0, obj_pw=1.0, iou_t=0.2, anchor_t=4.0, fl_gamma=0.0, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, mosaic=1.0, mixup=0.0, copy_paste=0.0
TensorBoard: Start with 'tensorboard --logdir runs\train', view at http://localhost:6006/
COMET WARNING: Native output logging mode is not available, falling back to basic output logging
COMET INFO: Experiment is live on comet.com https://www.comet.com/ruiruo/yolov5test/fec255b0d3b143e388d56ec736ebe7fb
Traceback (most recent call last):
File "E:\yolov5\train.py", line 647, in
main(opt)
File "E:\yolov5\train.py", line 536, in main
train(opt.hyp, opt, device, callbacks)
File "E:\yolov5\train.py", line 101, in train
loggers = Loggers(save_dir, weights, opt, hyp, LOGGER) # loggers instance
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\yolov5\utils\loggers_init_.py", line 129, in init
self.comet_logger = CometLogger(self.opt, self.hyp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\yolov5\utils\loggers\comet_init_.py", line 98, in init
self.data_dict = self.check_dataset(self.opt.data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\yolov5\utils\loggers\comet_init_.py", line 233, in check_dataset
data_config = yaml.safe_load(f)
^^^^^^^^^^^^^^^^^
File "E:\yolov5\venv\Lib\site-packages\yaml_init_.py", line 125, in safe_load
return load(stream, SafeLoader)
^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\yolov5\venv\Lib\site-packages\yaml_init_.py", line 79, in load
loader = Loader(stream)
^^^^^^^^^^^^^^
File "E:\yolov5\venv\Lib\site-packages\yaml\loader.py", line 34, in init
Reader.init(self, stream)
File "E:\yolov5\venv\Lib\site-packages\yaml\reader.py", line 85, in init
self.determine_encoding()
File "E:\yolov5\venv\Lib\site-packages\yaml\reader.py", line 124, in determine_encoding
self.update_raw()
File "E:\yolov5\venv\Lib\site-packages\yaml\reader.py", line 178, in update_raw
data = self.stream.read(size)
^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 238: illegal multibyte sequence
COMET INFO: ---------------------------------------------------------------------------------------
COMET INFO: Comet.ml Experiment Summary
COMET INFO: ---------------------------------------------------------------------------------------
COMET INFO: Data:
COMET INFO: display_summary_level : 1
COMET INFO: url : https://www.comet.com/ruiruo/yolov5test/fec255b0d3b143e388d56ec736ebe7fb
COMET INFO: Others:
COMET INFO: Name : exp
COMET INFO: Uploads:
COMET INFO: environment details : 1
COMET INFO: git metadata : 1
COMET INFO: installed packages : 1
COMET INFO:
COMET INFO: Please wait for metadata to finish uploading (timeout is 3600 seconds)
COMET INFO: Uploading 1 metrics, params and output messages`
Beta Was this translation helpful? Give feedback.
All reactions