请问使用影像分析的深度学习中的对象分类报错ERROR 160676: The domain name is invalid.这样该如何解决?

使用对象分类与像素分类都报错ERROR 160676: The domain name is invalid.
这是像素分类的报错信息,对象分类没有详细报错信息
Classify Pixels Using Deep Learning
=====================
Parameters
Input Raster     band_1_rast1_CompositeBands
Output Classified Raster     C:\Users\syffj\Documents\ArcGIS\Projects\identification semantic segmentation\identification semantic segmentation.gdb\band_1_rast1_CompositeBands_2
Model Definition     C:\Users\syffj\Documents\ArcGIS\Projects\identification semantic segmentation\train\train.emd
Arguments     padding 56;batch_size 4;threshold 0.9;return_bboxes False;tile_size 224
Processing Mode     PROCESS_AS_MOSAICKED_IMAGE
Output Folder     
=====================
Environments
Processor Type     GPU
=====================
Messages
Start Time: 2022年12月29日 23:01:47
ERROR 160676: The domain name is invalid.
Unable to obtain configuration properties associated with the raster function.
Traceback (most recent call last):
  File "d:\arcgis\arcgispro_chinese_cn\Resources\Raster\Functions\System\DeepLearning\ArcGISLearn\ArcGISInstanceDetector.py", line 202, in getConfiguration
    configuration = self.child_instance_detector.getConfiguration(**scalars)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\_maskrcnn_inferencing.py", line 229, in getConfiguration
    emd_path=self.model_emd, chip_size=self.tytx
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_maskrcnn.py", line 442, in from_model
    data, **model_params, pretrained_path=str(model_file), **maskrcnn_kwargs
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_maskrcnn.py", line 342, in __init__
    self.load(pretrained_path)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_arcgis_model.py", line 1930, in load
    raise e
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_arcgis_model.py", line 1928, in load
    self.learn.load(name, purge=False, device=device)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\basic_train.py", line 281, in load
    get_model(self.model).load_state_dict(state, strict=strict)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\torch\nn\modules\module.py", line 1224, in load_state_dict
    self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for MaskRCNN:
size mismatch for roi_heads.box_predictor.cls_score.weight: copying a param with shape torch.Size([3, 1024]) from checkpoint, the shape in current model is torch.Size([2, 1024]).
size mismatch for roi_heads.box_predictor.cls_score.bias: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([2]).
size mismatch for roi_heads.box_predictor.bbox_pred.weight: copying a param with shape torch.Size([12, 1024]) from checkpoint, the shape in current model is torch.Size([8, 1024]).
size mismatch for roi_heads.box_predictor.bbox_pred.bias: copying a param with shape torch.Size([12]) from checkpoint, the shape in current model is torch.Size([8]).
size mismatch for roi_heads.mask_predictor.mask_fcn_logits.weight: copying a param with shape torch.Size([3, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 256, 1, 1]).
size mismatch for roi_heads.mask_predictor.mask_fcn_logits.bias: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([2]).
Configuration properties returned by the python raster function is not a python dictionary.
Unable to obtain configuration properties associated with the raster function.
Traceback (most recent call last):
  File "d:\arcgis\arcgispro_chinese_cn\Resources\Raster\Functions\System\DeepLearning\ArcGISLearn\ArcGISInstanceDetector.py", line 202, in getConfiguration
    configuration = self.child_instance_detector.getConfiguration(**scalars)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\_maskrcnn_inferencing.py", line 229, in getConfiguration
    emd_path=self.model_emd, chip_size=self.tytx
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_maskrcnn.py", line 442, in from_model
    data, **model_params, pretrained_path=str(model_file), **maskrcnn_kwargs
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_maskrcnn.py", line 342, in __init__
    self.load(pretrained_path)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_arcgis_model.py", line 1930, in load
    raise e
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_arcgis_model.py", line 1928, in load
    self.learn.load(name, purge=False, device=device)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\basic_train.py", line 281, in load
    get_model(self.model).load_state_dict(state, strict=strict)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\torch\nn\modules\module.py", line 1224, in load_state_dict
    self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for MaskRCNN:
size mismatch for roi_heads.box_predictor.cls_score.weight: copying a param with shape torch.Size([3, 1024]) from checkpoint, the shape in current model is torch.Size([2, 1024]).
size mismatch for roi_heads.box_predictor.cls_score.bias: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([2]).
size mismatch for roi_heads.box_predictor.bbox_pred.weight: copying a param with shape torch.Size([12, 1024]) from checkpoint, the shape in current model is torch.Size([8, 1024]).
size mismatch for roi_heads.box_predictor.bbox_pred.bias: copying a param with shape torch.Size([12]) from checkpoint, the shape in current model is torch.Size([8]).
size mismatch for roi_heads.mask_predictor.mask_fcn_logits.weight: copying a param with shape torch.Size([3, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 256, 1, 1]).
size mismatch for roi_heads.mask_predictor.mask_fcn_logits.bias: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([2]).
Configuration properties returned by the python raster function is not a python dictionary.
Unable to obtain configuration properties associated with the raster function.
Traceback (most recent call last):
  File "d:\arcgis\arcgispro_chinese_cn\Resources\Raster\Functions\System\DeepLearning\ArcGISLearn\ArcGISInstanceDetector.py", line 202, in getConfiguration
    configuration = self.child_instance_detector.getConfiguration(**scalars)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_inferencing\_maskrcnn_inferencing.py", line 229, in getConfiguration
    emd_path=self.model_emd, chip_size=self.tytx
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_maskrcnn.py", line 442, in from_model
    data, **model_params, pretrained_path=str(model_file), **maskrcnn_kwargs
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_maskrcnn.py", line 342, in __init__
    self.load(pretrained_path)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_arcgis_model.py", line 1930, in load
    raise e
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\learn\models\_arcgis_model.py", line 1928, in load
    self.learn.load(name, purge=False, device=device)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\fastai\basic_train.py", line 281, in load
    get_model(self.model).load_state_dict(state, strict=strict)
  File "D:\arcgis\ArcGISPro_Chinese_CN\bin\Python\envs\arcgispro-py3\Lib\site-packages\torch\nn\modules\module.py", line 1224, in load_state_dict
    self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for MaskRCNN:
size mismatch for roi_heads.box_predictor.cls_score.weight: copying a param with shape torch.Size([3, 1024]) from checkpoint, the shape in current model is torch.Size([2, 1024]).
size mismatch for roi_heads.box_predictor.cls_score.bias: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([2]).
size mismatch for roi_heads.box_predictor.bbox_pred.weight: copying a param with shape torch.Size([12, 1024]) from checkpoint, the shape in current model is torch.Size([8, 1024]).
size mismatch for roi_heads.box_predictor.bbox_pred.bias: copying a param with shape torch.Size([12]) from checkpoint, the shape in current model is torch.Size([8]).
size mismatch for roi_heads.mask_predictor.mask_fcn_logits.weight: copying a param with shape torch.Size([3, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([2, 256, 1, 1]).
size mismatch for roi_heads.mask_predictor.mask_fcn_logits.bias: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([2]).
Configuration properties returned by the python raster function is not a python dictionary.
Failed to execute (ClassifyPixelsUsingDeepLearning).
Failed at 2022年12月29日 23:01:48 (Elapsed Time: 0.68 seconds)

已邀请:

李明

赞同来自:

样本制作过程,样本分类的类名 class name用的什么?

xqhan312 - GISer

赞同来自:

感觉就是分类名称写错的原因,建议写成英文,里面的“值”也要填写正确

要回复问题请先登录注册