SamYuen101234 / Masked_Face_Recognition

2020/2021 HKUST CSE FYP Masked Facial Recognition, developer: Sam Yuen, Alex Xie, Tony Cheng
https://github.com/SamYuen101234/maskedfacerecognition
MIT License
118 stars 32 forks source link

When does "collapse" happens? #21

Closed yh97yhyh closed 2 years ago

yh97yhyh commented 2 years ago

Hello! I ran this code, but I had met "collapse" when 1epoch was over. (I edited code...) When does "collapse" happens? and How can I solve this problem?

SamYuen101234 commented 2 years ago

Do you try some models pre-trained on ImageNet or VGG2?

yh97yhyh commented 2 years ago

No, How can I try these models?

yh97yhyh commented 2 years ago

Do you try some models pre-trained on ImageNet or VGG2?

Do you mean these models?

스크린샷 2022-03-16 오후 5 07 40

I just tried main.py and main2.py after put csv file, train and test dataset on folder. I didn't use these pre-trained models.

SamYuen101234 commented 2 years ago

Do you set the parameter "pretrained" = True ? And what Model do you use. If you set pretrained = True, the models are pretrained on ImageNet/VGG2 are used.

yh97yhyh commented 2 years ago

Thanks! I'll give it a try!

SamYuen101234 commented 2 years ago

closed

SamYuen101234 commented 2 years ago

closed