-
Notifications
You must be signed in to change notification settings - Fork 9
Description
您好,非常感谢您做的杰出工作。现在我想将您提供的分割模型应用于我野外无人机拍摄影像的语义分割(地物分类任务中)获取mask,想使用loveda的dg_loveda_rural2urban_1024x1024.py中的模型,并在https://huggingface.co/Cusyoung/CrossEarth/tree/main上下载补全了权重文件R2U.pth。但现在我调用此模型去单独预测某个图像时总是报错“Traceback (most recent call last):
File "G:\PYZ_Image_Matching\CrossEarth-main\CrossEarth_infer.py", line 97, in
segmentor = CrossEarthSegmentor(
File "G:\PYZ_Image_Matching\CrossEarth-main\CrossEarth_infer.py", line 43, in init
self.inferencer = MMSegInferencer(
File "C:\Users\Pmiracle.conda\envs\py39\lib\site-packages\mmseg\apis\mmseg_inferencer.py", line 81, in init
super().init(
File "C:\Users\Pmiracle.conda\envs\py39\lib\site-packages\mmengine\infer\infer.py", line 181, in init
self.pipeline = self._init_pipeline(cfg)
File "C:\Users\Pmiracle.conda\envs\py39\lib\site-packages\mmseg\apis\mmseg_inferencer.py", line 359, in _init_pipeline
pipeline_cfg = cfg.test_dataloader.dataset.pipeline
File "C:\Users\Pmiracle.conda\envs\py39\lib\site-packages\mmengine\config\config.py", line 113, in getattr
raise AttributeError(f"'{self.class.name}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'pipeline'
”,能请教您一下这是怎么回事,以及我该如何修改代码?
Hello, thank you very much for your outstanding work. Now I want to apply the segmentation model you provided to the semantic segmentation (land cover classification task) of the images taken by my field drone to obtain masks. I want to use the model in the dg_loveda_rural2urban_1024x1024.py of loveda and download the completed weight file R2U.pth from https://huggingface.co/Cusyoung/CrossEarth/tree/main. However, when I call this model to predict a single image, I always get an error: "Traceback (most recent call last): File "G:\PYZ_Image_Matching\CrossEarth-main\CrossEarth_infer.py", line 97, in
segmentor = CrossEarthSegmentor(
File "G:\PYZ_Image_Matching\CrossEarth-main\CrossEarth_infer.py", line 43, in init
self.inferencer = MMSegInferencer(
File "C:\Users\Pmiracle.conda\envs\py39\lib\site-packages\mmseg\apis\mmseg_inferencer.py", line 81, in init
super().init(
File "C:\Users\Pmiracle.conda\envs\py39\lib\site-packages\mmengine\infer\infer.py", line 181, in init
self.pipeline = self._init_pipeline(cfg)
File "C:\Users\Pmiracle.conda\envs\py39\lib\site-packages\mmseg\apis\mmseg_inferencer.py", line 359, in _init_pipeline
pipeline_cfg = cfg.test_dataloader.dataset.pipeline
File "C:\Users\Pmiracle.conda\envs\py39\lib\site-packages\mmengine\config\config.py", line 113, in getattr
raise AttributeError(f"'{self.class.name}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'pipeline'
Could I ask you what's going on here and how I should modify the code?