aipixel / AEMatter

Another matter.
GNU General Public License v2.0
52 stars 2 forks source link

About the inference result #22

Closed hsdjkfnsfc closed 6 days ago

hsdjkfnsfc commented 2 weeks ago

Thanks for your amazing work. However, I faced a problem when I ran the eva.py.

the output looks like a hard segmentation, not a soft matting. Here is my result. 385_4088999288

hsdjkfnsfc commented 2 weeks ago

The result predicted by the model train on my dataset, and I found your model is the matting result, I want to know why.

Windaway commented 2 weeks ago

This training code is best executed under Pytorch 1.x, otherwise you may need to modify the Norm Layer order of AEAL. In addition, it is best to provide your training log.

hsdjkfnsfc commented 2 weeks ago

I didn't save the log, the terminal has the print like this, I didn't find any useful info about the bug. image

Windaway commented 1 week ago

I'm not sure what your training data looks like (maybe that's a problem), but your loss seems to be smaller than the loss on the Adobe dataset?

hsdjkfnsfc commented 1 week ago

here is an example of my data. test

When I fintune on your model, the output looks normal, which is a matting result. but when I random initialize the model param and train on my data, the output looks like segmentation.
The log that I showed before was fintune your model on my data.

Windaway commented 1 week ago

Maybe some hyper-parameters should be tuned.

hsdjkfnsfc commented 1 week ago

It's a pytorch problem! the result was normal when I trained based on torch1.x.

Windaway commented 1 day ago

You may use the pytorch 2.0 branch for training https://github.com/aipixel/AEMatter/tree/Pytorch2.0.