JACKYLUO1991 / FaceParsing

EHANet: An effective hierarchical aggregation network for face parsing
MIT License
169 stars 31 forks source link

What's the difference bewteen FaceParsingNet18 and EHANet18? #10

Closed zyainfal closed 4 years ago

zyainfal commented 4 years ago

Hi, I'm trying to train a facial segmentation network based on your code, and I find that FaceParsingNet18 and EHANet18 have almost the same architecture and forwarding function. Is this a miss you made during the code revision?

zyainfal commented 4 years ago

OK, I see the difference, I will try to reproduce your results

Danbinabo commented 4 years ago

Hi,Can you run this code for train in CelebAMask-HQ dataset? I have some question for you,can you provide connection ways?(qq?or email),thank you.

zyainfal commented 4 years ago

Hi,Can you run this code for train in CelebAMask-HQ dataset? I have some question for you,can you provide connection ways?(qq?or email),thank you.

Hi, I'm just busy recently. So I would love to tell you how to prepare data and training.

For data preparation, you can follow https://github.com/switchablenorms/CelebAMask-HQ/tree/master/face_parsing/Data_preprocessing with CelebMaskHQ dataset downloaded.

And for training is quite easy. You only need to modify the data path. FYI, you may use faceparsingnet18/34 instead of ehanet18/34. The structures of them are almost the same, but faceparsingnet works better a little. Also, you may need more data augmentations for better performance. The augmentations used in the original code is too simple.

And I'm training the model by some personal modifications, here is what I get from faceparsingnet18 (please ignore that I'm using train/val split to train and verify the model by test split) 捕获

zyainfal commented 4 years ago

@Danbinabo

Danbinabo commented 4 years ago

For train when run main.py  prompt :from inplace_abn import InPlaceABN  # replace is ok!                                                      ModuleNotFoundError: No module named 'inplace_abn', This is a lack of modules inplace_abn.py? hao to solver it? thank you. Is this a lack of modules?

------------------ 原始邮件 ------------------ 发件人: "Yuhao"<notifications@github.com>; 发送时间: 2020年5月16日(星期六) 中午12:47 收件人: "JACKYLUO1991/FaceParsing"<FaceParsing@noreply.github.com>; 抄送: "丹兵"<994329541@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [JACKYLUO1991/FaceParsing] What's the difference bewteen FaceParsingNet18 and EHANet18? (#10)

Hi,Can you run this code for train in CelebAMask-HQ dataset? I have some question for you,can you provide connection ways?(qq?or email),thank you.

Hi, I'm just busy recently. So I would love to tell you how to prepare data and training.

For data preparation, you can follow https://github.com/switchablenorms/CelebAMask-HQ/tree/master/face_parsing/Data_preprocessing with CelebMaskHQ dataset downloaded.

And for training is quite easy. You only need to modify the data path. FYI, you may use faceparsingnet18/34 instead of ehanet18/34. The structures of them are almost the same, but faceparsingnet works better a little. Also, you may need more data augmentations for better performance. The augmentations used in the original code is too simple.

And I'm training the model by some personal modifications, here is what I get from faceparsingnet18 (please ignore that I'm using train/val split to train and verify the model by test split)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Danbinabo commented 4 years ago

For train when run main.py  prompt :from inplace_abn import InPlaceABN  # replace is ok!                                                      ModuleNotFoundError: No module named 'inplace_abn'.(in ce2p.py)  This is a lack of modules inplace_abn.py? hao to solver it? thank you.

------------------ 原始邮件 ------------------ 发件人: "Yuhao"<notifications@github.com>; 发送时间: 2020年5月16日(星期六) 中午12:47 收件人: "JACKYLUO1991/FaceParsing"<FaceParsing@noreply.github.com>; 抄送: "丹兵"<994329541@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [JACKYLUO1991/FaceParsing] What's the difference bewteen FaceParsingNet18 and EHANet18? (#10)

Hi,Can you run this code for train in CelebAMask-HQ dataset? I have some question for you,can you provide connection ways?(qq?or email),thank you.

Hi, I'm just busy recently. So I would love to tell you how to prepare data and training.

For data preparation, you can follow https://github.com/switchablenorms/CelebAMask-HQ/tree/master/face_parsing/Data_preprocessing with CelebMaskHQ dataset downloaded.

And for training is quite easy. You only need to modify the data path. FYI, you may use faceparsingnet18/34 instead of ehanet18/34. The structures of them are almost the same, but faceparsingnet works better a little. Also, you may need more data augmentations for better performance. The augmentations used in the original code is too simple.

And I'm training the model by some personal modifications, here is what I get from faceparsingnet18 (please ignore that I'm using train/val split to train and verify the model by test split)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

zyainfal commented 4 years ago

@Danbinabo This module is used for ce2p, which means you can just comment it out in case you are not going to train a ce2p model. If you need that model, you can search it on github since I think it is copied by the author from somewhere with keyword 'ce2p'.

JACKYLUO1991 commented 4 years ago

@zyainfal @Danbinabo Indeed, I copied the code from the 2018 Human parsing Champion.

leon-liangwu commented 3 years ago

Hi,Can you run this code for train in CelebAMask-HQ dataset? I have some question for you,can you provide connection ways?(qq?or email),thank you.

Hi, I'm just busy recently. So I would love to tell you how to prepare data and training.

For data preparation, you can follow https://github.com/switchablenorms/CelebAMask-HQ/tree/master/face_parsing/Data_preprocessing with CelebMaskHQ dataset downloaded.

And for training is quite easy. You only need to modify the data path. FYI, you may use faceparsingnet18/34 instead of ehanet18/34. The structures of them are almost the same, but faceparsingnet works better a little. Also, you may need more data augmentations for better performance. The augmentations used in the original code is too simple.

And I'm training the model by some personal modifications, here is what I get from faceparsingnet18 (please ignore that I'm using train/val split to train and verify the model by test split) 捕获

Hi,Can you run this code for train in CelebAMask-HQ dataset? I have some question for you,can you provide connection ways?(qq?or email),thank you.

Hi, I'm just busy recently. So I would love to tell you how to prepare data and training.

For data preparation, you can follow https://github.com/switchablenorms/CelebAMask-HQ/tree/master/face_parsing/Data_preprocessing with CelebMaskHQ dataset downloaded.

And for training is quite easy. You only need to modify the data path. FYI, you may use faceparsingnet18/34 instead of ehanet18/34. The structures of them are almost the same, but faceparsingnet works better a little. Also, you may need more data augmentations for better performance. The augmentations used in the original code is too simple.

And I'm training the model by some personal modifications, here is what I get from faceparsingnet18 (please ignore that I'm using train/val split to train and verify the model by test split) 捕获

Is this the performance on validation dataset or testing dataset?