D:\Hsl\anaconda\envs\pytorch\python.exe D:/Yolov5/yolov5/train.py
train: weights=yolov5s.pt, cfg=, data=data\myvoc.yaml, hyp=data\hyps\hyp.scratch-low.yaml, epochs=200, batch_size=4, imgsz=320, 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=2, 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 2022-8-17 Python-3.9.16 torch-1.11.0 CPU
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
Weights & Biases: run 'pip install wandb' to automatically track and visualize YOLOv5 runs in Weights & Biases
ClearML: run 'pip install clearml' to automatically track, visualize and remotely train YOLOv5 in ClearML
TensorBoard: Start with 'tensorboard --logdir runs\train', view at http://localhost:6006/
Downloading https://ultralytics.com/assets/Arial.ttf to C:\Users\Hsl\AppData\Roaming\Ultralytics\Arial.ttf...
Traceback (most recent call last):
File "D:\Hsl\anaconda\envs\pytorch\lib\urllib\request.py", line 1346, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "D:\Hsl\anaconda\envs\pytorch\lib\http\client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "D:\Hsl\anaconda\envs\pytorch\lib\http\client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "D:\Hsl\anaconda\envs\pytorch\lib\http\client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "D:\Hsl\anaconda\envs\pytorch\lib\http\client.py", line 1040, in _send_output
self.send(msg)
File "D:\Hsl\anaconda\envs\pytorch\lib\http\client.py", line 980, in send
self.connect()
File "D:\Hsl\anaconda\envs\pytorch\lib\http\client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "D:\Hsl\anaconda\envs\pytorch\lib\ssl.py", line 501, in wrap_socket
return self.sslsocket_class._create(
File "D:\Hsl\anaconda\envs\pytorch\lib\ssl.py", line 1041, in _create
self.do_handshake()
File "D:\Hsl\anaconda\envs\pytorch\lib\ssl.py", line 1310, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Yolov5\yolov5\train.py", line 634, in <module>
main(opt)
File "D:\Yolov5\yolov5\train.py", line 530, in main
train(opt.hyp, opt, device, callbacks)
File "D:\Yolov5\yolov5\train.py", line 109, in train
data_dict = data_dict or check_dataset(data) # check if None
File "D:\Yolov5\yolov5\utils\general.py", line 524, in check_dataset
check_font('Arial.ttf' if is_ascii(data['names']) else 'Arial.Unicode.ttf', progress=True) # download fonts
File "D:\Yolov5\yolov5\utils\general.py", line 465, in check_font
torch.hub.download_url_to_file(url, str(file), progress=progress)
File "D:\Hsl\anaconda\envs\pytorch\lib\site-packages\torch\hub.py", line 457, in download_url_to_file
u = urlopen(req)
File "D:\Hsl\anaconda\envs\pytorch\lib\urllib\request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "D:\Hsl\anaconda\envs\pytorch\lib\urllib\request.py", line 517, in open
response = self._open(req, data)
File "D:\Hsl\anaconda\envs\pytorch\lib\urllib\request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "D:\Hsl\anaconda\envs\pytorch\lib\urllib\request.py", line 494, in _call_chain
result = func(*args)
File "D:\Hsl\anaconda\envs\pytorch\lib\urllib\request.py", line 1389, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "D:\Hsl\anaconda\envs\pytorch\lib\urllib\request.py", line 1349, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [WinError 10054] 远程主机强迫关闭了一个现有的连接。>
进程已结束,退出代码1
pytorch==1.11.0 torch==1.11.0+cpu torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.2