Skip to content

segformer preprocessing problems  #19

@concrete13377

Description

@concrete13377
python easyportrait\pipelines\demo\image_demo.py "images\2.jpg" "easyportrait\pipelines\local_configs\easyportrait_experiments_v2\segformer-fp\segformer-fp.py" "easyportrait\ckpt\faceparse_segformer-fp-512.pth" --palette=easy_portrait --out-file="result.png"

I got the following error:

mmsegmentation\mmseg\datasets\pipelines\formatting.py", line 281, in __call__
img_meta[key] = results[key]
KeyError: pad_shape

torch==2.1.1
mmcv-full==1.7.1
mmsegmentation==0.30.0
mmcls==0.25.0

I dont have your torch version, but the problem does not seems to be in torch, looks like the config is wrong

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions