AttributeError: 'ConfigDict' object has no attribute 'pipeline'
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
- Domain
- computer-vision, machine-learning
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from VisionXLab/CrossEarth
-
dataset Open
Difficulty 3/5 1-2 days Newbie friendliness 38/100
VisionXLab/CrossEarth#16 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 20/100
VisionXLab/CrossEarth#14 · 2 comments ·
-
UMAP Visualization Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
VisionXLab/CrossEarth#12 ·
All issues in VisionXLab/CrossEarth
Similar issues
-
area: harness bug status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Human-Agent-Society/reef#625 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
learningequality/kolibri#15351 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Name consistency Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
eellak/triplestore#65 · 1 comment ·