大漠插件吧 关注:3,446贴子:6,278
  • 1回复贴,共1

大漠yolo训练出错

只看楼主收藏回复

下面这个出错是啥毛病?
train: weights=yolov5s.pt, cfg=, data=../datasets/xcb/xcb.yaml, hyp=data\hyps\hyp.scratch-low.yaml, epochs=300, batch_size=16, imgsz=640, rect=False, resume=False, nosave=False, noval=False, noautoanchor=False, noplots=False, evolve=None, bucket=, cache=None, image_weights=False, device=, 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 (not a git repository), for updates see https://github.com/ultralytics/yolov5
YOLOv5 2023-8-5 Python-3.11.7 torch-2.1.2+cu118 CUDA:0 (NVIDIA GeForce GTX 1050 Ti, 4096MiB)
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
ClearML: run 'pip install clearml' to automatically track, visualize and remotely train YOLOv5 in ClearML
Comet: run 'pip install comet_ml' to automatically track and visualize YOLOv5 runs in Comet
TensorBoard: Start with 'tensorboard --logdir runs\train', view at http://localhost:6006/
Downloading https://ultralytics.com/assets/Arial.Unicode.ttf to C:\Users\Simon1509\AppData\Roaming\Ultralytics\Arial.Unicode.ttf...
Traceback (most recent call last):
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1294, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1340, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1289, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1048, in _send_output
self.send(msg)
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 986, in send
self.connect()
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 1459, in connect
super().connect()
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 952, in connect
self.sock = self._create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\socket.py", line 851, in create_connection
raise exceptions[0]
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\socket.py", line 836, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "G:\yolo\yolov5-7.0\train.py", line 636, in <module>
main(opt)
File "G:\yolo\yolov5-7.0\train.py", line 529, in main
train(opt.hyp, opt, device, callbacks)
File "G:\yolo\yolov5-7.0\train.py", line 113, in train
data_dict = data_dict or check_dataset(data) # check if None
^^^^^^^^^^^^^^^^^^^
File "G:\yolo\yolov5-7.0\utils\general.py", line 560, in check_dataset
check_font('Arial.ttf' if is_ascii(data['names']) else 'Arial.Unicode.ttf', progress=True) # download fonts
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\yolo\yolov5-7.0\utils\general.py", line 495, in check_font
torch.hub.download_url_to_file(url, str(file), progress=progress)
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\hub.py", line 620, in download_url_to_file
u = urlopen(req)
^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 557, in error
result = self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 749, in http_error_302
return self.parent.open(new, timeout=req.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 557, in error
result = self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 749, in http_error_302
return self.parent.open(new, timeout=req.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 519, in open
response = self._open(req, data)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Simon1509\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。>


IP属地:江西1楼2024-01-17 13:53回复
    下载字体的页面墙了,可以直接下了丢根目录。


    IP属地:广东2楼2024-04-18 10:34
    回复