Traceback (most recent call last):WARNING: Dataset not found, nonexistent paths:

WARNING: Dataset not found, nonexistent paths:
[‘C:\Users\29810\Desktop\coco128\images\train2017’] Downloading
https://github.com/ultralytics/yolov5/releases/download/v1.0/coco128.zip
… Traceback (most recent call last): File
“C:\Users\29810\anaconda3\envs\pytorch\lib\urllib\request.py”, line
1350, in do_open
encode_chunked=req.has_header(‘Transfer-encoding’)) File “C:\Users\29810\anaconda3\envs\pytorch\lib\http\client.py”, line 1281,
in request
self._send_request(method, url, body, headers, encode_chunked) File “C:\Users\29810\anaconda3\envs\pytorch\lib\http\client.py”, line
1327, in _send_request
self.endheaders(body, encode_chunked=encode_chunked) File “C:\Users\29810\anaconda3\envs\pytorch\lib\http\client.py”, line 1276,
in endheaders
self._send_output(message_body, encode_chunked=encode_chunked) File “C:\Users\29810\anaconda3\envs\pytorch\lib\http\client.py”, line
1036, in _send_output
self.send(msg) File “C:\Users\29810\anaconda3\envs\pytorch\lib\http\client.py”, line 976,
in send
self.connect() File “C:\Users\29810\anaconda3\envs\pytorch\lib\http\client.py”, line 1443,
in connect
super().connect() File “C:\Users\29810\anaconda3\envs\pytorch\lib\http\client.py”, line 948,
in connect
(self.host,self.port), self.timeout, self.source_address) File “C:\Users\29810\anaconda3\envs\pytorch\lib\socket.py”, line 728, in
create_connection
raise err File “C:\Users\29810\anaconda3\envs\pytorch\lib\socket.py”, line 716, in
create_connection
sock.connect(sa) TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File
“C:/Users/29810/Desktop/yolov5-5.0/train.py”, line 575, in
train(hyp, opt, device, tb_writer) File “C:/Users/29810/Desktop/yolov5-5.0/train.py”, line 97, in train
check_dataset(data_dict) # check File “C:\Users\29810\Desktop\yolov5-5.0\utils\general.py”, line 167, in
check_dataset
torch.hub.download_url_to_file(s, f) File “C:\Users\29810\anaconda3\envs\pytorch\lib\site-packages\torch\hub.py”,
line 419, in download_url_to_file
u = urlopen(req) File “C:\Users\29810\anaconda3\envs\pytorch\lib\urllib\request.py”, line
222, in urlopen
return opener.open(url, data, timeout) File “C:\Users\29810\anaconda3\envs\pytorch\lib\urllib\request.py”, line
525, in open
response = self._open(req, data) File “C:\Users\29810\anaconda3\envs\pytorch\lib\urllib\request.py”, line
543, in _open
‘_open’, req) File “C:\Users\29810\anaconda3\envs\pytorch\lib\urllib\request.py”, line
503, in _call_chain
result = func(*args) File “C:\Users\29810\anaconda3\envs\pytorch\lib\urllib\request.py”, line
1393, in https_open
context=self._context, check_hostname=self._check_hostname) File “C:\Users\29810\anaconda3\envs\pytorch\lib\urllib\request.py”, line
1352, in do_open
raise URLError(err) urllib.error.URLError: <urlopen error [WinError 10060] The connection attempt failed because the connecting
party did not reply correctly after a period of time or the connected
host did not respond. >

Process finished with exit code 1

我在查找了许多之后发现很多事情都是玄学解法我觉得不应该,所以,我想发的我出来。
这个是,1我没有科学的去上网
2、没有对应yaml,的训练集

解决方法:查看一下你设置的训练集的位置对不对,直接打开在github上下载的yolov项目,看看相对位置内是否存在,那个训练集
在这里插入图片描述
比如这个就去平级位置,看看coco128是否放在同级位置

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

风吹落叶花飘荡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值