portrait_matting icon indicating copy to clipboard operation
portrait_matting copied to clipboard

extra alpha mask

Open z0yuu opened this issue 6 years ago • 9 comments

May I ask How to get the extra alpha mask ?

z0yuu avatar Apr 30 '18 18:04 z0yuu

The same question with @z0yuu , where can we download the extra alpha mask to reproduce the model ? Thanks.

highland0971 avatar May 01 '18 05:05 highland0971

We have make alpha by ourselves, but we can't get similar result. If possible, please give some advise.

GuideWsp avatar Jun 27 '18 07:06 GuideWsp

you could run scripts/prepare_matting_dataset.py before scripts/prepare_seg_tri_dataset.py. prepare_matting_dataset.py will generate a pesudo alpha mask by gaussian blur

zhujun001 avatar Aug 30 '18 02:08 zhujun001

you could run scripts/prepare_matting_dataset.py before scripts/prepare_seg_tri_dataset.py. prepare_matting_dataset.py will generate a pesudo alpha mask by gaussian blur

Wonderful!!

leaf918 avatar Oct 30 '18 10:10 leaf918

you could run scripts/prepare_matting_dataset.py before scripts/prepare_seg_tri_dataset.py. prepare_matting_dataset.py will generate a pesudo alpha mask by gaussian blur

@zhujun001, I'm getting following error when I run scripts/prepare_matting_dataset.py, do you have idea to it?

[2019/03/24 11:07:11.723] INFO (1666) __main__ : Compute look up table for weights Traceback (most recent call last): File "scripts/prepare_matting_dataset.py", line 146, in <module> main() File "scripts/prepare_matting_dataset.py", line 135, in main weight_lut = AlphaWeightLut(names, config.img_alpha_dir) File "scripts/prepare_matting_dataset.py", line 72, in __init__ self.distrib_lut = -np.log(sum_distrib / np.sum(sum_distrib)) TypeError: unsupported operand type(s) for /: 'NoneType' and 'NoneType'

mansentan avatar Mar 24 '19 03:03 mansentan

try python scripts/prepare_matting_dataset.py --pseudo_alpha

wkunique avatar Mar 29 '19 01:03 wkunique

thanks @wkunique, you are saving my life.

mansentan avatar Apr 01 '19 13:04 mansentan

@zhujun001 Thanks for a million!

Maru-chan511 avatar Jul 09 '19 09:07 Maru-chan511

try python scripts/prepare_matting_dataset.py --pseudo_alpha

i still having nonetype error after using --psuedo_alpha anyone can help ?

currently using numpy 1.13.3

nicho2605 avatar May 13 '21 14:05 nicho2605