pytorch_semantic_human_matting icon indicating copy to clipboard operation
pytorch_semantic_human_matting copied to clipboard

May be a small bug...

Open Jiaozrr opened this issue 5 years ago • 6 comments

I tried several times to train the M_net, but it always failed to generate corect alpha. I find a possible mistake in the 36th line of pytorch_semantic_human_matting/model/network.py. It is written that bg, fg, unsure = torch.split(trimap, 1, dim=1). However, after generating some images to show the bg, fg and unsure, I found fg and unsure seemed to be reversed. I changed this line of code into: bg, unsure, fg = torch.split(trimap, 1, dim=1) and fixed my problem.

Jiaozrr avatar Jul 16 '19 08:07 Jiaozrr

@Jiaozrr Hi , can you share the datasets with me ?

CabbageWust avatar Jul 19 '19 06:07 CabbageWust

@Jiaozrr Hi , can you share the datasets with me ? Hi, I use the dataset publicly posted at https://github.com/aisegmentcn/matting_human_datasets, mentioned in another implementation by lizhengwei1992.

Jiaozrr avatar Jul 19 '19 06:07 Jiaozrr

@Jiaozrr Thx

CabbageWust avatar Jul 31 '19 07:07 CabbageWust

@Jiaozrr Hi, What is the effect of your training t-net, I use the aifenge data training effect is very poor?

tobechao avatar Aug 02 '19 10:08 tobechao

@Jiaozrr Hi, What is the effect of your training t-net, I use the aifenge data training effect is very poor?

Hi, I also get a poor t-net. I guess this dataset is not good enough.

Jiaozrr avatar Aug 05 '19 01:08 Jiaozrr

I think you're right. But I found the author's comment in another SHM repo https://github.com/lizhengwei1992/Semantic_Human_Matting/issues/10

I'm not sure what he means……

sanshibayuan avatar Aug 09 '19 02:08 sanshibayuan