-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: [WinError 87] 参数错误 #12297
Comments
System environment:
Runtime environment: |
I use mmdetection3.3.0 |
I use this : python D:\python\mmdetection-main\tools\train.py .\config\buildtest.py --work-dir work_dirs/cascade-mask-rcnn_x101-64x4d_fpn_20e_coco 新配置继承了基本配置,并做了必要的修改base = '../cascade-mask-rcnn_x101-64x4d_fpn_20e_coco.py' 我们还需要更改 head 中的 num_classes 以匹配数据集中的类别数model = dict( 修改数据集相关配置data_root = 'data/buildings/tiff/' train_pipeline = [dict(backend_args=None, type='LoadImageFromFile'),dict(type='LoadAnnotations', with_bbox=True, with_mask=True),dict(keep_ratio=True, scale=( # 会对图片进行缩放 ,keep_ratio 是true表示会等比例缩放 scale 表示图片会缩放到的大小1333, 800#512 , 512), type='Resize'),dict(prob=0.5, type='RandomFlip'),dict(type='PackDetInputs'),]val_dataloader = dict( val_evaluator = dict(dataset=dict(ann_file='data/balloon/val/val.json',)type='CocoMetric',metric=['bbox', 'segm'],format_only=False)test_dataloader = dict( optim_wrapper = dict( 修改评价指标相关配置val_evaluator = dict(ann_file=data_root + 'val/coco_annotations.json') log_config = dict(interval=10, # 每10个iter记录一次hooks=[dict(type='TextLoggerHook'), # 文本日志dict(type='TensorboardLoggerHook'), # TensorBoard 日志])使用预训练的 Mask R-CNN 模型权重来做初始化,可以提高模型性能load_from = 'cascade_mask_rcnn_x101_64x4d_fpn_20e_coco_20200512_161033-bdb5126a.pth' |
mmdetection3.3.0 cuda 12.4 pytorch 2.5.0 训练时提示
Traceback (most recent call last):
File "D:\SOFT\miniconda\envs\open-mmlab\Lib\multiprocessing\queues.py", line 246, in _feed
send_bytes(obj)
File "D:\SOFT\miniconda\envs\open-mmlab\Lib\multiprocessing\connection.py", line 200, in send_bytes
self._send_bytes(m[offset:offset + size])
File "D:\SOFT\miniconda\envs\open-mmlab\Lib\multiprocessing\connection.py", line 289, in _send_bytes
ov, err = _winapi.WriteFile(self._handle, buf, overlapped=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Traceback (most recent call last):
File "D:\python\mmdetection-main\tools\train.py", line 121, in
main()
File "D:\python\mmdetection-main\tools\train.py", line 117, in main
OSError: [WinError 87] 参数错误。
是为什么?
The text was updated successfully, but these errors were encountered: