PaddleSeg
PaddleSeg copied to clipboard
Fix bug of human_matting.py
PR types
PR changes
Description
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*)