validating project时间过长,解决办法

本文介绍了解决validatingproject过程时间过长的方法,同时提供了一个实用的技巧,即通过清除浏览器缓存来刷新项目状态,适用于遇到项目清理无效的情况。

validating project时间过长,解决办法
在这里插入图片描述
另外,可能有时项目怎么clean也还是原来的样子,可以在浏览器利用快捷键ctrl+shift+delete,清除缓存之后再试试。

(base) root@instance:/yolov5-7.0/yolov5-7.0# python train.py train: weights=yolov5s.pt, cfg=, data=data/data.yaml, hyp=data/hyps/hyp.scratch-low.yaml, epochs=2, 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 🚀 2025-10-23 Python-3.10.12 torch-2.0.1+cu118 CUDA:0 (NVIDIA GeForce RTX 3090, 24135MiB) 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/ Overriding model.yaml nc=80 with nc=3 from n params module arguments 0 -1 1 3520 models.common.Conv [3, 32, 6, 2, 2] 1 -1 1 18560 models.common.Conv [32, 64, 3, 2] 2 -1 1 18816 models.common.C3 [64, 64, 1] 3 -1 1 73984 models.common.Conv [64, 128, 3, 2] 4 -1 2 115712 models.common.C3 [128, 128, 2] 5 -1 1 295424 models.common.Conv [128, 256, 3, 2] 6 -1 3 625152 models.common.C3 [256, 256, 3] 7 -1 1 1180672 models.common.Conv [256, 512, 3, 2] 8 -1 1 1182720 models.common.C3 [512, 512, 1] 9 -1 1 656896 models.common.SPPF [512, 512, 5] 10 -1 1 131584 models.common.Conv [512, 256, 1, 1] 11 -1 1 0 torch.nn.modules.upsampling.Upsample [None, 2, 'nearest'] 12 [-1, 6] 1 0 models.common.Concat [1] 13 -1 1 361984 models.common.C3 [512, 256, 1, False] 14 -1 1 33024 models.common.Conv [256, 128, 1, 1] 15 -1 1 0 torch.nn.modules.upsampling.Upsample [None, 2, 'nearest'] 16 [-1, 4] 1 0 models.common.Concat [1] 17 -1 1 90880 models.common.C3 [256, 128, 1, False] 18 -1 1 147712 models.common.Conv [128, 128, 3, 2] 19 [-1, 14] 1 0 models.common.Concat [1] 20 -1 1 296448 models.common.C3 [256, 256, 1, False] 21 -1 1 590336 models.common.Conv [256, 256, 3, 2] 22 [-1, 10] 1 0 models.common.Concat [1] 23 -1 1 1182720 models.common.C3 [512, 512, 1, False] 24 [17, 20, 23] 1 21576 models.yolo.Detect [3, [[10, 13, 16, 30, 33, 23], [30, 61, 62, 45, 59, 119], [116, 90, 156, 198, 373, 326]], [128, 256, 512]] Model summary: 214 layers, 7027720 parameters, 7027720 gradients, 16.0 GFLOPs Transferred 343/349 items from yolov5s.pt AMP: checks passed ✅ optimizer: SGD(lr=0.01) with parameter groups 57 weight(decay=0.0), 60 weight(decay=0.0005), 60 bias train: Scanning /yolov5-7.0/datasets/mydata/labels/train.cache... 1720 images, 0 backgrounds, 0 corrup train: WARNING ⚠️ /yolov5-7.0/datasets/mydata/images/train/cc_304.jpg: 2 duplicate labels removed train: WARNING ⚠️ /yolov5-7.0/datasets/mydata/images/train/cc_325.jpg: 2 duplicate labels removed train: WARNING ⚠️ /yolov5-7.0/datasets/mydata/images/train/cc_362.jpg: 1 duplicate labels removed val: Scanning /yolov5-7.0/datasets/mydata/labels/text.cache... 176 images, 0 backgrounds, 0 corrupt: 1 AutoAnchor: 5.36 anchors/target, 1.000 Best Possible Recall (BPR). Current anchors are a good fit to dataset ✅ Plotting labels to runs/train/exp9/labels.jpg... Image sizes 640 train, 640 val Using 8 dataloader workers Logging results to runs/train/exp9 Starting training for 2 epochs... Epoch GPU_mem box_loss obj_loss cls_loss Instances Size 0/1 3.6G 0.1198 0.07424 0.04148 210 640: 0%| | 0/108 Exception in thread Thread-5 (plot_images): Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 305, in plot_images annotator.box_label(box, label, color=color) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 91, in box_label w, h = self.font.getsize(label) # text width, height AttributeError: 'FreeTypeFont' object has no attribute 'getsize' 0/1 3.64G 0.1197 0.0681 0.04202 138 640: 3%|▎ | 3/108 Exception in thread Thread-6 (plot_images): Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 305, in plot_images annotator.box_label(box, label, color=color) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 91, in box_label w, h = self.font.getsize(label) # text width, height AttributeError: 'FreeTypeFont' object has no attribute 'getsize' 0/1 3.64G 0.1194 0.06876 0.0418 194 640: 4%|▎ | 4/108 Exception in thread Thread-7 (plot_images): Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 305, in plot_images annotator.box_label(box, label, color=color) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 91, in box_label w, h = self.font.getsize(label) # text width, height AttributeError: 'FreeTypeFont' object has no attribute 'getsize' 0/1 3.64G 0.1049 0.09503 0.03216 95 640: 100%|██████████| 108/10 Class Images Instances P R mAP50 mAP50-95: 0%| WARNING ⚠️ NMS time limit 2.100s exceeded Class Images Instances P R mAP50 mAP50-95: 17%|█▋ WARNING ⚠️ NMS time limit 2.100s exceeded Class Images Instances P R mAP50 mAP50-95: 33%|███▎ WARNING ⚠️ NMS time limit 2.100s exceeded Class Images Instances P R mAP50 mAP50-95: 50%|█████ WARNING ⚠️ NMS time limit 2.100s exceeded Class Images Instances P R mAP50 mAP50-95: 67%|██████▋WARNING ⚠️ NMS time limit 2.100s exceeded Class Images Instances P R mAP50 mAP50-95: 100%|███████ all 176 1609 0.743 0.0835 0.049 0.0135 Epoch GPU_mem box_loss obj_loss cls_loss Instances Size 1/1 4.46G 0.08615 0.1029 0.01454 98 640: 100%|██████████| 108/10 Class Images Instances P R mAP50 mAP50-95: 100%|███████ all 176 1609 0.569 0.182 0.165 0.0632 2 epochs completed in 0.011 hours. Optimizer stripped from runs/train/exp9/weights/last.pt, 14.4MB Optimizer stripped from runs/train/exp9/weights/best.pt, 14.4MB Validating runs/train/exp9/weights/best.pt... Fusing layers... Model summary: 157 layers, 7018216 parameters, 0 gradients, 15.8 GFLOPs Class Images Instances P R mAP50 mAP50-95: 17%|█▋ Exception in thread Thread-8 (plot_images): Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 305, in plot_images annotator.box_label(box, label, color=color) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 91, in box_label w, h = self.font.getsize(label) # text width, height AttributeError: 'FreeTypeFont' object has no attribute 'getsize' Exception in thread Thread-9 (plot_images): Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 305, in plot_images annotator.box_label(box, label, color=color) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 91, in box_label w, h = self.font.getsize(label) # text width, height AttributeError: 'FreeTypeFont' object has no attribute 'getsize' Class Images Instances P R mAP50 mAP50-95: 33%|███▎ Exception in thread Thread-10 (plot_images): Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 305, in plot_images annotator.box_label(box, label, color=color) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 91, in box_label w, h = self.font.getsize(label) # text width, height AttributeError: 'FreeTypeFont' object has no attribute 'getsize' Exception in thread Thread-11 (plot_images): Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 305, in plot_images annotator.box_label(box, label, color=color) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 91, in box_label w, h = self.font.getsize(label) # text width, height AttributeError: 'FreeTypeFont' object has no attribute 'getsize' Class Images Instances P R mAP50 mAP50-95: 50%|█████ Exception in thread Thread-12 (plot_images): Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 305, in plot_images annotator.box_label(box, label, color=color) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 91, in box_label w, h = self.font.getsize(label) # text width, height AttributeError: 'FreeTypeFont' object has no attribute 'getsize' Exception in thread Thread-13 (plot_images): Traceback (most recent call last): File "/root/miniconda3/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/root/miniconda3/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 305, in plot_images annotator.box_label(box, label, color=color) File "/yolov5-7.0/yolov5-7.0/utils/plots.py", line 91, in box_label w, h = self.font.getsize(label) # text width, height AttributeError: 'FreeTypeFont' object has no attribute 'getsize' Class Images Instances P R mAP50 mAP50-95: 100%|███████ all 176 1609 0.569 0.182 0.164 0.0631 anthrax 176 61 1 0 0.0283 0.00573 deficiency 176 388 0.425 0.534 0.42 0.173 powdery mildew 176 1160 0.283 0.0138 0.0443 0.011 Results saved to runs/train/exp9
最新发布
10-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

PH = 7

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

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

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

打赏作者

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

抵扣说明:

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

余额充值