Open xinggangw opened 5 years ago
the same question...
Hi, @tsing90 How to train the model end2end? The code cannot run successfully.
@xinggangw In dataset.py end-to-end phase: i try: return (img_m, trimap_m), (img_m, trimap_m, a_m, bg_m, fg_m), i can train SHM end-to-end, but t-net&m-net performance is bad
@tobechao 你训练出end-to-end,有遇到如下图这样的错吗?
还有你说的性能问题是指很慢以及耗资源吗?
Hey,
Great work! I found there is a bug when loading data for end-to-end training.
In train.py, it requires data in the following format.
img, trimap_gt, alpha_gt, bg, fg = sample_batched['image'], sample_batched['trimap'], sample_batched['alpha'], sample_batched['bg'], sample_batched['fg']
However, in dataset.py, you return the data as follows.
return (img_m, trimap_m), (img, trimap, a, bg, fg)
I think we should return the second part. Is it right? Thanks,