PaddleSeg icon indicating copy to clipboard operation
PaddleSeg copied to clipboard

Fix bug of human_matting.py

Open ausk opened this issue 5 months ago • 2 comments

PR types

PR changes

Description

ausk avatar Jul 03 '25 02:07 ausk

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 03 '25 02:07 CLAassistant

A bug introduced by https://github.com/PaddlePaddle/PaddleSeg/issues/3920

> /tmp/PaddleSeg/Matting/ppmatting/models/human_matting.py(399)forward()
-> x = F.interpolate(x,
(Pdb) (h_half, w_half)
(1024, 1024)
(Pdb) paddle.stack((h_half, w_half)).squeeze()


--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0   paddle::pybind::eager_api_stack(_object*, _object*, _object*)
1   paddle::pybind::GetTensorListFromArgs(std::string const&, std::string const&, _object*, long, bool, phi::distributed::ProcessMesh const*)
2   phi::TypeInfoTraits<phi::TensorBase, phi::distributed::DistTensor>::classof(phi::TensorBase const*)

ausk avatar Jul 03 '25 02:07 ausk