Joker316701882 / Deep-Image-Matting

This is tensorflow implementation for paper "Deep Image Matting"
626 stars 188 forks source link

No module named matting_numpy_unpool for test.py #7

Open protossw512 opened 6 years ago

protossw512 commented 6 years ago

I am encountering this issue when trying to perform testing on images. Full log:

Traceback (most recent call last):
  File "test.py", line 5, in <module>
    from matting_numpy_unpool import generate_trimap
ImportError: No module named matting_numpy_unpool

I think it should be:

from matting import generate_trimap

Since we have that module in matting.py.

Also a minor error in README.md:

In usage:

Usage

simply run: python test.py --alpha --rgb sample: python test.py --alpha=./test_data/alpha/1.png --rgb=./test_data/rgb/1.png

The rgb images folder should be "RGB" insead of "rgb", not a big deal though.

bhack commented 6 years ago

Also --trimap_dilation arg seems unused in the code

Joker316701882 commented 6 years ago

@protossw512 You are right. Thank you for your correction!

Joker316701882 commented 6 years ago

@bhack Thank u! It's fixed now. : )