Tramac / awesome-semantic-segmentation-pytorch

Semantic Segmentation on PyTorch (include FCN, PSPNet, Deeplabv3, Deeplabv3+, DANet, DenseASPP, BiSeNet, EncNet, DUNet, ICNet, ENet, OCNet, CCNet, PSANet, CGNet, ESPNet, LEDNet, DFANet)
Apache License 2.0
2.82k stars 581 forks source link

TypeError: __init__() got an unexpected keyword argument 'jpu' #97

Closed lr1234567 closed 4 years ago

lr1234567 commented 4 years ago

Traceback (most recent call last): File "train.py", line 339, in trainer = Trainer(args) File "train.py", line 166, in init aux=args.aux, jpu=args.jpu, norm_layer=BatchNorm2d).to(self.device) File "/home/lr/桌面/awesome-semantic-segmentation-pytorch-master.2/core/models/model_zoo.py", line 137, in get_segmentation_model return modelsmodel File "/home/lr/桌面/awesome-semantic-segmentation-pytorch-master.2/core/models/deeplabv3_plus.py", line 131, in get_deeplabv3_plus model = DeepLabV3Plus(datasets[dataset].NUM_CLASS, backbone=backbone, pretrained_base=pretrained_base, kwargs) File "/home/lr/桌面/awesome-semantic-segmentation-pytorch-master.2/core/models/deeplabv3_plus.py", line 39, in init self.pretrained = get_xception(pretrained=pretrained_base, output_stride=output_stride, kwargs) File "/home/lr/桌面/awesome-semantic-segmentation-pytorch-master.2/core/models/base_models/xception.py", line 387, in get_xception model = Xception65(**kwargs) TypeError: init() got an unexpected keyword argument 'jpu' how to solve this problem?

HaoweiGis commented 4 years ago

你好,这个问题解决了吗,我也出现这个情况

cspearl commented 3 years ago

How did you solve this problem? I am having the same error

liangliang98 commented 2 years ago

How did you solve this problem? I am having the same error

littlecay commented 2 years ago

same error, how do you solve it?

liangliang98 commented 2 years ago

您好,您的来信已收到

VictorYLA commented 1 year ago

same error, how do you solve it?

liangliang98 commented 1 year ago

您好,您的来信已收到

1maomaod commented 9 months ago

How did you solve this problem? I am having the same error

you solve this problem?

liangliang98 commented 9 months ago

您好,您的来信已收到

1maomaod commented 9 months ago

same error, how do you solve it? Have you solved it?

1maomaod commented 9 months ago

Traceback (most recent call last): File "train.py", line 339, in trainer = Trainer(args) File "train.py", line 166, in init aux=args.aux, jpu=args.jpu, norm_layer=BatchNorm2d).to(self.device) File "/home/lr/桌面/awesome-semantic-segmentation-pytorch-master.2/core/models/model_zoo.py", line 137, in get_segmentation_model return modelsmodel File "/home/lr/桌面/awesome-semantic-segmentation-pytorch-master.2/core/models/deeplabv3_plus.py", line 131, in get_deeplabv3_plus model = DeepLabV3Plus(datasets[dataset].NUM_CLASS, backbone=backbone, pretrained_base=pretrained_base, kwargs) File "/home/lr/桌面/awesome-semantic-segmentation-pytorch-master.2/core/models/deeplabv3_plus.py", line 39, in init self.pretrained = get_xception(pretrained=pretrained_base, output_stride=output_stride, kwargs) File "/home/lr/桌面/awesome-semantic-segmentation-pytorch-master.2/core/models/base_models/xception.py", line 387, in get_xception model = Xception65(kwargs) TypeError: init**() got an unexpected keyword argument 'jpu' how to solve this problem?

Have you solved it?