translate() 和 DirectGraphics 的问题

博客提及translate()和DirectGraphics存在问题,但作者忘记具体问题,后续会再进行撰写。

忘了什么问题了。发现再写。

PS C:\源码\金柚项目\ultralytics-main> & C:/YOLOv8py38/python.exe c:/源码/金柚项目/ultralytics-main/ultralytics-main/yolo_train.py c:/源码/金柚项目/ultralytics-main/ultralytics-main/yolo_train.py:5: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. model = torch.load('yolov8n.pt', map_location='cpu') 模型加载成功! Ultralytics 8.3.217 Python-3.8.15 torch-2.4.1+cpu CPU (AMD Ryzen 7 7840HS with Radeon 780M Graphics) engine\trainer: agnostic_nms=False, amp=True, augment=False, auto_augment=randaugment, batch=16, bgr=0.0, box=7.5, cache=False, cfg=None, classes=None, close_mosaic=10, cls=0.5, compile=False, conf=None, copy_paste=0.0, copy_paste_mode=flip, cos_lr=False, cutmix=0.0, data=C:///ultralytics-main/ultralytics-main/safehat.yaml, degrees=0.0, deterministic=True, device=cpu, dfl=1.5, dnn=False, dropout=0.0, dynamic=False, embed=None, epochs=100, erasing=0.4, exist_ok=False, fliplr=0.5, flipud=0.0, format=torchscript, fraction=1.0, freeze=None, half=False, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, imgsz=640, int8=False, iou=0.7, keras=False, kobj=1.0, line_width=None, lr0=0.01, lrf=0.01, mask_ratio=4, max_det=300, mixup=0.0, mode=train, model=c:\\\ultralytics-main\ultralytics-main\yolov8n.pt, momentum=0.937, mosaic=1.0, multi_scale=False, name=train9, nbs=64, nms=False, opset=None, optimize=False, optimizer=auto, overlap_mask=True, patience=100, perspective=0.0, plots=True, pose=12.0, pretrained=True, profile=False, project=None, rect=False, resume=False, retina_masks=False, save=True, save_conf=False, save_crop=False, save_dir=C:\\\ultralytics-main\runs\detect\train9, save_frames=False, save_json=False, save_period=-1, save_txt=False, scale=0.5, seed=0, shear=0.0, show=False, show_boxes=True, show_conf=True, show_labels=True, simplify=True, single_cls=False, source=None, split=val, stream_buffer=False, task=detect, time=None, tracker=botsort.yaml, translate=0.1, val=True, verbose=True, vid_stride=1, visualize=False, warmup_bias_lr=0.1, warmup_epochs=3.0, warmup_momentum=0.8, weight_decay=0.0005, workers=8, workspace=None Traceback (most recent call last): File "c:\源码\金柚项目\ultralytics-main\ultralytics-main\ultralytics\engine\trainer.py", line 645, in get_dataset data = check_det_dataset(self.args.data) File "c:\源码\金柚项目\ultralytics-main\ultralytics-main\ultralytics\data\utils.py", line 481, in check_det_dataset check_font("Arial.ttf" if is_ascii(data["names"]) else "Arial.Unicode.ttf") # download fonts File "c:\源码\金柚项目\ultralytics-main\ultralytics-main\ultralytics\utils\__init__.py", line 500, in decorated return f(*args, **kwargs) File "c:\源码\金柚项目\ultralytics-main\ultralytics-main\ultralytics\utils\checks.py", line 326, in check_font from matplotlib import font_manager # scope for faster 'import ultralytics' ModuleNotFoundError: No module named 'matplotlib' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "c:/源码/金柚项目/ultralytics-main/ultralytics-main/yolo_train.py", line 19, in <module> results = model.train(data="C:/源码/金柚项目/ultralytics-main/ultralytics-main/safehat.yaml", epochs=100, imgsz=640) File "c:\源码\金柚项目\ultralytics-main\ultralytics-main\ultralytics\engine\model.py", line 795, in train self.trainer = (trainer or self._smart_load("trainer"))(overrides=args, _callbacks=self.callbacks) File "c:\源码\金柚项目\ultralytics-main\ultralytics-main\ultralytics\models\yolo\detect\train.py", line 65, in __init__ super().__init__(cfg, overrides, _callbacks) File "c:\源码\金柚项目\ultralytics-main\ultralytics-main\ultralytics\engine\trainer.py", line 158, in __init__ self.data = self.get_dataset() File "c:\源码\金柚项目\ultralytics-main\ultralytics-main\ultralytics\engine\trainer.py", line 649, in get_dataset raise RuntimeError(emojis(f"Dataset '{clean_url(self.args.data)}' error ❌ {e}")) from e RuntimeError: Dataset 'C:////ultralytics-main/ultralytics-main/safehat.yaml' error No module named 'matplotlib'
最新发布
10-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值