Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

AttributeError: 'ConfigDict' object has no attribute 'pipeline'

Open
#13 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start with CrossEarth_infer.py at the CrossEarthSegmentor initialization on lines 43 and 97, then inspect the referenced MMSegInferencer pipeline initialization. Compare the loveda/dg_loveda_rural2urban_1024x1024.py configuration with the expected test_dataloader.dataset.pipeline structure. Done means single-image inference initializes without the ConfigDict AttributeError and produces the requested mask.

Written by the indexing model from the issue text.

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?

Dominant language
Python
Stars
189
Forks
9
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VisionXLab/CrossEarth

All issues in VisionXLab/CrossEarth

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.